StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofHit.h
1 
5 /***************************************************************************
6  *
7  * $Id: StTofHit.h,v 2.11 2016/02/25 17:10:20 ullrich Exp $
8  *
9  * Author: Wei-Ming Zhang, Dec 2000
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StTofHit.h,v $
17  * Revision 2.11 2016/02/25 17:10:20 ullrich
18  * Implemented detector() which is now a pure abstract method in StHit.
19  *
20  * Revision 2.10 2004/07/15 16:36:25 ullrich
21  * Removed all clone() declerations and definitions. Use StObject::clone() only.
22  *
23  * Revision 2.9 2004/02/05 17:59:44 ullrich
24  * Changed $LINK to StLink mechanism and add new member.
25  *
26  * Revision 2.8 2003/09/02 17:58:05 perev
27  * gcc 3.2 updates + WarnOff
28  *
29  * Revision 2.7 2003/07/09 20:14:20 ullrich
30  * New methods added.
31  *
32  * Revision 2.6 2003/05/21 18:22:46 ullrich
33  * Major Revision of ToF classes (F. Geurts)
34  *
35  * Revision 2.5 2002/02/22 22:56:51 jeromel
36  * Doxygen basic documentation in all header files. None of this is required
37  * for QM production.
38  *
39  * Revision 2.4 2001/04/16 20:49:00 ullrich
40  * Fixed typo in setSlatIndex().
41  *
42  * Revision 2.3 2001/04/05 04:00:43 ullrich
43  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
44  *
45  * Revision 2.2 2001/03/24 03:34:59 perev
46  * clone() -> clone() const
47  *
48  * Revision 2.1 2000/12/21 23:52:25 ullrich
49  * Initial Revision.
50  *
51  **************************************************************************/
52 #ifndef StTofHit_hh
53 #define StTofHit_hh
54 
55 #include <Stiostream.h>
56 #include "StHit.h"
57 
59 class StTrack;
60 
61 class StTofHit : public StHit {
62 public:
63  StTofHit();
64  ~StTofHit();
65 
66  int trayIndex() const;
67  int moduleIndex() const;
68  int cellIndex() const;
69  int daqIndex() const;
70  int cellCollIndex() const;
71  float timeOfFlight() const;
72  float pathLength() const;
73  float beta() const;
74 
75  StTrack* associatedTrack();
76  const StTrack* associatedTrack() const;
77 
78  float tofExpectedAsElectron() const;
79  float tofExpectedAsPion() const;
80  float tofExpectedAsKaon() const;
81  float tofExpectedAsProton() const;
82 
83  float sigmaElectron() const;
84  float sigmaPion() const;
85  float sigmaKaon() const;
86  float sigmaProton() const;
87 
88  StParticleDefinition* particleHypothesis();
89  const StParticleDefinition* particleHypothesis() const;
90 
91  void setTrayIndex(int);
92  void setModuleIndex(int);
93  void setCellIndex(int);
94  void setCellCollIndex(int);
95  void setDaqIndex(int);
96  void setTimeOfFlight(float);
97  void setPathLength(float);
98  void setBeta(float);
99  void setAssociatedTrack(StTrack*);
100  void setTofExpectedAsElectron(float);
101  void setTofExpectedAsPion(float);
102  void setTofExpectedAsKaon(float);
103  void setTofExpectedAsProton(float);
104  void setSigmaElectron(float);
105  void setSigmaPion(float);
106  void setSigmaKaon(float);
107  void setSigmaProton(float);
108  void setParticleHypothesis(StParticleDefinition*);
109 
110  StDetectorId detector() const;
111 
112  protected:
113  Int_t mTrayIndex;
114  Int_t mModuleIndex;
115  Int_t mCellIndex;
116  Int_t mDaqIndex;
117  Int_t mCellCollIndex;
118  Float_t mTimeOfFlight;
119  Float_t mPathLength;
120  Float_t mBeta;
121  // StTrack *mAssociatedTrack; //$LINK
122 #ifdef __CINT__
123  StObjLink mAssociatedTrack;
124 #else
125  StLink<StTrack> mAssociatedTrack;
126 #endif //__CINT__
127  Float_t mTOFExpectedAsElectron;
128  Float_t mTOFExpectedAsPion;
129  Float_t mTOFExpectedAsKaon;
130  Float_t mTOFExpectedAsProton;
131  Float_t mSigmaElectron;
132  Float_t mSigmaPion;
133  Float_t mSigmaKaon;
134  Float_t mSigmaProton;
135  StParticleDefinition *mParticleHypothesis;
136 
137  ClassDef(StTofHit,3)
138 };
139 
140 inline StDetectorId StTofHit::detector() const {return static_cast<StDetectorId>(StHit::bits(0, 4));}
141 
142 #endif
Definition: StHit.h:125