StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGammaTrack.h
1 // //
3 // StGammaTrack //
4 // //
5 // Lightweight class to hold TPC track information //
6 // //
7 // Original concept and implementation by //
8 // Jason Webb (Valpo) //
9 // //
11 
12 #ifndef STAR_StGammaTrack
13 #define STAR_StGammaTrack
14 
15 class StMuTrack;
16 class StGammaCandidate;
17 
18 #include "TObject.h"
19 #include "TVector3.h"
20 #include "TRefArray.h"
21 #include "StPhysicalHelix.hh"
22 
23 class StGammaTrack: public TObject
24 {
25 
26  public:
27 
28  class Exception {};
29 
30  StGammaTrack();
32  ~StGammaTrack();
33 
34  virtual const char* GetCVS() const
35  {static const char cvs[] = "Tag $Name: $ $Id: StGammaTrack.h,v 1.9 2014/08/06 11:43:18 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs; }
36 
37  Int_t id;
38  Int_t flag;
39  Int_t type;
40  Int_t charge;
41  Int_t nhits;
42  Float_t dEdx;
43  TVector3 momentum;
44  TVector3 dca;
47  TVector3 positionAtRadius(Double_t radius) const;
48  TVector3 positionAtZ(Double_t z) const;
49  TRefArray candidates;
50 
51  Float_t pt() const;
52  Float_t pz() const;
53  Float_t eta() const;
54  Float_t phi() const;
55 
56  private:
57 
58  ClassDef(StGammaTrack, 2);
59 
60 };
61 
62 inline Float_t StGammaTrack::pt() const { return momentum.Pt(); }
63 inline Float_t StGammaTrack::pz() const { return momentum.Pz(); }
64 inline Float_t StGammaTrack::eta() const { return momentum.Eta(); }
65 inline Float_t StGammaTrack::phi() const { return momentum.Phi(); }
66 
67 typedef std::vector<StGammaTrack> StGammaTrackVec_t;
68 typedef std::vector<StGammaTrack*> StGammaTrackPtrVec_t;
69 
70 #endif
Int_t charge
track type 0=global 1=primary ...
Definition: StGammaTrack.h:40
Int_t flag
id of the track
Definition: StGammaTrack.h:38
StPhysicalHelix outerHelix
Returns inner helix (first measured point)
Definition: StGammaTrack.h:46
TVector3 momentum
energy loss in keV
Definition: StGammaTrack.h:43
Int_t nhits
track charge
Definition: StGammaTrack.h:41
Float_t pt() const
Referencing candidates.
Definition: StGammaTrack.h:62
StPhysicalHelix helix
Distance of closest approach.
Definition: StGammaTrack.h:45
Float_t phi() const
eta at vertex
Definition: StGammaTrack.h:65
Float_t dEdx
nhits along track
Definition: StGammaTrack.h:42
Int_t type
track flag
Definition: StGammaTrack.h:39
TRefArray candidates
Returns (0,0,0) if failed.
Definition: StGammaTrack.h:49
Float_t pz() const
pt at vertex
Definition: StGammaTrack.h:63
TVector3 positionAtRadius(Double_t radius) const
Returns outer helix (last measured point)
TVector3 positionAtZ(Double_t z) const
Returns (0,0,0) if failed.
Float_t eta() const
pz at vertex
Definition: StGammaTrack.h:64