BmnRoot
Loading...
Searching...
No Matches
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 "FairTrackParam.h"
19#include "BmnFitNode.h"
20#include "TObject.h"
21
22class CbmGlobalTrack : public TObject
23{
24
25 public:
26
29
30
32 virtual ~CbmGlobalTrack();
33
34
36 Int_t GetStsTrackIndex() const { return fStsTrack; }
37 Int_t GetTrdTrackIndex() const { return fTrdTrack; }
38 Int_t GetMuchTrackIndex() const { return fMuchTrack; }
39 Int_t GetRichRingIndex() const { return fRichRing; }
40 Int_t GetTofHitIndex() const { return fTofHit; }
41 const FairTrackParam* GetParamFirst() const { return &fParamFirst; }
42 const FairTrackParam* GetParamLast() const { return &fParamLast; }
43 Int_t GetPidHypo() const { return fPidHypo; }
44 Double_t GetChi2() const { return fChi2; }
45 Int_t GetNDF() const { return fNDF; }
46 Int_t GetFlag() const { return fFlag; }
47 Double_t GetLength() const { return fLength; }
48
49 const BmnFitNode* GetFitNode(Int_t index) const {return &fFitNodes[index];}
50 const vector<BmnFitNode>& GetFitNodes() const {return fFitNodes;}
51 Int_t GetNofHits() const {return fNofHits;}
52
53
55 void SetStsTrackIndex(Int_t iSts) { fStsTrack = iSts; }
56 void SetTrdTrackIndex(Int_t iTrd) { fTrdTrack = iTrd; }
57 void SetMuchTrackIndex(Int_t iMuch) { fMuchTrack = iMuch; }
58 void SetRichRingIndex(Int_t iRing) { fRichRing = iRing; }
59 void SetTofHitIndex(Int_t iTofHit) { fTofHit = iTofHit; }
60 void SetParamFirst(const FairTrackParam* parFirst) { fParamFirst = *parFirst;}
61 void SetParamLast(const FairTrackParam* parLast) { fParamLast = *parLast;}
62 void SetPidHypo(Int_t iPid) { fPidHypo = iPid; }
63 void SetChi2(Double_t chi2) { fChi2 = chi2; }
64 void SetNDF(Int_t ndf) { fNDF = ndf; }
65 void SetFlag(Int_t iFlag) { fFlag = iFlag; }
66 void SetLength(Double_t length) { fLength = length;}
67
68 void SetFitNodes(const vector<BmnFitNode>& nodes) {fFitNodes = nodes;}
69 void SetNofHits(Int_t n) {fNofHits = n;}
70
71
73 void Print() const;
74
75
76 private:
77
79 Int_t fStsTrack;
80 Int_t fTrdTrack;
81 Int_t fMuchTrack;
82 Int_t fRichRing;
83 Int_t fTofHit;
84
85 Int_t fNofHits; //number of all hits
86
88 FairTrackParam fParamFirst;
89 FairTrackParam fParamLast;
90 vector<BmnFitNode> fFitNodes; // Array of fit nodes
91
93 Int_t fPidHypo;
94
96 Double32_t fChi2;
97
99 Int_t fNDF;
100
102 Int_t fFlag;
103
105 Double32_t fLength;
106
107
108 ClassDef(CbmGlobalTrack, 2);
109
110};
111
112
113#endif
void SetStsTrackIndex(Int_t iSts)
const FairTrackParam * GetParamLast() const
void SetParamLast(const FairTrackParam *parLast)
const BmnFitNode * GetFitNode(Int_t index) const
virtual ~CbmGlobalTrack()
Int_t GetFlag() const
Double_t GetLength() const
void SetChi2(Double_t chi2)
void SetRichRingIndex(Int_t iRing)
void SetNDF(Int_t ndf)
void SetPidHypo(Int_t iPid)
void SetTrdTrackIndex(Int_t iTrd)
void SetNofHits(Int_t n)
Int_t GetPidHypo() const
Int_t GetNofHits() const
Int_t GetNDF() const
void SetParamFirst(const FairTrackParam *parFirst)
Int_t GetTrdTrackIndex() const
void SetLength(Double_t length)
void Print() const
Int_t GetTofHitIndex() const
void SetFlag(Int_t iFlag)
Double_t GetChi2() const
const vector< BmnFitNode > & GetFitNodes() const
void SetTofHitIndex(Int_t iTofHit)
const FairTrackParam * GetParamFirst() const
Int_t GetMuchTrackIndex() const
void SetMuchTrackIndex(Int_t iMuch)
Int_t GetStsTrackIndex() const
void SetFitNodes(const vector< BmnFitNode > &nodes)
Int_t GetRichRingIndex() const