CbmRoot
Loading...
Searching...
No Matches
CbmGlobalTrack.h
Go to the documentation of this file.
1/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Denis Bertini [committer], Florian Uhlig */
4
5// -------------------------------------------------------------------------
6// ----- CbmGlobalTrack header file -----
7// ----- Created 01/12/05 by V. Friese -----
8// ----- Modified 04/06/09 by A. Lebedev -----
9// -------------------------------------------------------------------------
10
19#ifndef CBMGLOBALTRACK_H_
20#define CBMGLOBALTRACK_H_ 1
21
22#include "CbmTrackParam.h" // for CbmTrackParam
23
24#include <FairTrackParam.h> // for FairTrackParam
25
26#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
27#include <RtypesCore.h> // for Double32_t
28#include <TObject.h> // for TObject
29
30#include <cstdint>
31
32class CbmGlobalTrack : public TObject {
33
34public:
37
38
40 virtual ~CbmGlobalTrack();
41
42
44 int32_t GetStsTrackIndex() const { return fStsTrack; }
45 int32_t GetTrdTrackIndex() const { return fTrdTrack; }
46 int32_t GetMuchTrackIndex() const { return fMuchTrack; }
47 int32_t GetRichRingIndex() const { return fRichRing; }
48 int32_t GetTofHitIndex() const { return fTofHit; }
49 int32_t GetTofTrackIndex() const { return fTofTrack; }
50 const FairTrackParam* GetParamFirst() const { return &fParamFirst; }
51 const FairTrackParam* GetParamLast() const { return &fParamLast; }
53 int32_t GetPidHypo() const { return fPidHypo; }
54 double GetChi2() const { return fChiSq; }
55 int32_t GetNDF() const { return fNdf; }
56 double GetChiSqTime() const { return fChiSqTime; }
57 int32_t GetNdfTime() const { return fNdfTime; }
58 int32_t GetFlag() const { return fFlag; }
59 double GetLength() const { return fLength; }
60
61
63 void SetStsTrackIndex(int32_t iSts) { fStsTrack = iSts; }
64 void SetTrdTrackIndex(int32_t iTrd) { fTrdTrack = iTrd; }
65 void SetMuchTrackIndex(int32_t iMuch) { fMuchTrack = iMuch; }
66 void SetRichRingIndex(int32_t iRing) { fRichRing = iRing; }
67 void SetTofHitIndex(int32_t iTofHit) { fTofHit = iTofHit; }
68 void SetTofTrackIndex(int32_t iTofTrack) { fTofTrack = iTofTrack; }
69 void SetParamFirst(const FairTrackParam* parFirst) { fParamFirst = *parFirst; }
70 void SetParamLast(const FairTrackParam* parLast) { fParamLast = *parLast; }
71 void SetParamFirst(const FairTrackParam& parFirst) { fParamFirst = parFirst; }
72 void SetParamLast(const FairTrackParam& parLast) { fParamLast = parLast; }
73 // TODO: SZh. 03.07.2024: Add initialization of time parameters for primary vertex!
74 void SetParamPrimaryVertex(const FairTrackParam* parPV) { fParamPrimaryVertex.Set(*parPV); }
75 void SetPidHypo(int32_t iPid) { fPidHypo = iPid; }
76 void SetChi2(double chi2) { fChiSq = chi2; }
77 void SetNDF(int32_t ndf) { fNdf = ndf; }
78 void SetChiSqTime(double chi2) { fChiSqTime = chi2; }
79 void SetNdfTime(int32_t ndf) { fNdfTime = ndf; }
80 void SetFlag(int32_t iFlag) { fFlag = iFlag; }
81 void SetLength(double length) { fLength = length; }
82
83
85 virtual void Print(Option_t* opt = "") const;
86
87
88private:
90 int32_t fStsTrack = -1;
91 int32_t fTrdTrack = -1;
92 int32_t fMuchTrack = -1;
93 int32_t fRichRing = -1;
94 int32_t fTofHit = -1;
95 int32_t fTofTrack = -1;
96
98 FairTrackParam fParamFirst;
99 FairTrackParam fParamLast;
101
103 int32_t fPidHypo = 0;
104
106 double fChiSq = 0.;
107
109 int32_t fNdf = 0;
110
112 int32_t fFlag = 0;
113
115 double fLength = 0.;
116
118 double fChiSqTime = 0.;
119
121 int32_t fNdfTime = 0.;
122
124};
125
126
127#endif
const FairTrackParam * GetParamLast() const
void SetParamPrimaryVertex(const FairTrackParam *parPV)
void SetChiSqTime(double chi2)
void SetParamLast(const FairTrackParam *parLast)
FairTrackParam fParamFirst
int32_t GetStsTrackIndex() const
const CbmTrackParam * GetParamVertex() const
void SetMuchTrackIndex(int32_t iMuch)
virtual ~CbmGlobalTrack()
void SetPidHypo(int32_t iPid)
double GetChi2() const
int32_t GetRichRingIndex() const
int32_t GetTofTrackIndex() const
void SetTofTrackIndex(int32_t iTofTrack)
int32_t GetPidHypo() const
void SetParamLast(const FairTrackParam &parLast)
void SetParamFirst(const FairTrackParam &parFirst)
void SetChi2(double chi2)
ClassDef(CbmGlobalTrack, 4)
void SetTofHitIndex(int32_t iTofHit)
double GetChiSqTime() const
FairTrackParam fParamLast
void SetTrdTrackIndex(int32_t iTrd)
int32_t GetTofHitIndex() const
int32_t GetMuchTrackIndex() const
void SetParamFirst(const FairTrackParam *parFirst)
void SetNDF(int32_t ndf)
void SetLength(double length)
void SetFlag(int32_t iFlag)
int32_t GetNDF() const
void SetRichRingIndex(int32_t iRing)
int32_t GetFlag() const
void SetNdfTime(int32_t ndf)
virtual void Print(Option_t *opt="") const
const FairTrackParam * GetParamFirst() const
CbmTrackParam fParamPrimaryVertex
double GetLength() const
int32_t GetNdfTime() const
int32_t GetTrdTrackIndex() const
void SetStsTrackIndex(int32_t iSts)
void Set(const FairTrackParam &ftp, double time=0., double timeError=0.)