CbmRoot
CbmKFTrack.h
Go to the documentation of this file.
1 
9 #ifndef CBMKFTRACK_H
10 #define CBMKFTRACK_H
11 
12 #include "CbmKFHit.h"
13 #include "CbmKFTrackInterface.h"
14 
15 #include <vector>
16 
17 class CbmKFHit;
18 class FairTrackParam;
19 class CbmStsTrack;
20 
22 
23 private:
24  Double_t fT[6], fC[15], fMass, fChi2;
25  Bool_t fIsElectron;
26  Int_t fNDF;
27 
28 public:
29  std::vector<CbmKFHit*> fHits;
30 
33 
35  : fMass(0), fChi2(0), fIsElectron(0), fNDF(0), fHits() {
36  SetTrack(track);
37  }
38 
39  CbmKFTrack(FairTrackParam& track)
40  : fMass(0), fChi2(0), fIsElectron(0), fNDF(0), fHits() {
41  SetTrackParam(track);
42  }
43 
44  CbmKFTrack(CbmStsTrack& track, bool first = 1)
45  : fMass(0), fChi2(0), fIsElectron(0), fNDF(0), fHits() {
46  SetStsTrack(track, first);
47  }
48 
49  void SetTrack(CbmKFTrackInterface& track);
50  void SetTrackParam(const FairTrackParam& track);
51  void SetStsTrack(CbmStsTrack& track, bool first = 1);
52 
53  void GetTrackParam(FairTrackParam& track);
54  void GetStsTrack(CbmStsTrack& track, bool first = 1);
55 
56  void SetPID(Int_t pidHypo);
57 
58  Double_t* GetTrack() { return fT; }
59  Double_t* GetCovMatrix() { return fC; }
60  Double_t& GetRefChi2() { return fChi2; }
61  Int_t& GetRefNDF() { return fNDF; }
62  Double_t GetMass() { return fMass; }
63  Bool_t IsElectron() { return fIsElectron; }
64  Int_t GetNOfHits() { return fHits.size(); }
65  CbmKFHit* GetHit(Int_t i) { return fHits[i]; }
66 
67  ClassDef(CbmKFTrack, 1)
68 };
69 
70 #endif
CbmKFTrack::fC
Double_t fC[15]
Definition: CbmKFTrack.h:24
CbmKFTrack::CbmKFTrack
CbmKFTrack(FairTrackParam &track)
Definition: CbmKFTrack.h:39
CbmKFTrack::fNDF
Int_t fNDF
Definition: CbmKFTrack.h:26
CbmKFTrack::SetPID
void SetPID(Int_t pidHypo)
Definition: CbmKFTrack.cxx:58
CbmKFTrack::GetTrack
Double_t * GetTrack()
Is it electron.
Definition: CbmKFTrack.h:58
CbmKFHit
Definition: CbmKFHit.h:16
CbmKFTrack::GetTrackParam
void GetTrackParam(FairTrackParam &track)
Definition: CbmKFTrack.cxx:45
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
CbmKFTrack::CbmKFTrack
CbmKFTrack()
CbmKFTrack::GetMass
Double_t GetMass()
Definition: CbmKFTrack.h:62
CbmKFTrack::fIsElectron
Bool_t fIsElectron
Definition: CbmKFTrack.h:25
CbmKFTrackInterface.h
CbmKFTrack::SetTrack
void SetTrack(CbmKFTrackInterface &track)
Definition: CbmKFTrack.cxx:23
CbmKFTrack::GetRefChi2
Double_t & GetRefChi2()
array[15] of covariance matrix
Definition: CbmKFTrack.h:60
CbmKFTrack::SetStsTrack
void SetStsTrack(CbmStsTrack &track, bool first=1)
Definition: CbmKFTrack.cxx:38
CbmKFTrack::fMass
Double_t fMass
Definition: CbmKFTrack.h:24
CbmKFTrack::GetRefNDF
Int_t & GetRefNDF()
Chi^2 after fit.
Definition: CbmKFTrack.h:61
CbmKFTrack::~CbmKFTrack
~CbmKFTrack()
Definition: CbmKFTrack.h:32
CbmKFTrack::fChi2
Double_t fChi2
Definition: CbmKFTrack.h:24
CbmKFTrack::GetCovMatrix
Double_t * GetCovMatrix()
array[6] of track parameters(x,y,tx,ty,qp,z)
Definition: CbmKFTrack.h:59
CbmKFTrack::CbmKFTrack
CbmKFTrack(CbmStsTrack &track, bool first=1)
Definition: CbmKFTrack.h:44
first
bool first
Definition: LKFMinuit.cxx:143
CbmKFTrackInterface
Definition: CbmKFTrackInterface.h:26
CbmKFTrack::CbmKFTrack
CbmKFTrack(CbmKFTrackInterface &track)
Definition: CbmKFTrack.h:34
CbmKFTrack::fT
Double_t fT[6]
Definition: CbmKFTrack.h:24
CbmKFTrack::IsElectron
Bool_t IsElectron()
Mass hypothesis.
Definition: CbmKFTrack.h:63
CbmKFTrack::GetStsTrack
void GetStsTrack(CbmStsTrack &track, bool first=1)
Definition: CbmKFTrack.cxx:49
CbmKFHit.h
CbmKFTrack::GetNOfHits
Int_t GetNOfHits()
Number of Degrees of Freedom after fit.
Definition: CbmKFTrack.h:64
CbmKFTrack::GetHit
CbmKFHit * GetHit(Int_t i)
Number of hits.
Definition: CbmKFTrack.h:65
CbmStsTrack
Definition: CbmStsTrack.h:37
CbmKFTrack
Definition: CbmKFTrack.h:21
CbmKFTrack::SetTrackParam
void SetTrackParam(const FairTrackParam &track)
Definition: CbmKFTrack.cxx:34
CbmKFTrack::fHits
std::vector< CbmKFHit * > fHits
Definition: CbmKFTrack.h:29