PandaRoot
PndTrackID.h
Go to the documentation of this file.
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  // Constructors/Destructors ---------
27  PndTrackID();
28  PndTrackID(const Int_t id, const TArrayI track, const TArrayI mult);
29  ~PndTrackID();
30 
31  // Accessors -----------------------
32  Int_t GetTrackID() const { return fTrackID; }
33  Short_t GetNCorrTrackId(void) const { return fCorrTrackIds.GetSize(); }
34  Int_t GetCorrTrackID(Int_t i = 0) const { return fCorrTrackIds[i]; }
35  Int_t GetMultTrackID(Int_t i = 0) const { return fMultTrackIds[i]; }
36 
37  // void Sort(); // not implemented
38 
39  // Modifiers -----------------------
40  void SetTrackID(Int_t id) { fTrackID = id; }
41  void SetCorrTrackID(const TArrayI track, const TArrayI mult)
42  {
43  fCorrTrackIds = track;
44  fMultTrackIds = mult;
45  }
46 
47  void Reset();
48 
49  void Print();
50 
51  private:
52  // Private Data Members ------------
53  Int_t fTrackID; // Index of PndTrack TCA
54  TArrayI fCorrTrackIds; // A unique list of correlated Ids
55  TArrayI fMultTrackIds; // A unique list of multiplicity of correlated Ids
56 
57  public:
58  ClassDef(PndTrackID, 1)
59 };
60 
61 #endif
62 
63 //--------------------------------------------------------------
64 // $Log$
65 //--------------------------------------------------------------
void Print()
Int_t GetMultTrackID(Int_t i=0) const
Definition: PndTrackID.h:35
unsigned int i
Definition: P4_F32vec4.h:21
Short_t GetNCorrTrackId(void) const
Definition: PndTrackID.h:33
void SetCorrTrackID(const TArrayI track, const TArrayI mult)
Definition: PndTrackID.h:41
Int_t GetTrackID() const
Definition: PndTrackID.h:32
void SetTrackID(Int_t id)
Definition: PndTrackID.h:40
void Reset()
Int_t GetCorrTrackID(Int_t i=0) const
Definition: PndTrackID.h:34