StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPicoETofHit.h
1 
8 #ifndef StPicoETofHit_h
9 #define StPicoETofHit_h
10 
11 // C++ headers
12 #include <limits>
13 
14 // ROOT headers
15 #include "TObject.h"
16 //#include "TVector3.h"
17 
18 //_________________
19 class StPicoETofHit : public TObject {
20 
21  public:
22 
24  StPicoETofHit();
28  virtual ~StPicoETofHit();
30  virtual void Print( const Char_t* option = "" ) const;
31 
32  //
33  // Getters
34  //
35 
37  Int_t geomId() const { return mGeomId; }
39  Int_t sector() const { return (mGeomId-1) / 9 + 13; }
43  Int_t zPlane() const { return ( ( (mGeomId-1) % 9) / 3) + 1; }
47  Int_t counter() const { return ( (mGeomId-1) % 3) + 1; }
49  Float_t localX() const { return (Float_t)mLocalX / 800.; }
51  Float_t localY() const { return (Float_t)mLocalY / 800.; }
53  Int_t clusterSize() const { return mClusterSize; }
55  Float_t time() const { return mLeadingEdgeTime; }
57  Float_t leadingEdgeTime() const { return time(); }
59  Float_t timeOverThreshold() const { return tot(); }
61  Float_t tot() const { return (Float_t)mTimeOverThreshold / 250.; }
62 
63  /*
65  Float_t globalX() const { return (Float_t)mGlobalX / 100.; }
67  Float_t globalY() const { return (Float_t)mGlobalY / 100.; }
69  Float_t globalZ() const { return (Float_t)mGlobalZ / 100.; }
71  TVector3 globalPos() const { return TVector3( globalX() , globalY() , globalZ() ); }
72  */
73 
74  //
75  // Setters
76  //
77 
79  void setGeomId(Int_t geomId);
81  void setGeomId(Int_t sector, Int_t plane, Int_t counter);
83  void setLocalX(Float_t localX);
85  void setLocalY(Float_t localY);
87  void setClusterSize(Int_t clusterSize);
89  void setTime(Float_t time);
91  void setLeadingEdgeTime(Float_t time) { setTime(time); }
93  void setTimeOverThreshold(Float_t tot);
95  void setTot(Float_t tot);
96 
97  /*
99  void setGlobalX( const Float_t& x );
101  void setGlobalY( const Float_t& y );
103  void setGlobalZ( const Float_t& z );
105  void setGlobalPos( const Float_t& x, const Float_t& y, const Float_t& z );
106  */
107 
108  private:
109 
111  UChar_t mGeomId;
113  Short_t mLocalX;
115  Short_t mLocalY;
117  UChar_t mClusterSize;
119  Float_t mLeadingEdgeTime;
121  UShort_t mTimeOverThreshold;
122 
123  /*
125  Short_t mGlobalX;
127  Short_t mGlobalY;
129  Short_t mGlobalZ;
130  */
131 
132  ClassDef( StPicoETofHit, 1 )
133 };
134 
135 #endif
Float_t localX() const
Return local X coordinate (cm) across strips w.r.t. center of eTOF counter volume.
Definition: StPicoETofHit.h:49
Float_t tot() const
Return time over threshold (ns) of eTOF hit.
Definition: StPicoETofHit.h:61
void setClusterSize(Int_t clusterSize)
Set cluster size of eTOF hit.
Int_t zPlane() const
Definition: StPicoETofHit.h:43
Float_t leadingEdgeTime() const
Return leading edge time (ns) of eTOF hit.
Definition: StPicoETofHit.h:57
void setLocalY(Float_t localY)
Set local Y coordinate (cm) along strips w.r.t. center of eTOF counter volume.
virtual ~StPicoETofHit()
Destructor.
virtual void Print(const Char_t *option="") const
Print hit information.
Float_t timeOverThreshold() const
Return time over threshold (ns) of eTOF hit.
Definition: StPicoETofHit.h:59
StPicoETofHit()
Default consturctor.
Int_t clusterSize() const
Return cluster size of eTOF hit (number of &quot;hits&quot; on different strips clustered into one hit) ...
Definition: StPicoETofHit.h:53
Int_t sector() const
Return eTOF sector number (equal to TPC sector numbering)
Definition: StPicoETofHit.h:39
void setTime(Float_t time)
Set leading edge time (ns) of eTOF hit.
void setTot(Float_t tot)
Set time over threshold (ns) of eTOF hit.
void setTimeOverThreshold(Float_t tot)
Set time over threshold (ns) of eTOF hit.
Int_t geomId() const
Return geometry ID of the hit.
Definition: StPicoETofHit.h:37
Stores eTOF hit information.
Definition: StPicoETofHit.h:19
Int_t counter() const
Definition: StPicoETofHit.h:47
void setGeomId(Int_t geomId)
Set geometry ID of the hit.
Float_t time() const
Return leading edge time (ns) of eTOF hit.
Definition: StPicoETofHit.h:55
Float_t localY() const
Return local Y coordinate (cm) along strips w.r.t. center of eTOF counter volume. ...
Definition: StPicoETofHit.h:51
void setLeadingEdgeTime(Float_t time)
Set leading edge time (ns) of eTOF hit.
Definition: StPicoETofHit.h:91
void setLocalX(Float_t localX)
Set local X coordinate (cm) across strips w.r.t. center of eTOF counter volume.