CbmRoot
CbmL1SttTrack.h
Go to the documentation of this file.
1 #ifndef CBM_L1_STTTRACK_h
2 #define CBM_L1_STTTRACK_h
3 
4 #include "CbmL1SttHit.h"
5 
6 #include "CbmKFTrackInterface.h"
7 
8 #include <vector>
9 
10 class CbmStsTrack;
11 class CbmMuchTrack;
12 
14 public:
17 
18  double* GetTrack() { return T; }
19  double* GetCovMatrix() { return C; }
20  double& GetRefChi2() { return chi2; }
21  int& GetRefNDF() { return NDF; }
22  double GetMass() { return 0.1057; }
23  bool IsElectron() { return 0; }
24  int GetNOfHits() { return vHits.size(); }
25  CbmKFHit* GetHit(int i) { return vHits[i]; }
26 
27  void SetStsTrack(CbmStsTrack* track);
28  void SetMuchTrack(CbmMuchTrack* track);
29 
30  double T[6], C[15], chi2;
31  int NDF;
32  std::vector<CbmL1SttHit*> vHits;
34  bool ok;
35  bool stopped;
36  int StsID;
37 
38  static bool Compare(const CbmL1SttTrack* p1, const CbmL1SttTrack* p2) {
39  return (p1->NHits > p2->NHits)
40  || (p1->NHits == p2->NHits) && (p1->chi2 < p2->chi2);
41  }
42 
43 public:
45 };
46 
47 #endif
CbmL1SttTrack::NMissedStations
int NMissedStations
Definition: CbmL1SttTrack.h:33
CbmL1SttTrack::IsElectron
bool IsElectron()
Mass hypothesis.
Definition: CbmL1SttTrack.h:23
CbmL1SttTrack::NMissed
int NMissed
Definition: CbmL1SttTrack.h:33
CbmL1SttTrack::NHits
int NHits
Definition: CbmL1SttTrack.h:33
CbmL1SttTrack::GetTrack
double * GetTrack()
Is it electron.
Definition: CbmL1SttTrack.h:18
CbmL1SttTrack::SetStsTrack
void SetStsTrack(CbmStsTrack *track)
Definition: CbmL1SttTrack.cxx:9
CbmKFHit
Definition: CbmKFHit.h:16
CbmL1SttTrack::ClassDef
ClassDef(CbmL1SttTrack, 1)
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
CbmL1SttTrack::C
double C[15]
Definition: CbmL1SttTrack.h:30
CbmL1SttTrack::ok
bool ok
Definition: CbmL1SttTrack.h:34
CbmL1SttTrack::GetHit
CbmKFHit * GetHit(int i)
Definition: CbmL1SttTrack.h:25
CbmL1SttTrack::stopped
bool stopped
Definition: CbmL1SttTrack.h:35
CbmL1SttTrack::GetRefNDF
int & GetRefNDF()
Chi^2 after fit.
Definition: CbmL1SttTrack.h:21
CbmMuchTrack
Definition: CbmMuchTrack.h:16
CbmKFTrackInterface.h
CbmL1SttTrack::T
double T[6]
Definition: CbmL1SttTrack.h:30
CbmL1SttTrack::~CbmL1SttTrack
~CbmL1SttTrack()
Definition: CbmL1SttTrack.h:16
CbmL1SttTrack::GetNOfHits
int GetNOfHits()
Number of Degrees of Freedom after fit.
Definition: CbmL1SttTrack.h:24
CbmL1SttTrack::NDF
int NDF
Definition: CbmL1SttTrack.h:31
CbmL1SttTrack::chi2
double chi2
Definition: CbmL1SttTrack.h:30
CbmL1SttTrack::GetCovMatrix
double * GetCovMatrix()
array[6] of track parameters(x,y,tx,ty,qp,z)
Definition: CbmL1SttTrack.h:19
CbmL1SttTrack::StsID
int StsID
Definition: CbmL1SttTrack.h:36
CbmL1SttTrack::GetMass
double GetMass()
Definition: CbmL1SttTrack.h:22
CbmL1SttTrack
Definition: CbmL1SttTrack.h:13
CbmKFTrackInterface
Definition: CbmKFTrackInterface.h:26
CbmL1SttTrack::GetRefChi2
double & GetRefChi2()
array[15] of covariance matrix
Definition: CbmL1SttTrack.h:20
CbmL1SttTrack::Compare
static bool Compare(const CbmL1SttTrack *p1, const CbmL1SttTrack *p2)
Definition: CbmL1SttTrack.h:38
CbmStsTrack
Definition: CbmStsTrack.h:37
CbmL1SttTrack::SetMuchTrack
void SetMuchTrack(CbmMuchTrack *track)
Definition: CbmL1SttTrack.cxx:15
CbmL1SttHit.h
CbmL1SttTrack::CbmL1SttTrack
CbmL1SttTrack()
Definition: CbmL1SttTrack.h:15
CbmL1SttTrack::vHits
std::vector< CbmL1SttHit * > vHits
Definition: CbmL1SttTrack.h:32