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 
12 #include "TObject.h"
13 #include "TClonesArray.h"
14 #include "TString.h"
15 
16 //-----------------------------------------------------------------------------
17 
19 
20 private:
21  Int_t fRunNum; // Run number
22  Int_t fEvtNum; // Event number
23  Int_t fTimeStamp; // Event time stamp
24 
25 public:
26  AliDaqEventHeader() : fRunNum(0), fEvtNum(0), fTimeStamp(0) { }
27  virtual ~AliDaqEventHeader() { }
28  Int_t GetRunNum() const { return fRunNum; }
29  Int_t GetEvtNum() const { return fEvtNum; }
30  Int_t GetTimeStamp() const { return fTimeStamp; }
31  void SetRunEvt(int run, int event) {fRunNum=run; fEvtNum=event;}
32  void DumpIt();
33 
34  ClassDef(AliDaqEventHeader,1)
35 };
36 
37 //-----------------------------------------------------------------------------
38 
39 class AliDaqPosition2D : public TObject {
40 
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),
51  fID(""), fTimeStamp(0) { }
52  ~AliDaqPosition2D() override { }
53  Float_t GetX() const { return fX; }
54  Float_t GetY() const { return fY; }
55  Float_t GetXerror() const { return fX_error; }
56  Float_t GetYerror() const { return fY_error; }
57  TString GetID() { return fID; }
58  Int_t GetTimeStamp() const { return fTimeStamp; }
59  void DumpIt(const TString& Name);
60 
61  ClassDefOverride(AliDaqPosition2D,1)
62 };
63 
64 //-----------------------------------------------------------------------------
65 
66 class AliDaqPositionCOPS : public TObject {
67 
68 private:
69  Float_t fDCOPS_up; // up position
70  Float_t fDCOPS_down; // down position
71  Float_t fDCOPS_left; // left position
72  Float_t fDCOPS_right; // right position
73  Float_t fDCOPS_up_error; // up position uncertainty
74  Float_t fDCOPS_down_error; // down position uncertainty
75  Float_t fDCOPS_left_error; // left position uncertainty
76  Float_t fDCOPS_right_error; // right position uncertainty
77  TString fID; // ID of sensor
78  Int_t fTimeStamp; // position time stamp
79 
80 public:
81  AliDaqPositionCOPS() : fDCOPS_up(0), fDCOPS_down(0),
82  fDCOPS_left(0), fDCOPS_right(0),
83  fDCOPS_up_error(0), fDCOPS_down_error(0),
84  fDCOPS_left_error(0), fDCOPS_right_error(0),
85  fID(""), fTimeStamp(0) { }
86  ~AliDaqPositionCOPS() override { }
87  Float_t GetUp() const { return fDCOPS_up; }
88  Float_t GetDown() const { return fDCOPS_down; }
89  Float_t GetLeft() const { return fDCOPS_left; }
90  Float_t GetRight() const { return fDCOPS_right; }
91  Float_t GetUpError() const { return fDCOPS_up_error; }
92  Float_t GetDownError() const { return fDCOPS_down_error; }
93  Float_t GetLeftError() const { return fDCOPS_left_error; }
94  Float_t GetRightError() const { return fDCOPS_right_error; }
95  TString GetID() { return fID; }
96  Int_t GetTimeStamp() const { return fTimeStamp; }
97  void DumpIt(const TString& Name);
98 
99  ClassDefOverride(AliDaqPositionCOPS,1)
100 };
101 
102 //-----------------------------------------------------------------------------
103 
104 class AliDaqTilt : public TObject {
105 
106 private:
107  Float_t fTilt; // Tilt, or inclination
108  Float_t fTilt_error; // uncertainty in tilt
109  TString fID; // ID of sensor
110  Int_t fTimeStamp;
111 
112 public:
113  AliDaqTilt() : fTilt(0), fTilt_error(0), fID(""), fTimeStamp(0) { }
114  ~AliDaqTilt() override { }
115  Float_t GetTilt() const { return fTilt; }
116  Float_t GetTiltError() const { return fTilt_error; }
117  TString GetID() { return fID; }
118  Int_t GetTimeStamp() const { return fTimeStamp; }
119  void DumpIt(const TString& Name);
120 
121  ClassDefOverride(AliDaqTilt,1)
122 };
123 
124 //-----------------------------------------------------------------------------
125 class AliDaqDistance : public TObject {
126 
127 private:
128  Float_t fDistance;
130  TString fID; // ID of sensor
131  Int_t fTimeStamp;
132 
133 public:
134  AliDaqDistance() : fDistance(0), fDistance_error(0),
135  fID(""), fTimeStamp(0) { }
136  ~AliDaqDistance() override { }
137  Float_t GetDistance() const { return fDistance; }
138  Float_t GetDistanceError() const { return fDistance_error; }
139  TString GetID() { return fID; }
140  Int_t GetTimeStamp() const { return fTimeStamp; }
141  void DumpIt(const TString& Name);
142 
143  ClassDefOverride(AliDaqDistance,1)
144 };
145 
146 //-----------------------------------------------------------------------------
147 
148 class AliDaqTemperature : public TObject {
149 
150 private:
151  Float_t fTemperature;
153  TString fID; // ID of sensor
154  Int_t fTimeStamp;
155 
156 public:
157  AliDaqTemperature() : fTemperature(0), fTemperature_error(0),
158  fID(""), fTimeStamp(0) { }
159  ~AliDaqTemperature() override { }
160  Float_t GetTemperature() const { return fTemperature; }
161  Float_t GetTemperatureError() const { return fTemperature_error; }
162  TString GetID() { return fID; }
163  Int_t GetTimeStamp() const { return fTimeStamp; }
164  void DumpIt(const TString& Name);
165 
166  ClassDefOverride(AliDaqTemperature,1)
167 };
168 
169 //-----------------------------------------------------------------------------
170 class CocoaDaqRootEvent : public TObject {
171 
172 private:
174  TClonesArray *Array_PositionCOPS;
175  TClonesArray *Array_Position2D;
176  TClonesArray *Array_Tilt;
177  TClonesArray *Array_Dist;
178  TClonesArray *Array_Temp;
180  int numPos2D;
181  int numTilt;
182  int numDist;
183  int numTemp;
184 
185 public:
186  AliDaqEventHeader * GetHeader() const { return Header;}
187  TClonesArray * GetArray_Position2D() const { return Array_Position2D;}
188  TClonesArray * GetArray_PositionCOPS() const { return Array_PositionCOPS;}
189  TClonesArray * GetArray_Tilt() const { return Array_Tilt;}
190  TClonesArray * GetArray_Dist() const { return Array_Dist;}
191  TClonesArray * GetArray_Temp() const { return Array_Temp;}
192  int GetNumPos2D() const { return numPos2D;}
193  int GetNumPosCOPS() const { return numPosCOPS;}
194  int GetNumTilt() const { return numTilt;}
195  int GetNumDist() const { return numDist;}
196  int GetNumTemp() const { return numTemp;}
197 
198 public:
200  ~CocoaDaqRootEvent() override { };
201  void SetHeader(int run, int evt) {Header->SetRunEvt(run,evt); }
202  void DumpIt();
203 
204  ClassDefOverride(CocoaDaqRootEvent,1)
205 
206  };
207 
208 
209 #endif
TClonesArray * GetArray_Temp() const
Float_t GetX() const
Int_t GetTimeStamp() const
~CocoaDaqRootEvent() override
AliDaqEventHeader * Header
Float_t GetTilt() const
AliDaqEventHeader * GetHeader() const
TClonesArray * GetArray_Tilt() const
TClonesArray * Array_Dist
Float_t GetTemperature() const
TClonesArray * GetArray_PositionCOPS() const
Float_t GetUpError() const
TString GetID()
Int_t GetTimeStamp() const
~AliDaqTilt() override
TClonesArray * GetArray_Position2D() const
~AliDaqDistance() override
Float_t GetYerror() const
Int_t GetTimeStamp() const
~AliDaqTemperature() override
int GetNumTilt() const
TClonesArray * Array_Temp
Int_t GetTimeStamp() const
Float_t GetTemperatureError() const
Int_t GetRunNum() const
TClonesArray * Array_Position2D
Float_t GetDistanceError() const
~AliDaqPosition2D() override
Float_t GetLeft() const
Float_t GetRight() const
int GetNumPos2D() const
Float_t GetTiltError() const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
TClonesArray * GetArray_Dist() const
void SetRunEvt(int run, int event)
Float_t GetXerror() const
Float_t GetY() const
TClonesArray * Array_Tilt
Float_t GetLeftError() const
int GetNumDist() const
Float_t GetDistance() const
~AliDaqPositionCOPS() override
Int_t GetTimeStamp() const
int GetNumTemp() const
Float_t GetDownError() const
Int_t GetTimeStamp() const
virtual ~AliDaqEventHeader()
void SetHeader(int run, int evt)
Float_t GetDown() const
Int_t GetEvtNum() const
Float_t GetUp() const
Float_t fTilt_error
TClonesArray * Array_PositionCOPS
Float_t GetRightError() const
Definition: event.py:1
int GetNumPosCOPS() const