StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHltBTofHit.h
1 /***************************************************************************
2  *
3  * $Id: StHltBTofHit.h,v 2.1 2011/02/01 19:45:47 ullrich Exp $
4  *
5  * Author: Liang Xue, Aihong Tang, Jan 2011
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StHltBTofHit.h,v $
13  * Revision 2.1 2011/02/01 19:45:47 ullrich
14  * Initial Revision
15  *
16  **************************************************************************/
17 #ifndef StHltBTofHit_hh
18 #define StHltBTofHit_hh
19 
20 #include <Stiostream.h>
21 #include "StObject.h"
22 #include "StArray.h"
23 
24 class StHltTrackNode;
25 
26 class StHltBTofHit : public StObject {
27 public:
28  StHltBTofHit();
29  ~StHltBTofHit();
30 
31  short trayId() const;
32  short channel() const;
33  float tdc() const;
34  float tot() const;
35  float tof() const;
36  float triggerTime() const;
37  short module() const;
38  short cell() const;
39 
40  StHltTrackNode* trackNode();
41  const StHltTrackNode* trackNode() const;
42 
43  void setTrayId(short);
44  void setChannel(short);
45  void setTdc(float);
46  void setTot(float);
47  void setTof(float);
48  void setTriggerTime(float);
49 
50  void setTrackNode(StHltTrackNode*);
51 
52 private:
53  short mTrayId;
54  short mChannel;
55  float mTdc;
56  float mTot;
57  float mTof;
58  float mTriggerTime;
59 
60 #ifdef __CINT__
61  StObjLink mTrackNode;
62 #else
63  StLink<StHltTrackNode> mTrackNode;
64 #endif //__CINT__
65 
66  ClassDef(StHltBTofHit,1)
67 };
68 
69 inline short StHltBTofHit::trayId() const {return mTrayId;}
70 inline short StHltBTofHit::channel() const {return mChannel;}
71 inline float StHltBTofHit::tdc() const {return mTdc;}
72 inline float StHltBTofHit::tot() const {return mTot;}
73 inline float StHltBTofHit::tof() const {return mTof;}
74 inline float StHltBTofHit::triggerTime() const {return mTriggerTime;}
75 inline short StHltBTofHit::module() const {return mChannel/6;}
76 inline short StHltBTofHit::cell() const {return mChannel%6;}
77 
78 inline StHltTrackNode* StHltBTofHit::trackNode() {return mTrackNode;}
79 inline const StHltTrackNode* StHltBTofHit::trackNode() const {return mTrackNode;}
80 
81 ostream& operator<<(ostream&, const StHltBTofHit&);
82 
83 #endif
84 
Definition: tof.h:15
short channel() const
module*6+cell
Definition: StHltBTofHit.h:70