CMS 3D CMS Logo

CocoaDaqRootEvent.h
Go to the documentation of this file.
1 #ifndef ALIGN_EVENT
2 #define ALIGN_EVENT
3 
5 // //
6 // //
7 // Description of the Alignment event classes for COCOA //
8 // //
10 
11 #include "TObject.h"
12 #include "TClonesArray.h"
13 #include "TString.h"
14 
15 //-----------------------------------------------------------------------------
16 
18 private:
19  Int_t fRunNum; // Run number
20  Int_t fEvtNum; // Event number
21  Int_t fTimeStamp; // Event time stamp
22 
23 public:
25  virtual ~AliDaqEventHeader() {}
26  Int_t GetRunNum() const { return fRunNum; }
27  Int_t GetEvtNum() const { return fEvtNum; }
28  Int_t GetTimeStamp() const { return fTimeStamp; }
29  void SetRunEvt(int run, int event) {
30  fRunNum = run;
31  fEvtNum = event;
32  }
33  void DumpIt();
34 
35  ClassDef(AliDaqEventHeader, 1)
36 };
37 
38 //-----------------------------------------------------------------------------
39 
40 class AliDaqPosition2D : public TObject {
41 private:
42  Float_t fX; // X position
43  Float_t fY; // Y position
44  Float_t fX_error; // uncertainty in X position
45  Float_t fY_error; // uncertainty in Y position
46  TString fID; // ID of sensor
47  Int_t fTimeStamp; // position time stamp
48 
49 public:
50  AliDaqPosition2D() : fX(0), fY(0), fX_error(0), fY_error(0), fID(""), fTimeStamp(0) {}
51  ~AliDaqPosition2D() override {}
52  Float_t GetX() const { return fX; }
53  Float_t GetY() const { return fY; }
54  Float_t GetXerror() const { return fX_error; }
55  Float_t GetYerror() const { return fY_error; }
56  TString GetID() { return fID; }
57  Int_t GetTimeStamp() const { return fTimeStamp; }
58  void DumpIt(const TString &Name);
59 
60  ClassDefOverride(AliDaqPosition2D, 1)
61 };
62 
63 //-----------------------------------------------------------------------------
64 
65 class AliDaqPositionCOPS : public TObject {
66 private:
67  Float_t fDCOPS_up; // up position
68  Float_t fDCOPS_down; // down position
69  Float_t fDCOPS_left; // left position
70  Float_t fDCOPS_right; // right position
71  Float_t fDCOPS_up_error; // up position uncertainty
72  Float_t fDCOPS_down_error; // down position uncertainty
73  Float_t fDCOPS_left_error; // left position uncertainty
74  Float_t fDCOPS_right_error; // right position uncertainty
75  TString fID; // ID of sensor
76  Int_t fTimeStamp; // position time stamp
77 
78 public:
80  : fDCOPS_up(0),
81  fDCOPS_down(0),
82  fDCOPS_left(0),
83  fDCOPS_right(0),
84  fDCOPS_up_error(0),
88  fID(""),
89  fTimeStamp(0) {}
90  ~AliDaqPositionCOPS() override {}
91  Float_t GetUp() const { return fDCOPS_up; }
92  Float_t GetDown() const { return fDCOPS_down; }
93  Float_t GetLeft() const { return fDCOPS_left; }
94  Float_t GetRight() const { return fDCOPS_right; }
95  Float_t GetUpError() const { return fDCOPS_up_error; }
96  Float_t GetDownError() const { return fDCOPS_down_error; }
97  Float_t GetLeftError() const { return fDCOPS_left_error; }
98  Float_t GetRightError() const { return fDCOPS_right_error; }
99  TString GetID() { return fID; }
100  Int_t GetTimeStamp() const { return fTimeStamp; }
101  void DumpIt(const TString &Name);
102 
103  ClassDefOverride(AliDaqPositionCOPS, 1)
104 };
105 
106 //-----------------------------------------------------------------------------
107 
108 class AliDaqTilt : public TObject {
109 private:
110  Float_t fTilt; // Tilt, or inclination
111  Float_t fTilt_error; // uncertainty in tilt
112  TString fID; // ID of sensor
113  Int_t fTimeStamp;
114 
115 public:
116  AliDaqTilt() : fTilt(0), fTilt_error(0), fID(""), fTimeStamp(0) {}
117  ~AliDaqTilt() override {}
118  Float_t GetTilt() const { return fTilt; }
119  Float_t GetTiltError() const { return fTilt_error; }
120  TString GetID() { return fID; }
121  Int_t GetTimeStamp() const { return fTimeStamp; }
122  void DumpIt(const TString &Name);
123 
124  ClassDefOverride(AliDaqTilt, 1)
125 };
126 
127 //-----------------------------------------------------------------------------
128 class AliDaqDistance : public TObject {
129 private:
130  Float_t fDistance;
132  TString fID; // ID of sensor
133  Int_t fTimeStamp;
134 
135 public:
137  ~AliDaqDistance() override {}
138  Float_t GetDistance() const { return fDistance; }
139  Float_t GetDistanceError() const { return fDistance_error; }
140  TString GetID() { return fID; }
141  Int_t GetTimeStamp() const { return fTimeStamp; }
142  void DumpIt(const TString &Name);
143 
144  ClassDefOverride(AliDaqDistance, 1)
145 };
146 
147 //-----------------------------------------------------------------------------
148 
149 class AliDaqTemperature : public TObject {
150 private:
151  Float_t fTemperature;
153  TString fID; // ID of sensor
154  Int_t fTimeStamp;
155 
156 public:
158  ~AliDaqTemperature() override {}
159  Float_t GetTemperature() const { return fTemperature; }
160  Float_t GetTemperatureError() const { return fTemperature_error; }
161  TString GetID() { return fID; }
162  Int_t GetTimeStamp() const { return fTimeStamp; }
163  void DumpIt(const TString &Name);
164 
165  ClassDefOverride(AliDaqTemperature, 1)
166 };
167 
168 //-----------------------------------------------------------------------------
169 class CocoaDaqRootEvent : public TObject {
170 private:
172  TClonesArray *Array_PositionCOPS;
173  TClonesArray *Array_Position2D;
174  TClonesArray *Array_Tilt;
175  TClonesArray *Array_Dist;
176  TClonesArray *Array_Temp;
178  int numPos2D;
179  int numTilt;
180  int numDist;
181  int numTemp;
182 
183 public:
184  AliDaqEventHeader *GetHeader() const { return Header; }
185  TClonesArray *GetArray_Position2D() const { return Array_Position2D; }
186  TClonesArray *GetArray_PositionCOPS() const { return Array_PositionCOPS; }
187  TClonesArray *GetArray_Tilt() const { return Array_Tilt; }
188  TClonesArray *GetArray_Dist() const { return Array_Dist; }
189  TClonesArray *GetArray_Temp() const { return Array_Temp; }
190  int GetNumPos2D() const { return numPos2D; }
191  int GetNumPosCOPS() const { return numPosCOPS; }
192  int GetNumTilt() const { return numTilt; }
193  int GetNumDist() const { return numDist; }
194  int GetNumTemp() const { return numTemp; }
195 
196 public:
198  ~CocoaDaqRootEvent() override{};
199  void SetHeader(int run, int evt) { Header->SetRunEvt(run, evt); }
200  void DumpIt();
201 
202  ClassDefOverride(CocoaDaqRootEvent, 1)
203 };
204 
205 #endif
CocoaDaqRootEvent::GetArray_Tilt
TClonesArray * GetArray_Tilt() const
Definition: CocoaDaqRootEvent.h:187
AliDaqEventHeader::DumpIt
void DumpIt()
Definition: CocoaDaqRootEvent.cc:68
AliDaqPositionCOPS::GetLeft
Float_t GetLeft() const
Definition: CocoaDaqRootEvent.h:93
AliDaqDistance::~AliDaqDistance
~AliDaqDistance() override
Definition: CocoaDaqRootEvent.h:137
AliDaqTilt::fTilt
Float_t fTilt
Definition: CocoaDaqRootEvent.h:110
AliDaqPosition2D::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:56
AliDaqTemperature
Definition: CocoaDaqRootEvent.h:149
AliDaqPositionCOPS::fID
TString fID
Definition: CocoaDaqRootEvent.h:75
Header
Definition: MsgHeader.h:6
SiStripClientConfig_Tier0_cff.Name
Name
Definition: SiStripClientConfig_Tier0_cff.py:12
AliDaqTemperature::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:161
AliDaqPositionCOPS::fDCOPS_right_error
Float_t fDCOPS_right_error
Definition: CocoaDaqRootEvent.h:74
AliDaqPositionCOPS::GetUpError
Float_t GetUpError() const
Definition: CocoaDaqRootEvent.h:95
AliDaqTilt::AliDaqTilt
AliDaqTilt()
Definition: CocoaDaqRootEvent.h:116
CocoaDaqRootEvent::GetNumPosCOPS
int GetNumPosCOPS() const
Definition: CocoaDaqRootEvent.h:191
AliDaqTemperature::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:143
CocoaDaqRootEvent::SetHeader
void SetHeader(int run, int evt)
Definition: CocoaDaqRootEvent.h:199
AliDaqTilt::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:115
AliDaqDistance::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:140
AliDaqTilt
Definition: CocoaDaqRootEvent.h:108
AliDaqEventHeader
Definition: CocoaDaqRootEvent.h:17
CocoaDaqRootEvent::Array_Temp
TClonesArray * Array_Temp
Definition: CocoaDaqRootEvent.h:176
CocoaDaqRootEvent::numPosCOPS
int numPosCOPS
Definition: CocoaDaqRootEvent.h:177
AliDaqPositionCOPS::fDCOPS_up_error
Float_t fDCOPS_up_error
Definition: CocoaDaqRootEvent.h:71
AliDaqTemperature::~AliDaqTemperature
~AliDaqTemperature() override
Definition: CocoaDaqRootEvent.h:158
AliDaqTilt::GetTimeStamp
Int_t GetTimeStamp() const
Definition: CocoaDaqRootEvent.h:121
AliDaqDistance::GetDistance
Float_t GetDistance() const
Definition: CocoaDaqRootEvent.h:138
AliDaqPosition2D::fID
TString fID
Definition: CocoaDaqRootEvent.h:46
AliDaqPositionCOPS::GetLeftError
Float_t GetLeftError() const
Definition: CocoaDaqRootEvent.h:97
AliDaqDistance::fID
TString fID
Definition: CocoaDaqRootEvent.h:132
AliDaqPositionCOPS
Definition: CocoaDaqRootEvent.h:65
AliDaqTilt::fID
TString fID
Definition: CocoaDaqRootEvent.h:112
CocoaDaqRootEvent::Header
AliDaqEventHeader * Header
Definition: CocoaDaqRootEvent.h:171
AliDaqDistance
Definition: CocoaDaqRootEvent.h:128
AliDaqDistance::fDistance
Float_t fDistance
Definition: CocoaDaqRootEvent.h:130
AliDaqPosition2D::GetXerror
Float_t GetXerror() const
Definition: CocoaDaqRootEvent.h:54
AliDaqPositionCOPS::~AliDaqPositionCOPS
~AliDaqPositionCOPS() override
Definition: CocoaDaqRootEvent.h:90
AliDaqPosition2D::~AliDaqPosition2D
~AliDaqPosition2D() override
Definition: CocoaDaqRootEvent.h:51
AliDaqPositionCOPS::fDCOPS_right
Float_t fDCOPS_right
Definition: CocoaDaqRootEvent.h:70
CocoaDaqRootEvent::numTemp
int numTemp
Definition: CocoaDaqRootEvent.h:181
AliDaqTilt::fTilt_error
Float_t fTilt_error
Definition: CocoaDaqRootEvent.h:111
AliDaqPositionCOPS::GetDownError
Float_t GetDownError() const
Definition: CocoaDaqRootEvent.h:96
CocoaDaqRootEvent::Array_Tilt
TClonesArray * Array_Tilt
Definition: CocoaDaqRootEvent.h:174
AliDaqPosition2D::GetTimeStamp
Int_t GetTimeStamp() const
Definition: CocoaDaqRootEvent.h:57
AliDaqPositionCOPS::fDCOPS_up
Float_t fDCOPS_up
Definition: CocoaDaqRootEvent.h:67
AliDaqPositionCOPS::GetDown
Float_t GetDown() const
Definition: CocoaDaqRootEvent.h:92
AliDaqPosition2D::GetX
Float_t GetX() const
Definition: CocoaDaqRootEvent.h:52
AliDaqPositionCOPS::AliDaqPositionCOPS
AliDaqPositionCOPS()
Definition: CocoaDaqRootEvent.h:79
CocoaDaqRootEvent::GetNumDist
int GetNumDist() const
Definition: CocoaDaqRootEvent.h:193
CocoaDaqRootEvent::GetArray_PositionCOPS
TClonesArray * GetArray_PositionCOPS() const
Definition: CocoaDaqRootEvent.h:186
AliDaqPositionCOPS::GetTimeStamp
Int_t GetTimeStamp() const
Definition: CocoaDaqRootEvent.h:100
AliDaqPosition2D::fX
Float_t fX
Definition: CocoaDaqRootEvent.h:42
AliDaqPositionCOPS::fDCOPS_down_error
Float_t fDCOPS_down_error
Definition: CocoaDaqRootEvent.h:72
AliDaqDistance::GetTimeStamp
Int_t GetTimeStamp() const
Definition: CocoaDaqRootEvent.h:141
edmPickEvents.event
event
Definition: edmPickEvents.py:273
AliDaqEventHeader::GetTimeStamp
Int_t GetTimeStamp() const
Definition: CocoaDaqRootEvent.h:28
AliDaqPositionCOPS::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:76
CocoaDaqRootEvent::GetArray_Dist
TClonesArray * GetArray_Dist() const
Definition: CocoaDaqRootEvent.h:188
CocoaDaqRootEvent::GetNumPos2D
int GetNumPos2D() const
Definition: CocoaDaqRootEvent.h:190
AliDaqTilt::GetTiltError
Float_t GetTiltError() const
Definition: CocoaDaqRootEvent.h:119
CocoaDaqRootEvent::GetNumTemp
int GetNumTemp() const
Definition: CocoaDaqRootEvent.h:194
AliDaqEventHeader::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:21
AliDaqEventHeader::AliDaqEventHeader
AliDaqEventHeader()
Definition: CocoaDaqRootEvent.h:24
AliDaqEventHeader::fEvtNum
Int_t fEvtNum
Definition: CocoaDaqRootEvent.h:20
CocoaDaqRootEvent::CocoaDaqRootEvent
CocoaDaqRootEvent()
Definition: CocoaDaqRootEvent.cc:24
AliDaqPositionCOPS::GetRightError
Float_t GetRightError() const
Definition: CocoaDaqRootEvent.h:98
AliDaqPositionCOPS::fDCOPS_down
Float_t fDCOPS_down
Definition: CocoaDaqRootEvent.h:68
AliDaqTemperature::GetTimeStamp
Int_t GetTimeStamp() const
Definition: CocoaDaqRootEvent.h:162
AliDaqDistance::GetDistanceError
Float_t GetDistanceError() const
Definition: CocoaDaqRootEvent.h:139
AliDaqDistance::fDistance_error
Float_t fDistance_error
Definition: CocoaDaqRootEvent.h:131
CocoaDaqRootEvent::Array_Position2D
TClonesArray * Array_Position2D
Definition: CocoaDaqRootEvent.h:173
AliDaqEventHeader::SetRunEvt
void SetRunEvt(int run, int event)
Definition: CocoaDaqRootEvent.h:29
AliDaqPosition2D
Definition: CocoaDaqRootEvent.h:40
AliDaqPositionCOPS::fDCOPS_left
Float_t fDCOPS_left
Definition: CocoaDaqRootEvent.h:69
CocoaDaqRootEvent::GetArray_Temp
TClonesArray * GetArray_Temp() const
Definition: CocoaDaqRootEvent.h:189
AliDaqPosition2D::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:79
CocoaDaqRootEvent
Definition: CocoaDaqRootEvent.h:169
AliDaqDistance::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:133
AliDaqTemperature::fTemperature_error
Float_t fTemperature_error
Definition: CocoaDaqRootEvent.h:152
AliDaqTilt::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:120
AliDaqDistance::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:129
CocoaDaqRootEvent::Array_PositionCOPS
TClonesArray * Array_PositionCOPS
Definition: CocoaDaqRootEvent.h:172
CocoaDaqRootEvent::numTilt
int numTilt
Definition: CocoaDaqRootEvent.h:179
writedatasetfile.run
run
Definition: writedatasetfile.py:27
AliDaqPositionCOPS::GetID
TString GetID()
Definition: CocoaDaqRootEvent.h:99
AliDaqTemperature::fID
TString fID
Definition: CocoaDaqRootEvent.h:153
AliDaqTemperature::GetTemperatureError
Float_t GetTemperatureError() const
Definition: CocoaDaqRootEvent.h:160
AliDaqDistance::AliDaqDistance
AliDaqDistance()
Definition: CocoaDaqRootEvent.h:136
AliDaqEventHeader::~AliDaqEventHeader
virtual ~AliDaqEventHeader()
Definition: CocoaDaqRootEvent.h:25
AliDaqPosition2D::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:47
CocoaDaqRootEvent::~CocoaDaqRootEvent
~CocoaDaqRootEvent() override
Definition: CocoaDaqRootEvent.h:198
AliDaqPositionCOPS::GetUp
Float_t GetUp() const
Definition: CocoaDaqRootEvent.h:91
AliDaqTilt::~AliDaqTilt
~AliDaqTilt() override
Definition: CocoaDaqRootEvent.h:117
AliDaqPosition2D::fY_error
Float_t fY_error
Definition: CocoaDaqRootEvent.h:45
AliDaqPosition2D::fX_error
Float_t fX_error
Definition: CocoaDaqRootEvent.h:44
AliDaqEventHeader::GetRunNum
Int_t GetRunNum() const
Definition: CocoaDaqRootEvent.h:26
AliDaqPosition2D::fY
Float_t fY
Definition: CocoaDaqRootEvent.h:43
CocoaDaqRootEvent::numPos2D
int numPos2D
Definition: CocoaDaqRootEvent.h:178
AliDaqPositionCOPS::GetRight
Float_t GetRight() const
Definition: CocoaDaqRootEvent.h:94
AliDaqPositionCOPS::DumpIt
void DumpIt(const TString &Name)
Definition: CocoaDaqRootEvent.cc:95
AliDaqPosition2D::GetY
Float_t GetY() const
Definition: CocoaDaqRootEvent.h:53
event
Definition: event.py:1
CocoaDaqRootEvent::DumpIt
void DumpIt()
Definition: CocoaDaqRootEvent.cc:41
AliDaqTemperature::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:154
AliDaqTemperature::AliDaqTemperature
AliDaqTemperature()
Definition: CocoaDaqRootEvent.h:157
AliDaqEventHeader::GetEvtNum
Int_t GetEvtNum() const
Definition: CocoaDaqRootEvent.h:27
AliDaqTemperature::GetTemperature
Float_t GetTemperature() const
Definition: CocoaDaqRootEvent.h:159
AliDaqTilt::fTimeStamp
Int_t fTimeStamp
Definition: CocoaDaqRootEvent.h:113
AliDaqEventHeader::fRunNum
Int_t fRunNum
Definition: CocoaDaqRootEvent.h:19
CocoaDaqRootEvent::GetHeader
AliDaqEventHeader * GetHeader() const
Definition: CocoaDaqRootEvent.h:184
AliDaqPosition2D::GetYerror
Float_t GetYerror() const
Definition: CocoaDaqRootEvent.h:55
AliDaqPositionCOPS::fDCOPS_left_error
Float_t fDCOPS_left_error
Definition: CocoaDaqRootEvent.h:73
CocoaDaqRootEvent::GetNumTilt
int GetNumTilt() const
Definition: CocoaDaqRootEvent.h:192
CocoaDaqRootEvent::numDist
int numDist
Definition: CocoaDaqRootEvent.h:180
AliDaqPosition2D::AliDaqPosition2D
AliDaqPosition2D()
Definition: CocoaDaqRootEvent.h:50
AliDaqTemperature::fTemperature
Float_t fTemperature
Definition: CocoaDaqRootEvent.h:151
CocoaDaqRootEvent::GetArray_Position2D
TClonesArray * GetArray_Position2D() const
Definition: CocoaDaqRootEvent.h:185
CocoaDaqRootEvent::Array_Dist
TClonesArray * Array_Dist
Definition: CocoaDaqRootEvent.h:175
AliDaqTilt::GetTilt
Float_t GetTilt() const
Definition: CocoaDaqRootEvent.h:118