EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PndTrackID.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PndTrackID.h
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 #ifndef PNDTRACKID_HH
18 #define PNDTRACKID_HH
19 
20 // Root Class Headers ----------------
21 #include "TObject.h"
22 #include "TArrayI.h"
23 
24 class PndTrackID : public TObject {
25 public:
26 
27  // Constructors/Destructors ---------
28  PndTrackID();
29  PndTrackID(const Int_t id, const TArrayI track, const TArrayI mult);
30  ~PndTrackID();
31 
32  // Accessors -----------------------
33  Int_t GetTrackID() const { return fTrackID; }
34  Short_t GetNCorrTrackId(void) const { return fCorrTrackIds.GetSize(); }
35  Int_t GetCorrTrackID(Int_t i=0) const { return fCorrTrackIds[i]; }
36  Int_t GetMultTrackID(Int_t i=0) const { return fMultTrackIds[i]; }
37 
38  //void Sort(); // not implemented
39 
40  // Modifiers -----------------------
41  void SetTrackID(Int_t id) { fTrackID = id; }
42  void SetCorrTrackID(const TArrayI track, const TArrayI mult) { fCorrTrackIds = track; fMultTrackIds = mult; }
43 
44  void Reset();
45 
46  void Print();
47 
48 private:
49 
50  // Private Data Members ------------
51  Int_t fTrackID; // Index of PndTrack TCA
52  TArrayI fCorrTrackIds; // A unique list of correlated Ids
53  TArrayI fMultTrackIds; // A unique list of multiplicity of correlated Ids
54 
55 public:
56  ClassDef(PndTrackID,1)
57 };
58 
59 #endif
60 
61 //--------------------------------------------------------------
62 // $Log$
63 //--------------------------------------------------------------