CbmRoot
CbmGlobalTrack.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmGlobalTrack header file -----
3 // ----- Created 01/12/05 by V. Friese -----
4 // ----- Modified 04/06/09 by A. Lebedev -----
5 // -------------------------------------------------------------------------
6 
15 #ifndef CBMGLOBALTRACK_H_
16 #define CBMGLOBALTRACK_H_ 1
17 
18 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
19 #include <RtypesCore.h> // for Int_t, Double_t, Double32_t, Option_t
20 #include <TObject.h> // for TObject
21 
22 #include <FairTrackParam.h> // for FairTrackParam
23 
24 #include "CbmTrackParam.h" // for CbmTrackParam
25 
26 class CbmGlobalTrack : public TObject {
27 
28 public:
31 
32 
34  virtual ~CbmGlobalTrack();
35 
36 
38  Int_t GetStsTrackIndex() const { return fStsTrack; }
39  Int_t GetTrdTrackIndex() const { return fTrdTrack; }
40  Int_t GetMuchTrackIndex() const { return fMuchTrack; }
41  Int_t GetRichRingIndex() const { return fRichRing; }
42  Int_t GetTofHitIndex() const { return fTofHit; }
43  const FairTrackParam* GetParamFirst() const { return &fParamFirst; }
44  const FairTrackParam* GetParamLast() const { return &fParamLast; }
45  const CbmTrackParam* GetParamVertex() const { return &fParamPrimaryVertex; }
46  Int_t GetPidHypo() const { return fPidHypo; }
47  Double_t GetChi2() const { return fChi2; }
48  Int_t GetNDF() const { return fNDF; }
49  Int_t GetFlag() const { return fFlag; }
50  Double_t GetLength() const { return fLength; }
51 
52 
54  void SetStsTrackIndex(Int_t iSts) { fStsTrack = iSts; }
55  void SetTrdTrackIndex(Int_t iTrd) { fTrdTrack = iTrd; }
56  void SetMuchTrackIndex(Int_t iMuch) { fMuchTrack = iMuch; }
57  void SetRichRingIndex(Int_t iRing) { fRichRing = iRing; }
58  void SetTofHitIndex(Int_t iTofHit) { fTofHit = iTofHit; }
59  void SetParamFirst(const FairTrackParam* parFirst) {
60  fParamFirst = *parFirst;
61  }
62  void SetParamLast(const FairTrackParam* parLast) { fParamLast = *parLast; }
63  void SetParamPrimaryVertex(const FairTrackParam* parPV) {
64  fParamPrimaryVertex.Set(*parPV);
65  }
66  void SetPidHypo(Int_t iPid) { fPidHypo = iPid; }
67  void SetChi2(Double_t chi2) { fChi2 = chi2; }
68  void SetNDF(Int_t ndf) { fNDF = ndf; }
69  void SetFlag(Int_t iFlag) { fFlag = iFlag; }
70  void SetLength(Double_t length) { fLength = length; }
71 
72 
74  virtual void Print(Option_t* opt = "") const;
75 
76 
77 private:
79  Int_t fStsTrack;
80  Int_t fTrdTrack;
81  Int_t fMuchTrack;
82  Int_t fRichRing;
83  Int_t fTofHit;
84 
86  FairTrackParam fParamFirst;
87  FairTrackParam fParamLast;
89 
91  Int_t fPidHypo;
92 
94  Double32_t fChi2;
95 
97  Int_t fNDF;
98 
100  Int_t fFlag;
101 
103  Double32_t fLength;
104 
105 
107 };
108 
109 
110 #endif
CbmGlobalTrack::GetMuchTrackIndex
Int_t GetMuchTrackIndex() const
Definition: CbmGlobalTrack.h:40
CbmGlobalTrack::fChi2
Double32_t fChi2
Definition: CbmGlobalTrack.h:94
CbmGlobalTrack::fTofHit
Int_t fTofHit
Definition: CbmGlobalTrack.h:83
CbmGlobalTrack::SetChi2
void SetChi2(Double_t chi2)
Definition: CbmGlobalTrack.h:67
CbmGlobalTrack::GetParamLast
const FairTrackParam * GetParamLast() const
Definition: CbmGlobalTrack.h:44
CbmGlobalTrack::SetParamLast
void SetParamLast(const FairTrackParam *parLast)
Definition: CbmGlobalTrack.h:62
CbmGlobalTrack::SetTrdTrackIndex
void SetTrdTrackIndex(Int_t iTrd)
Definition: CbmGlobalTrack.h:55
CbmGlobalTrack::GetRichRingIndex
Int_t GetRichRingIndex() const
Definition: CbmGlobalTrack.h:41
CbmGlobalTrack::fParamFirst
FairTrackParam fParamFirst
Definition: CbmGlobalTrack.h:86
CbmGlobalTrack::fStsTrack
Int_t fStsTrack
Definition: CbmGlobalTrack.h:79
CbmGlobalTrack::~CbmGlobalTrack
virtual ~CbmGlobalTrack()
Definition: CbmGlobalTrack.cxx:32
CbmGlobalTrack::GetLength
Double_t GetLength() const
Definition: CbmGlobalTrack.h:50
CbmGlobalTrack::GetChi2
Double_t GetChi2() const
Definition: CbmGlobalTrack.h:47
CbmTrackParam::Set
void Set(const FairTrackParam &ftp, Double_t time=0., Double_t timeError=0.)
Definition: CbmTrackParam.cxx:12
CbmGlobalTrack::SetFlag
void SetFlag(Int_t iFlag)
Definition: CbmGlobalTrack.h:69
CbmGlobalTrack::CbmGlobalTrack
CbmGlobalTrack()
Definition: CbmGlobalTrack.cxx:13
CbmGlobalTrack::fParamLast
FairTrackParam fParamLast
Definition: CbmGlobalTrack.h:87
CbmGlobalTrack::GetParamVertex
const CbmTrackParam * GetParamVertex() const
Definition: CbmGlobalTrack.h:45
CbmGlobalTrack::ClassDef
ClassDef(CbmGlobalTrack, 3)
CbmGlobalTrack::GetStsTrackIndex
Int_t GetStsTrackIndex() const
Definition: CbmGlobalTrack.h:38
CbmGlobalTrack::SetPidHypo
void SetPidHypo(Int_t iPid)
Definition: CbmGlobalTrack.h:66
CbmGlobalTrack::fFlag
Int_t fFlag
Definition: CbmGlobalTrack.h:100
CbmGlobalTrack::SetNDF
void SetNDF(Int_t ndf)
Definition: CbmGlobalTrack.h:68
CbmGlobalTrack::SetStsTrackIndex
void SetStsTrackIndex(Int_t iSts)
Definition: CbmGlobalTrack.h:54
CbmGlobalTrack::fRichRing
Int_t fRichRing
Definition: CbmGlobalTrack.h:82
CbmGlobalTrack::SetLength
void SetLength(Double_t length)
Definition: CbmGlobalTrack.h:70
CbmGlobalTrack::fNDF
Int_t fNDF
Definition: CbmGlobalTrack.h:97
CbmGlobalTrack::GetFlag
Int_t GetFlag() const
Definition: CbmGlobalTrack.h:49
CbmGlobalTrack::GetTrdTrackIndex
Int_t GetTrdTrackIndex() const
Definition: CbmGlobalTrack.h:39
CbmGlobalTrack::SetParamPrimaryVertex
void SetParamPrimaryVertex(const FairTrackParam *parPV)
Definition: CbmGlobalTrack.h:63
CbmGlobalTrack
Definition: CbmGlobalTrack.h:26
CbmGlobalTrack::Print
virtual void Print(Option_t *opt="") const
Definition: CbmGlobalTrack.cxx:37
CbmGlobalTrack::SetParamFirst
void SetParamFirst(const FairTrackParam *parFirst)
Definition: CbmGlobalTrack.h:59
CbmGlobalTrack::GetNDF
Int_t GetNDF() const
Definition: CbmGlobalTrack.h:48
CbmGlobalTrack::fTrdTrack
Int_t fTrdTrack
Definition: CbmGlobalTrack.h:80
CbmGlobalTrack::GetPidHypo
Int_t GetPidHypo() const
Definition: CbmGlobalTrack.h:46
CbmTrackParam
Definition: CbmTrackParam.h:22
CbmGlobalTrack::SetMuchTrackIndex
void SetMuchTrackIndex(Int_t iMuch)
Definition: CbmGlobalTrack.h:56
CbmGlobalTrack::SetTofHitIndex
void SetTofHitIndex(Int_t iTofHit)
Definition: CbmGlobalTrack.h:58
CbmGlobalTrack::GetTofHitIndex
Int_t GetTofHitIndex() const
Definition: CbmGlobalTrack.h:42
CbmGlobalTrack::GetParamFirst
const FairTrackParam * GetParamFirst() const
Definition: CbmGlobalTrack.h:43
CbmGlobalTrack::fLength
Double32_t fLength
Definition: CbmGlobalTrack.h:103
CbmGlobalTrack::fMuchTrack
Int_t fMuchTrack
Definition: CbmGlobalTrack.h:81
CbmGlobalTrack::fPidHypo
Int_t fPidHypo
Definition: CbmGlobalTrack.h:91
CbmGlobalTrack::SetRichRingIndex
void SetRichRingIndex(Int_t iRing)
Definition: CbmGlobalTrack.h:57
CbmGlobalTrack::fParamPrimaryVertex
CbmTrackParam fParamPrimaryVertex
Definition: CbmGlobalTrack.h:88
CbmTrackParam.h