StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPicoMtdPidTraits.h
1 
9 #ifndef StPicoMtdPidTraits_h
10 #define StPicoMtdPidTraits_h
11 
12 // ROOT headers
13 #include "TObject.h"
14 
15 //_________________
16 class StPicoMtdPidTraits : public TObject {
17 
18  public:
19 
25  virtual ~StPicoMtdPidTraits();
27  virtual void Print(const Char_t* option = "") const;
28 
29  //
30  // Getters
31  //
32 
34  Int_t trackIndex() const { return mTrackIndex; }
36  Int_t mtdHitIndex() const { return mMtdHitIndex; }
38  Int_t gChannel() const { return mMtdHitChan; }
40  Int_t backleg() const { return mMtdHitChan / 60 + 1; }
42  Int_t module() const { return (mMtdHitChan % 60) / 12 + 1; }
44  Int_t cell() const { return mMtdHitChan % 12; }
46  Int_t matchFlag() const { return mMatchFlag; }
48  Float_t deltaY() const { return (Float_t)mDeltaY / 200.; }
50  Float_t deltaZ() const { return (Float_t)mDeltaZ / 200.; }
52  Float_t deltaTimeOfFlight() const { return mDeltaTimeOfFlight; }
54  Float_t beta() const { return (Float_t)mBeta / 20000.; }
55 
56  //
57  // Setters
58  //
59 
61  void setTrackIndex(Int_t index) { mTrackIndex = (Short_t) index; }
63  void setMtdHitIndex(Int_t index) { mMtdHitIndex = (Short_t) index; }
65  void setMatchFlag(Char_t flag) { mMatchFlag = (Char_t)flag; }
67  void setDeltaY(Float_t dy);
69  void setDeltaZ(Float_t dz);
71  void setDeltaTimeOfFlight(Float_t t) { mDeltaTimeOfFlight = t; }
73  void setBeta(Float_t beta);
75  void setHitChannel(Int_t backleg, Int_t module, Int_t cell);
76 
77  private:
78 
80  Short_t mTrackIndex;
82  Short_t mMtdHitIndex;
84  Char_t mMatchFlag;
86  Short_t mDeltaY;
88  Short_t mDeltaZ;
90  Float_t mDeltaTimeOfFlight;
92  UShort_t mBeta;
94  Short_t mMtdHitChan;
95 
96  ClassDef(StPicoMtdPidTraits, 3)
97 };
98 
99 #endif
Float_t beta() const
Return beta.
Holds information about MTD-matched track.
virtual void Print(const Char_t *option="") const
Print MTD PID traits information.
Int_t cell() const
Return cell number.
Int_t gChannel() const
Return hit channel.
Int_t backleg() const
Return backleg number.
void setDeltaZ(Float_t dz)
Set delta Z.
Float_t deltaY() const
Return delta Y.
StPicoMtdPidTraits()
Default constructor.
Float_t deltaZ() const
Return delta Z.
Int_t mtdHitIndex() const
Return hit index.
Int_t trackIndex() const
Return assiciated track index.
void setHitChannel(Int_t backleg, Int_t module, Int_t cell)
Set hit channel: (backleg-1) * 60 + (module-1) * 12 + cell.
void setDeltaY(Float_t dy)
Set delta Y.
void setBeta(Float_t beta)
Set beta.
void setMatchFlag(Char_t flag)
Set match flag.
virtual ~StPicoMtdPidTraits()
Destructor.
void setMtdHitIndex(Int_t index)
Set MTD hit index.
void setTrackIndex(Int_t index)
Set track index of the associated track.
Int_t module() const
Return module number.
void setDeltaTimeOfFlight(Float_t t)
Set difference between measured and expected time of flight.
Int_t matchFlag() const
Return match flag.
Float_t deltaTimeOfFlight() const
Return difference between measured and expected time of flight.