BmnRoot
Loading...
Searching...
No Matches
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
10class CbmStsTrack;
11class CbmMuchTrack;
12
14{
15 public:
16
19
20 double *GetTrack(){ return T; }
21 double *GetCovMatrix(){ return C; }
22 double &GetRefChi2(){ return chi2; }
23 int &GetRefNDF(){ return NDF; }
24 double GetMass(){ return 0.1057; }
25 bool IsElectron(){ return 0; }
26 int GetNOfHits(){ return vHits.size(); }
27 CbmKFHit *GetHit( int i ){ return vHits[i]; }
28
29 void SetStsTrack( CbmStsTrack* track);
30 void SetMuchTrack( CbmMuchTrack* track);
31
32 double T[6], C[15], chi2 ;
33 int NDF ;
34 std::vector<CbmL1SttHit* > vHits;
36 bool ok;
37 bool stopped;
38 int StsID;
39
40 static bool Compare( const CbmL1SttTrack *p1, const CbmL1SttTrack *p2 ){
41 return (p1->NHits>p2->NHits) || (p1->NHits==p2->NHits)&&(p1->chi2 <p2->chi2) ;
42 }
43
44 public:
46
47};
48
49#endif
int i
Definition P4_F32vec4.h:22
CbmKFHit * GetHit(int i)
bool IsElectron()
Mass hypothesis.
void SetStsTrack(CbmStsTrack *track)
double & GetRefChi2()
array[15] of covariance matrix
int GetNOfHits()
Number of Degrees of Freedom after fit.
double C[15]
double GetMass()
static bool Compare(const CbmL1SttTrack *p1, const CbmL1SttTrack *p2)
std::vector< CbmL1SttHit * > vHits
int & GetRefNDF()
Chi^2 after fit.
double * GetCovMatrix()
array[6] of track parameters(x,y,tx,ty,qp,z)
ClassDef(CbmL1SttTrack, 1)
void SetMuchTrack(CbmMuchTrack *track)
double * GetTrack()
Is it electron.