StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltVpdHit.h
1 /***************************************************************************
2  *
3  * $Id: StHltVpdHit.h,v 2.1 2011/02/01 19:45:48 ullrich Exp $
4  *
5  * Author: Liang Xue, Aihong Tang, Jan 2011
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StHltVpdHit.h,v $
13  * Revision 2.1 2011/02/01 19:45:48 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #ifndef StHltVpdHit_hh
18 #define StHltVpdHit_hh
19 
20 #include <Stiostream.h>
21 #include "StObject.h"
22 #include "StArray.h"
23 #include "StEnumerations.h"
24 
25 class StHltVpdHit : public StObject {
26 public:
27  StHltVpdHit();
28  ~StHltVpdHit();
29 
30  StBeamDirection direction() const;
31  short channel() const;
32  float tdc() const;
33  float tot() const;
34  float tof() const;
35  float triggerTime() const;
36  short module() const;
37  short cell() const;
38 
39 
40  void setDirection(StBeamDirection);
41  void setChannel(short);
42  void setTdc(float);
43  void setTot(float);
44  void setTof(float);
45  void setTriggerTime(float);
46 
47 private:
48  StBeamDirection mDirection;
49  short mChannel;
50  float mTdc;
51  float mTot;
52  float mTof;
53  float mTriggerTime;
54 
55  ClassDef(StHltVpdHit,1)
56 };
57 
58 inline StBeamDirection StHltVpdHit::direction() const {return mDirection;}
59 inline short StHltVpdHit::channel() const {return mChannel;}
60 inline float StHltVpdHit::tdc() const {return mTdc;}
61 inline float StHltVpdHit::tot() const {return mTot;}
62 inline float StHltVpdHit::tof() const {return mTof;}
63 inline float StHltVpdHit::triggerTime() const {return mTriggerTime;}
64 inline short StHltVpdHit::module() const {return mChannel/6;}
65 inline short StHltVpdHit::cell() const {return mChannel%6;}
66 
67 
68 ostream& operator<<(ostream&, const StHltVpdHit&);
69 
70 #endif
71 
StBeamDirection direction() const
0 is east and 1 is west
Definition: StHltVpdHit.h:58
Definition: tof.h:15