EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PndTrackID.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PndTrackID.cxx
1
//-----------------------------------------------------------
2
// File and Version Information:
3
// $Id$
4
//
5
// Description:
6
// Implementation of class PndTrackID
7
//
8
// Environment:
9
// Software developed for the PANDA Detector at FAIR.
10
//
11
// Author List:
12
// 01/07/09 - Stefano Spataro (Torino)
13
//
14
//
15
//-----------------------------------------------------------
16
17
// Panda Headers ----------------------
18
#include <iostream>
19
20
// This Class' Header ------------------
21
#include "
PndTrackID.h
"
22
23
using
std::cout;
24
using
std::endl;
25
26
ClassImp
(
PndTrackID
);
27
28
PndTrackID::PndTrackID
()
29
{
30
fTrackID
= -1;
31
fCorrTrackIds
.Set(0);
32
fMultTrackIds
.Set(0);
33
}
34
35
PndTrackID::PndTrackID
(Int_t
id
, TArrayI track, TArrayI mult)
36
{
37
fTrackID
= id;
38
fCorrTrackIds
= track;
39
fMultTrackIds
= mult;
40
}
41
42
PndTrackID::~PndTrackID
(){
43
}
44
45
void
PndTrackID::Reset
()
46
{
47
fCorrTrackIds
.Reset();
48
fMultTrackIds
.Reset();
49
}
50
51
void
PndTrackID::Print
()
52
{
53
std::cout <<
"PndTrackID::Print() - PndTrackID: "
<<
fTrackID
<<
"\tNumber of correlated MCTrack ids: "
<<
GetNCorrTrackId
() << std::endl;
54
for
(Int_t ii=0; ii<
GetNCorrTrackId
(); ++ii)
55
{
56
std::cout <<
" *** At: "
<< ii
57
<<
"\t MCTrack ID: "
<<
fCorrTrackIds
[ii]
58
<<
"\t Multiplicity: "
<<
fMultTrackIds
[ii]
59
<< std::endl;
60
}
61
}
EicRoot
blob
master
pnddata
TrackData
PndTrackID.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:37
using
1.8.2 with
EIC GitHub integration