StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrackChair.h
1 #ifndef STAR_StTrackChair
2 #define STAR_StTrackChair
3 #include "TChair.h"
4 #include "StHelixD.hh"
5 
6 class StTrackChair : public TChair {
7  private:
8  UInt_t mR0; // radius at start (cm)
9  UInt_t mPhi0; // azimuthal angle at start (deg)
10  UInt_t mZ0; // z-coord. at start (cm)
11  UInt_t mPsi; // azimuthal angle of pT vector (deg)
12  UInt_t mTanl; // tan(dip) =pz/pt at start
13  UInt_t mInvpt; // 1/pt at start (GeV/c)^(-1)
14  UInt_t mCurvature;// Track curvature (1/cm)
15  UInt_t mLength; // from first to last point (cm)
16  UInt_t mCharge; // Particle charge in units of |e|
17  protected:
18  StTrackChair() {;}
19  public:
20  static const Char_t *trackTableList[];
22  ~StTrackChair(){;}
23  StHelixD *MakeHelix(Int_t i, float bField) const ;
24  TDataSet* Instance() const {return TDataSet::Instance();}//WarnOff
25  static StTrackChair *Instance(TTable *table);
26  static Int_t IsTrack(TTable *table);
27  Float_t R0(Int_t i) const;
28  Float_t Z0(Int_t i) const;
29  Float_t Phi0(Int_t i) const;
30  Float_t Invpt(Int_t i) const;
31  Float_t Curvature(Int_t i) const;
32  Int_t Charge(Int_t i) const;
33  Float_t Length(Int_t i) const;
34  ClassDef(StTrackChair,0)
35 };
36 
37 inline Int_t StTrackChair::Charge(Int_t i) const{return *(Int_t *)GetOffset(At(i),mCharge); }
38 inline Float_t StTrackChair::R0(Int_t i) const {return *(Float_t *)GetOffset(At(i),mR0); }
39 inline Float_t StTrackChair::Z0(Int_t i) const {return *(Float_t *)GetOffset(At(i),mZ0); }
40 inline Float_t StTrackChair::Phi0(Int_t i) const {return *(Float_t *)GetOffset(At(i),mPhi0); }
41 inline Float_t StTrackChair::Invpt(Int_t i)const {return *(Float_t *)GetOffset(At(i),mInvpt); }
42 inline Float_t StTrackChair::Curvature(Int_t i) const {return *(Float_t *)GetOffset(At(i),mCurvature); }
43 inline Float_t StTrackChair::Length(Int_t i) const {return *(Float_t *)GetOffset(At(i),mLength); }
44 
45 #endif
46 
TDataSet * Instance() const
Definition: StTrackChair.h:24
virtual TDataSet * Instance() const
Definition: TDataSet.cxx:546
Definition: TChair.h:27
Definition: TTable.h:48