StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofRawData.h
1 
5 /***************************************************************************
6  *
7  * $Id: StTofRawData.h,v 2.3 2008/02/26 20:01:58 ullrich Exp $
8  *
9  * Author: Xin Dong, Feb 2005
10  ***************************************************************************
11  *
12  * Description: TOF raw hits (from Run 5)
13  *
14  ***************************************************************************
15  *
16  * $Log: StTofRawData.h,v $
17  * Revision 2.3 2008/02/26 20:01:58 ullrich
18  * Added new member mTriggerrime and related methods.
19  *
20  * Revision 2.2 2007/11/21 00:28:32 ullrich
21  * Added new data member mTray plus access functions. New overloaded constructor.
22  *
23  * Revision 2.1 2005/04/11 22:35:25 calderon
24  * Tof Classes for Run 5. Modifications and additions from Xin to
25  * take care of new TOF daq and electronics. Added StTofRawData and
26  * modified containers and includes.
27  *
28  *
29  **************************************************************************/
30 #ifndef StTofRawData_hh
31 #define StTofRawData_hh
32 
33 #include "StObject.h"
34 
35 class StTofRawData : public StObject {
36 public:
37  StTofRawData();
38 
39  StTofRawData(unsigned short, unsigned short, unsigned int, unsigned short);
40  StTofRawData(unsigned short, unsigned short, unsigned short, unsigned int, unsigned short);
41  StTofRawData(unsigned short, unsigned short, unsigned short, unsigned int, unsigned int, unsigned short);
42  ~StTofRawData();
43 
44  int operator==(const StTofRawData&) const;
45  int operator!=(const StTofRawData&) const;
46 
47  unsigned short leteFlag() const; // 1 - leading; 2 - trailing
48  unsigned short tray() const;
49  unsigned short channel() const;
50  unsigned int tdc() const;
51  unsigned int triggertime() const;
52  unsigned short quality() const;
53 
54  void setLeTeFlag(unsigned short);
55  void setTray(unsigned short);
56  void setChannel(unsigned short);
57  void setTdc(unsigned int);
58  void setTriggertime(unsigned int);
59  void setQuality(unsigned short);
60 
61 protected:
62  UShort_t mLeTeFlag;
63  UShort_t mTray;
64  UShort_t mChannel;
65  UInt_t mTdc;
66  UInt_t mTriggertime;
67  UShort_t mQuality;
68 
69  ClassDef(StTofRawData,3)
70 };
71 
72 inline void
73 StTofRawData::setLeTeFlag(unsigned short iflag)
74 {
75  mLeTeFlag = iflag;
76 }
77 
78 inline void
79 StTofRawData::setTray(unsigned short itray)
80 {
81  mTray = itray;
82 }
83 
84 inline void
85 StTofRawData::setChannel(unsigned short ichannel)
86 {
87  mChannel = ichannel;
88 }
89 
90 inline void
91 StTofRawData::setTdc(unsigned int rawTdc)
92 {
93  mTdc = rawTdc;
94 }
95 
96 inline void
97 StTofRawData::setTriggertime(unsigned int rawtriggertime)
98 {
99  mTriggertime = rawtriggertime;
100 }
101 
102 inline void
103 StTofRawData::setQuality(unsigned short quality)
104 {
105  mQuality = quality;
106 }
107 
108 inline unsigned short
109 StTofRawData::leteFlag() const
110 {
111  return mLeTeFlag;
112 }
113 
114 inline unsigned short
115 StTofRawData::tray() const
116 {
117  return mTray;
118 }
119 
120 inline unsigned short
121 StTofRawData::channel() const
122 {
123  return mChannel;
124 }
125 
126 inline unsigned int
127 StTofRawData::tdc() const
128 {
129  return mTdc;
130 }
131 
132 inline unsigned int
133 StTofRawData::triggertime() const
134 {
135  return mTriggertime;
136 }
137 
138 inline unsigned short
139 StTofRawData::quality() const
140 {
141  return mQuality;
142 }
143 
144 #endif