FairRoot/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 
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 //--------------------------------------------------------------
Int_t i
Definition: run_full.C:25
void Print()
Definition: PndTrackID.cxx:49
TArrayI fMultTrackIds
Definition: PndTrackID.h:53
Int_t GetCorrTrackID(Int_t i=0) const
Definition: PndTrackID.h:35
Int_t GetTrackID() const
Definition: PndTrackID.h:33
Int_t fTrackID
Definition: PndTrackID.h:51
Short_t GetNCorrTrackId(void) const
Definition: PndTrackID.h:34
Int_t GetMultTrackID(Int_t i=0) const
Definition: PndTrackID.h:36
PndMCTrack * track
Definition: anaLmdCluster.C:89
void SetCorrTrackID(const TArrayI track, const TArrayI mult)
Definition: PndTrackID.h:42
void SetTrackID(Int_t id)
Definition: PndTrackID.h:41
TArrayI fCorrTrackIds
Definition: PndTrackID.h:52
Double_t mult
void Reset()
Definition: PndTrackID.cxx:43