EIC Software
 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 
27 
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 
43 }
44 
46 {
47  fCorrTrackIds.Reset();
48  fMultTrackIds.Reset();
49 }
50 
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 }