StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StETofPidTraits.h
1 /***************************************************************************
2  *
3  * $Id: StETofPidTraits.h,v 2.1 2019/02/11 18:41:19 ullrich Exp $
4  *
5  * Author: Florian Seck, August 2018
6  ***************************************************************************
7  *
8  * Description: Data class for storing eTOF PID information for tracks
9  * matched to eTOF hits
10  *
11  ***************************************************************************
12  *
13  * $Log: StETofPidTraits.h,v $
14  * Revision 2.1 2019/02/11 18:41:19 ullrich
15  * Initial Revision
16  *
17  *
18  ***************************************************************************/
19 #ifndef STETOFPIDTRAITS_H
20 #define STETOFPIDTRAITS_H
21 
22 
23 #include "StTrackPidTraits.h"
24 #include "StETofHit.h"
25 #include "StThreeVectorF.hh"
26 #include "StEnumerations.h"
27 
28 
29 
31 public:
33  ~StETofPidTraits();
34 
35  StETofHit* etofHit();
36  const StETofHit* etofHit() const;
37 
39  unsigned short matchFlag() const;
40  float localX() const;
41  float localY() const;
42  float thetaLocal() const;
43  float deltaX() const;
44  float deltaY() const;
45 
46  StThreeVectorF& position();
47  const StThreeVectorF& position() const;
48 
50  float timeOfFlight() const;
51  float pathLength() const;
52  float beta() const;
53 
55 
56 
58  void setETofHit( StETofHit* hit );
59 
60  void setMatchFlag( const unsigned short& flag );
61 
62  void setLocalX( const float& );
63  void setLocalY( const float& );
64  void setThetaLocal( const float& );
65  void setDeltaX( const float& );
66  void setDeltaY( const float& );
67 
68  void setPosition( const StThreeVectorF& );
69 
70  void setTimeOfFlight( const float& );
71  void setPathLength( const float& );
72  void setBeta( const float& );
73 
74 private:
75  StETofHit* mETofHit; //$LINK
76 
77  UShort_t mMatchFlag; // match flag:
78  Float_t mLocalX; // local X coordinate
79  Float_t mLocalY; // local Y coordinate
80  Float_t mThetaLocal; // angle of incident angle of track to volume normal
81  Float_t mDeltaX; // delta X between matched track-hit pair
82  Float_t mDeltaY; // delta Y between matched track-hit pair
83  StThreeVectorF mPosition;
84 
85  Float_t mTimeOfFlight; // measured time-of-flight
86  Float_t mPathLength; // path length obtained from track extrapolation
87  Float_t mBeta; // particle velocity
88 
89 
90  ClassDef( StETofPidTraits, 1 )
91 };
92 
93 inline unsigned short StETofPidTraits::matchFlag() const { return mMatchFlag; }
94 inline float StETofPidTraits::localX() const { return mLocalX; }
95 inline float StETofPidTraits::localY() const { return mLocalY; }
96 inline float StETofPidTraits::deltaX() const { return mDeltaX; }
97 inline float StETofPidTraits::deltaY() const { return mDeltaY; }
98 inline float StETofPidTraits::thetaLocal() const { return mThetaLocal; }
99 inline float StETofPidTraits::timeOfFlight() const { return mTimeOfFlight; }
100 inline float StETofPidTraits::pathLength() const { return mPathLength; }
101 inline float StETofPidTraits::beta() const { return mBeta; }
102 
103 inline void StETofPidTraits::setMatchFlag( const unsigned short& flag ) { mMatchFlag = flag; }
104 inline void StETofPidTraits::setLocalX( const float& x ) { mLocalX = x; }
105 inline void StETofPidTraits::setLocalY( const float& y ) { mLocalY = y; }
106 inline void StETofPidTraits::setDeltaX( const float& x ) { mDeltaX = x; }
107 inline void StETofPidTraits::setDeltaY( const float& y ) { mDeltaY = y; }
108 inline void StETofPidTraits::setThetaLocal( const float& theta ) { mThetaLocal = theta; }
109 inline void StETofPidTraits::setTimeOfFlight( const float& t ) { mTimeOfFlight = t; }
110 inline void StETofPidTraits::setPathLength( const float& s ) { mPathLength = s; }
111 inline void StETofPidTraits::setBeta( const float& beta ) { mBeta = beta; }
112 
113 #endif
void setETofHit(StETofHit *hit)
PID functions – to be added (?)
float timeOfFlight() const
timing for PID
unsigned short matchFlag() const
matching information