BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
7/** CbmGlobalTrack.h
8 *@author V.Friese <v.friese@gsi.de>
9 **
10 ** Data class for Global CBM track. Data level RECO.
11 ** It consists of local tracks in STS, MUCH and TRD and a RICH ring.
12 **
13 **/
14
15#ifndef CBMGLOBALTRACK_H_
16#define CBMGLOBALTRACK_H_ 1
17
18#include "BmnFitNode.h"
19#include "FairTrackParam.h"
20#include "TObject.h"
21
22class CbmGlobalTrack : public TObject
23{
24
25 public:
26 /** Default constructor **/
28
29 /** Destructor **/
30 virtual ~CbmGlobalTrack();
31
32 /** Accessors **/
33 Int_t GetStsTrackIndex() const { return fStsTrack; }
34 Int_t GetTrdTrackIndex() const { return fTrdTrack; }
36 Int_t GetRichRingIndex() const { return fRichRing; }
37 Int_t GetTofHitIndex() const { return fTofHit; }
38 const FairTrackParam* GetParamFirst() const { return &fParamFirst; }
39 const FairTrackParam* GetParamLast() const { return &fParamLast; }
40 Int_t GetPidHypo() const { return fPidHypo; }
41 Double_t GetChi2() const { return fChi2; }
42 Int_t GetNDF() const { return fNDF; }
43 Int_t GetFlag() const { return fFlag; }
44 Double_t GetLength() const { return fLength; }
45
46 const BmnFitNode* GetFitNode(Int_t index) const { return &fFitNodes[index]; }
47 const vector<BmnFitNode>& GetFitNodes() const { return fFitNodes; }
48 Int_t GetNofHits() const { return fNofHits; }
49
50 /** Modifiers **/
51 void SetStsTrackIndex(Int_t iSts) { fStsTrack = iSts; }
52 void SetTrdTrackIndex(Int_t iTrd) { fTrdTrack = iTrd; }
53 void SetMuchTrackIndex(Int_t iMuch) { fMuchTrack = iMuch; }
54 void SetRichRingIndex(Int_t iRing) { fRichRing = iRing; }
55 void SetTofHitIndex(Int_t iTofHit) { fTofHit = iTofHit; }
56 void SetParamFirst(const FairTrackParam* parFirst) { fParamFirst = *parFirst; }
57 void SetParamLast(const FairTrackParam* parLast) { fParamLast = *parLast; }
58 void SetPidHypo(Int_t iPid) { fPidHypo = iPid; }
59 void SetChi2(Double_t chi2) { fChi2 = chi2; }
60 void SetNDF(Int_t ndf) { fNDF = ndf; }
61 void SetFlag(Int_t iFlag) { fFlag = iFlag; }
62 void SetLength(Double_t length) { fLength = length; }
63
64 void SetFitNodes(const vector<BmnFitNode>& nodes) { fFitNodes = nodes; }
66
67 /** Output to screen **/
68 void Print() const;
69
70 private:
71 /** Indices of local StsTrack, TrdTrack, MuchTrack, RichRing and TofHit **/
77
78 Int_t fNofHits; // number of all hits
79
80 /** Global track parameters at first and last plane **/
81 FairTrackParam fParamFirst;
82 FairTrackParam fParamLast;
83 vector<BmnFitNode> fFitNodes; // Array of fit nodes
84
85 /** PID hypothesis used for global track fit **/
87
88 /** Chi2 of global track fit **/
90
91 /** NDF of global track fit **/
93
94 /** Quality flag **/
96
97 /** Track length **/
99
101};
102
103#endif
int Int_t
double Double32_t
double Double_t
#define ClassDef(name, id)
void SetStsTrackIndex(Int_t iSts)
Modifiers.
const FairTrackParam * GetParamLast() const
void SetParamLast(const FairTrackParam *parLast)
FairTrackParam fParamFirst
Global track parameters at first and last plane.
const BmnFitNode * GetFitNode(Int_t index) const
virtual ~CbmGlobalTrack()
Destructor.
Int_t fPidHypo
PID hypothesis used for global track fit.
Int_t GetFlag() const
Double_t GetLength() const
Double32_t fChi2
Chi2 of global track fit.
Int_t fStsTrack
Indices of local StsTrack, TrdTrack, MuchTrack, RichRing and TofHit.
Double32_t fLength
Track length.
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
FairTrackParam fParamLast
Int_t GetNDF() const
void SetParamFirst(const FairTrackParam *parFirst)
Int_t GetTrdTrackIndex() const
void SetLength(Double_t length)
Int_t fNDF
NDF of global track fit.
void Print() const
Output to screen.
Int_t fFlag
Quality flag.
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)
vector< BmnFitNode > fFitNodes
CbmGlobalTrack()
Default constructor.
Int_t GetStsTrackIndex() const
Accessors.
void SetFitNodes(const vector< BmnFitNode > &nodes)
Int_t GetRichRingIndex() const
*brief user defined string literal for JSON values *sa std::size_t n
Definition json.hpp:20362