1 |
kusanagi |
1.1 |
/** @file |
2 |
kusanagi |
1.2 |
* $Author: kusanagi $ |
3 |
kusanagi |
4.4 |
* $Date: 2005/05/28 08:30:11 $ |
4 |
|
|
* $Revision: 4.2 $ |
5 |
kusanagi |
1.1 |
* |
6 |
|
|
* Header file for the algorithms used to read the techmodel data file. |
7 |
|
|
*/ |
8 |
|
|
|
9 |
|
|
#ifndef READER_ALGORITHM_H |
10 |
|
|
#define READER_ALGORITHM_H |
11 |
|
|
|
12 |
|
|
#include "TechmodelAlgorithm.h" |
13 |
|
|
#include "PscuEvent.h" |
14 |
|
|
|
15 |
|
|
|
16 |
kusanagi |
2.9 |
#include "endrun/PhysEndRunEvent.h" |
17 |
kusanagi |
1.7 |
#include "CalibCalPulse1Event.h" |
18 |
|
|
#include "CalibCalPulse2Event.h" |
19 |
|
|
#include "physics/TrackerReader.h" |
20 |
|
|
#include "physics/AnticounterReader.h" |
21 |
|
|
#include "physics/CalorimeterReader.h" |
22 |
|
|
#include "physics/NeutronDetectorReader.h" |
23 |
kusanagi |
2.3 |
#include "physics/S4Reader.h" |
24 |
kusanagi |
2.7 |
#include "physics/TofReader.h" |
25 |
|
|
#include "physics/TriggerReader.h" |
26 |
kusanagi |
1.2 |
#include "CalibTrk1Event.h" |
27 |
|
|
#include "CalibTrk2Event.h" |
28 |
kusanagi |
1.1 |
#include "CalibTofEvent.h" |
29 |
|
|
#include "CalibS4Event.h" |
30 |
kusanagi |
1.7 |
#include "CalibCalPedEvent.h" |
31 |
kusanagi |
2.4 |
#include "Calib1_Ac1Event.h" |
32 |
|
|
#include "Calib1_Ac2Event.h" |
33 |
|
|
#include "Calib2_Ac1Event.h" |
34 |
|
|
#include "Calib2_Ac2Event.h" |
35 |
kusanagi |
1.1 |
#include "RunHeaderEvent.h" |
36 |
|
|
#include "RunTrailerEvent.h" |
37 |
kusanagi |
1.7 |
#include "CalibHeaderEvent.h" |
38 |
|
|
#include "CalibTrailerEvent.h" |
39 |
|
|
#include "InitHeaderEvent.h" |
40 |
|
|
#include "InitTrailerEvent.h" |
41 |
|
|
#include "EventTrkEvent.h" |
42 |
|
|
#include "TestTrkEvent.h" |
43 |
kusanagi |
1.8 |
#include "TestTofEvent.h" |
44 |
kusanagi |
1.7 |
#include "log/LogEvent.h" |
45 |
|
|
#include "varDump/VarDumpEvent.h" |
46 |
|
|
#include "arrDump/ArrDumpEvent.h" |
47 |
|
|
#include "tabDump/TabDumpEvent.h" |
48 |
kusanagi |
2.9 |
#include "tsbt/TsbTEvent.h" |
49 |
|
|
#include "tsbb/TsbBEvent.h" |
50 |
kusanagi |
1.1 |
#include "tmtc/TmtcEvent.h" |
51 |
|
|
#include "mcmd/McmdEvent.h" |
52 |
kusanagi |
1.7 |
#include "ForcedFECmdEvent.h" |
53 |
kusanagi |
2.4 |
#include "Ac1InitEvent.h" |
54 |
kusanagi |
1.7 |
#include "CalInitEvent.h" |
55 |
|
|
#include "TrkInitEvent.h" |
56 |
|
|
#include "TofInitEvent.h" |
57 |
|
|
#include "TrgInitEvent.h" |
58 |
kusanagi |
2.1 |
#include "NdInitEvent.h" |
59 |
kusanagi |
2.3 |
#include "S4InitEvent.h" |
60 |
kusanagi |
2.4 |
#include "Ac2InitEvent.h" |
61 |
kusanagi |
1.8 |
#include "CalAlarmEvent.h" |
62 |
|
|
#include "AcAlarmEvent.h" |
63 |
|
|
#include "TrkAlarmEvent.h" |
64 |
|
|
#include "TrgAlarmEvent.h" |
65 |
|
|
#include "TofAlarmEvent.h" |
66 |
kusanagi |
2.3 |
#include "S4AlarmEvent.h" |
67 |
kusanagi |
1.7 |
|
68 |
kusanagi |
1.1 |
using namespace std; |
69 |
|
|
|
70 |
|
|
namespace pamela { |
71 |
|
|
namespace techmodel { |
72 |
kusanagi |
1.7 |
|
73 |
|
|
/********************************************** |
74 |
|
|
* Event reader algorithm for PhysEndRun events. |
75 |
|
|
**********************************************/ |
76 |
|
|
class PhysEndRunReader: public TechmodelAlgorithm { |
77 |
|
|
private: |
78 |
|
|
/** The PhysEndRun event that is created in the reader. */ |
79 |
|
|
PhysEndRunEvent* physEndRun; |
80 |
|
|
public: |
81 |
|
|
PhysEndRunReader(void); |
82 |
|
|
virtual void Init(PamelaRun *); |
83 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
84 |
kusanagi |
1.7 |
//this type of RUNEvent should be the future develop. |
85 |
|
|
//Pass the buffer not the pointer to file |
86 |
|
|
//virtual void RunEvent(int, long int, char[]); |
87 |
|
|
virtual std::string GetVersionInfo(void) const; |
88 |
|
|
}; |
89 |
|
|
|
90 |
|
|
|
91 |
|
|
/********************************************** |
92 |
|
|
* Event reader algorithm for CalibCalPulse1 events. |
93 |
|
|
**********************************************/ |
94 |
|
|
class CalibCalPulse1Reader: public TechmodelAlgorithm { |
95 |
|
|
private: |
96 |
|
|
/** The CalibCalPulse1 event that is created in the reader. */ |
97 |
|
|
CalibCalPulse1Event* calibCalPulse1; |
98 |
|
|
public: |
99 |
|
|
CalibCalPulse1Reader(void); |
100 |
|
|
virtual void Init(PamelaRun *); |
101 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
102 |
kusanagi |
1.7 |
//this type of RUNEvent should be the future develop. |
103 |
|
|
//Pass the buffer not the pointer to file |
104 |
|
|
//virtual void RunEvent(int, long int, char[]); |
105 |
|
|
virtual std::string GetVersionInfo(void) const; |
106 |
|
|
}; |
107 |
|
|
|
108 |
|
|
|
109 |
|
|
/********************************************** |
110 |
|
|
* Event reader algorithm for CalibCalPulse2 events. |
111 |
|
|
**********************************************/ |
112 |
|
|
class CalibCalPulse2Reader: public TechmodelAlgorithm { |
113 |
|
|
private: |
114 |
|
|
/** The CalibCalPulse2 event that is created in the reader. */ |
115 |
|
|
CalibCalPulse2Event* calibCalPulse2; |
116 |
|
|
public: |
117 |
|
|
CalibCalPulse2Reader(void); |
118 |
|
|
virtual void Init(PamelaRun *); |
119 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
120 |
kusanagi |
1.7 |
//this type of RUNEvent should be the future develop. |
121 |
|
|
//Pass the buffer not the pointer to file |
122 |
|
|
//virtual void RunEvent(int, long int, char[]); |
123 |
|
|
virtual std::string GetVersionInfo(void) const; |
124 |
|
|
}; |
125 |
|
|
|
126 |
|
|
|
127 |
|
|
/********************************************** |
128 |
|
|
* Event reader algorithm for physics events. |
129 |
|
|
**********************************************/ |
130 |
kusanagi |
1.1 |
class PhysicsReader: public TechmodelAlgorithm { |
131 |
|
|
private: |
132 |
|
|
/** The reader for tracker physics events. */ |
133 |
kusanagi |
1.5 |
tracker::TrackerReader* trackerReader; |
134 |
|
|
anticounter::AnticounterReader* anticounterReader; |
135 |
|
|
calorimeter::CalorimeterReader* calorimeterReader; |
136 |
kusanagi |
1.7 |
neutron::NeutronDetectorReader* neutronReader; |
137 |
kusanagi |
2.3 |
S4::S4Reader* s4Reader; |
138 |
kusanagi |
2.7 |
tof::TofReader* tofReader; |
139 |
|
|
trigger::TriggerReader* triggerReader; |
140 |
kusanagi |
1.1 |
public: |
141 |
|
|
PhysicsReader(void); |
142 |
|
|
virtual void Init(PamelaRun *); |
143 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
144 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
145 |
|
|
}; |
146 |
|
|
|
147 |
kusanagi |
1.7 |
|
148 |
|
|
/********************************************** |
149 |
|
|
* Event reader algorithm for CalibTrk1 events. |
150 |
|
|
**********************************************/ |
151 |
|
|
class CalibTrk1Reader: public TechmodelAlgorithm { |
152 |
|
|
private: |
153 |
|
|
/** The CalibTrk1 event that is created in the reader. */ |
154 |
|
|
CalibTrk1Event* calibTrk1; |
155 |
|
|
public: |
156 |
|
|
CalibTrk1Reader(void); |
157 |
|
|
virtual void Init(PamelaRun *); |
158 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
159 |
kusanagi |
1.7 |
//this type of RUNEvent should be the future develop. |
160 |
|
|
//Pass the buffer not the pointer to file |
161 |
|
|
//virtual void RunEvent(int, long int, char[]); |
162 |
|
|
virtual std::string GetVersionInfo(void) const; |
163 |
|
|
}; |
164 |
|
|
|
165 |
|
|
|
166 |
|
|
/********************************************** |
167 |
|
|
* Event reader algorithm for CalibTrk2 events. |
168 |
|
|
**********************************************/ |
169 |
|
|
class CalibTrk2Reader: public TechmodelAlgorithm { |
170 |
|
|
private: |
171 |
|
|
/** The CalibTrk2 event that is created in the reader. */ |
172 |
|
|
CalibTrk2Event* calibTrk2; |
173 |
|
|
public: |
174 |
|
|
CalibTrk2Reader(void); |
175 |
|
|
virtual void Init(PamelaRun *); |
176 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
177 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
178 |
|
|
}; |
179 |
|
|
|
180 |
|
|
|
181 |
|
|
/********************************************** |
182 |
|
|
* Event reader algorithm for CalibTof events. |
183 |
|
|
**********************************************/ |
184 |
|
|
class CalibTofReader: public TechmodelAlgorithm { |
185 |
|
|
private: |
186 |
|
|
/** The CalibTof event that is created in the reader. */ |
187 |
|
|
CalibTofEvent* CalibTof; |
188 |
|
|
public: |
189 |
|
|
CalibTofReader(void); |
190 |
|
|
virtual void Init(PamelaRun *); |
191 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
192 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
193 |
|
|
}; |
194 |
|
|
|
195 |
|
|
|
196 |
|
|
/********************************************** |
197 |
|
|
* Event reader algorithm for CalibS4 events. |
198 |
|
|
**********************************************/ |
199 |
|
|
class CalibS4Reader: public TechmodelAlgorithm { |
200 |
|
|
private: |
201 |
|
|
/** The CalibCal event that is created in the reader. */ |
202 |
kusanagi |
2.4 |
CalibS4Event* calibS4; |
203 |
kusanagi |
1.7 |
public: |
204 |
|
|
CalibS4Reader(void); |
205 |
|
|
virtual void Init(PamelaRun *); |
206 |
kusanagi |
2.8 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
207 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
208 |
|
|
}; |
209 |
|
|
|
210 |
|
|
|
211 |
|
|
/********************************************** |
212 |
|
|
* Event reader algorithm for CalibCalPed events. |
213 |
|
|
**********************************************/ |
214 |
|
|
class CalibCalPedReader: public TechmodelAlgorithm { |
215 |
|
|
private: |
216 |
|
|
/** The CalibCalPed event that is created in the reader. */ |
217 |
|
|
CalibCalPedEvent* calibCalPed; |
218 |
|
|
public: |
219 |
|
|
CalibCalPedReader(void); |
220 |
|
|
virtual void Init(PamelaRun *); |
221 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
222 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
223 |
|
|
}; |
224 |
|
|
|
225 |
|
|
|
226 |
|
|
/*********************************************** |
227 |
kusanagi |
2.4 |
* Event reader algorithm for Calib1_Ac1 events. |
228 |
kusanagi |
1.7 |
**********************************************/ |
229 |
kusanagi |
2.4 |
class Calib1_Ac1Reader: public TechmodelAlgorithm { |
230 |
kusanagi |
1.7 |
private: |
231 |
|
|
/** The CalibAc event that is created in the reader. */ |
232 |
kusanagi |
2.4 |
Calib1_Ac1Event* calib1_Ac1; |
233 |
kusanagi |
1.7 |
public: |
234 |
kusanagi |
2.4 |
Calib1_Ac1Reader(void); |
235 |
|
|
virtual void Init(PamelaRun *); |
236 |
|
|
virtual void RunEvent(int, long int) throw (Exception); |
237 |
|
|
virtual std::string GetVersionInfo(void) const; |
238 |
|
|
}; |
239 |
|
|
|
240 |
|
|
|
241 |
|
|
/*********************************************** |
242 |
|
|
* Event reader algorithm for Calib1_Ac2 events. |
243 |
|
|
**********************************************/ |
244 |
|
|
class Calib1_Ac2Reader: public TechmodelAlgorithm { |
245 |
|
|
private: |
246 |
|
|
/** The Calib1_Ac2 event that is created in the reader. */ |
247 |
|
|
Calib1_Ac2Event* calib1_Ac2; |
248 |
|
|
public: |
249 |
|
|
Calib1_Ac2Reader(void); |
250 |
|
|
virtual void Init(PamelaRun *); |
251 |
|
|
virtual void RunEvent(int, long int) throw (Exception); |
252 |
|
|
virtual std::string GetVersionInfo(void) const; |
253 |
|
|
}; |
254 |
|
|
|
255 |
|
|
/*********************************************** |
256 |
|
|
* Event reader algorithm for Calib2_Ac1 events. |
257 |
|
|
**********************************************/ |
258 |
|
|
class Calib2_Ac1Reader: public TechmodelAlgorithm { |
259 |
|
|
private: |
260 |
|
|
/** The Calib2_Ac1 event that is created in the reader. */ |
261 |
|
|
Calib2_Ac1Event* calib2_Ac1; |
262 |
|
|
public: |
263 |
|
|
Calib2_Ac1Reader(void); |
264 |
|
|
virtual void Init(PamelaRun *); |
265 |
|
|
virtual void RunEvent(int, long int) throw (Exception); |
266 |
|
|
virtual std::string GetVersionInfo(void) const; |
267 |
|
|
}; |
268 |
|
|
|
269 |
|
|
/*********************************************** |
270 |
|
|
* Event reader algorithm for Calib2_Ac2 events. |
271 |
|
|
**********************************************/ |
272 |
|
|
class Calib2_Ac2Reader: public TechmodelAlgorithm { |
273 |
|
|
private: |
274 |
|
|
/** The Calib2_Ac2 event that is created in the reader. */ |
275 |
|
|
Calib2_Ac2Event* calib2_Ac2; |
276 |
|
|
public: |
277 |
|
|
Calib2_Ac2Reader(void); |
278 |
kusanagi |
1.7 |
virtual void Init(PamelaRun *); |
279 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
280 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
281 |
|
|
}; |
282 |
|
|
|
283 |
|
|
|
284 |
|
|
/********************************************** |
285 |
|
|
* Event reader algorithm for RunHeader events. |
286 |
|
|
**********************************************/ |
287 |
|
|
class RunHeaderReader: public TechmodelAlgorithm { |
288 |
|
|
private: |
289 |
|
|
/** The RunHeader event that is created in the reader. */ |
290 |
|
|
RunHeaderEvent* RunHeader; |
291 |
|
|
public: |
292 |
|
|
RunHeaderReader(void); |
293 |
|
|
virtual void Init(PamelaRun *); |
294 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
295 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
296 |
|
|
}; |
297 |
|
|
|
298 |
|
|
|
299 |
|
|
/********************************************** |
300 |
|
|
* Event reader algorithm for RunTrailer events. |
301 |
|
|
**********************************************/ |
302 |
|
|
class RunTrailerReader: public TechmodelAlgorithm { |
303 |
kusanagi |
1.1 |
private: |
304 |
kusanagi |
1.7 |
/** The RunTrailer event that is created in the reader. */ |
305 |
|
|
RunTrailerEvent* RunTrailer; |
306 |
kusanagi |
1.1 |
public: |
307 |
kusanagi |
1.7 |
RunTrailerReader(void); |
308 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
309 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
310 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
311 |
kusanagi |
1.1 |
}; |
312 |
|
|
|
313 |
|
|
|
314 |
kusanagi |
1.7 |
/********************************************** |
315 |
|
|
* Event reader algorithm for CalibHeader events. |
316 |
|
|
**********************************************/ |
317 |
|
|
class CalibHeaderReader: public TechmodelAlgorithm { |
318 |
kusanagi |
1.1 |
private: |
319 |
kusanagi |
1.7 |
/** The CalibHeader event that is created in the reader. */ |
320 |
|
|
CalibHeaderEvent* calibHeader; |
321 |
kusanagi |
1.1 |
public: |
322 |
kusanagi |
1.7 |
CalibHeaderReader(void); |
323 |
|
|
virtual void Init(PamelaRun *); |
324 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
325 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
326 |
kusanagi |
1.1 |
}; |
327 |
|
|
|
328 |
|
|
|
329 |
kusanagi |
1.7 |
/********************************************** |
330 |
|
|
* Event reader algorithm for CalibTrailer events. |
331 |
|
|
**********************************************/ |
332 |
|
|
class CalibTrailerReader: public TechmodelAlgorithm { |
333 |
kusanagi |
1.1 |
private: |
334 |
kusanagi |
1.7 |
/** The CalibTrailer event that is created in the reader. */ |
335 |
|
|
CalibTrailerEvent* calibTrailer; |
336 |
kusanagi |
1.1 |
public: |
337 |
kusanagi |
1.7 |
CalibTrailerReader(void); |
338 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
339 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
340 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
341 |
|
|
}; |
342 |
|
|
|
343 |
kusanagi |
1.7 |
|
344 |
|
|
/********************************************** |
345 |
|
|
* Event reader algorithm for InitHeader events. |
346 |
|
|
**********************************************/ |
347 |
|
|
class InitHeaderReader: public TechmodelAlgorithm { |
348 |
kusanagi |
1.1 |
private: |
349 |
kusanagi |
1.7 |
/** The InitHeader event that is created in the reader. */ |
350 |
|
|
InitHeaderEvent* initHeader; |
351 |
kusanagi |
1.1 |
public: |
352 |
kusanagi |
1.7 |
InitHeaderReader(void); |
353 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
354 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
355 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
356 |
|
|
}; |
357 |
|
|
|
358 |
kusanagi |
1.7 |
|
359 |
|
|
/********************************************** |
360 |
|
|
* Event reader algorithm for InitTrailer events. |
361 |
|
|
**********************************************/ |
362 |
|
|
class InitTrailerReader: public TechmodelAlgorithm { |
363 |
kusanagi |
1.1 |
private: |
364 |
kusanagi |
1.7 |
/** The InitTrailer event that is created in the reader. */ |
365 |
|
|
InitTrailerEvent* initTrailer; |
366 |
kusanagi |
1.1 |
public: |
367 |
kusanagi |
1.7 |
InitTrailerReader(void); |
368 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
369 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
370 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
371 |
|
|
}; |
372 |
|
|
|
373 |
kusanagi |
1.7 |
|
374 |
|
|
/********************************************** |
375 |
|
|
* Event reader algorithm for EventTrk events. |
376 |
|
|
**********************************************/ |
377 |
|
|
class EventTrkReader: public TechmodelAlgorithm { |
378 |
kusanagi |
1.1 |
private: |
379 |
kusanagi |
1.7 |
/** The EventTrk event that is created in the reader. */ |
380 |
|
|
EventTrkEvent* eventTrk; |
381 |
kusanagi |
1.1 |
public: |
382 |
kusanagi |
1.7 |
EventTrkReader(void); |
383 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
384 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
385 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
386 |
|
|
}; |
387 |
|
|
|
388 |
kusanagi |
1.7 |
|
389 |
|
|
/********************************************** |
390 |
|
|
* Event reader algorithm for TestTrk events. |
391 |
|
|
**********************************************/ |
392 |
|
|
class TestTrkReader: public TechmodelAlgorithm { |
393 |
kusanagi |
1.1 |
private: |
394 |
kusanagi |
1.7 |
/** The TestTrk event that is created in the reader. */ |
395 |
|
|
TestTrkEvent* testTrk; |
396 |
kusanagi |
1.1 |
public: |
397 |
kusanagi |
1.7 |
TestTrkReader(void); |
398 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
399 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
400 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
401 |
|
|
}; |
402 |
|
|
|
403 |
kusanagi |
1.8 |
/********************************************** |
404 |
|
|
* Event reader algorithm for TestTof events. |
405 |
|
|
**********************************************/ |
406 |
|
|
class TestTofReader: public TechmodelAlgorithm { |
407 |
|
|
private: |
408 |
|
|
/** The TestTof event that is created in the reader. */ |
409 |
|
|
TestTofEvent* testTof; |
410 |
|
|
public: |
411 |
|
|
TestTofReader(void); |
412 |
|
|
virtual void Init(PamelaRun *); |
413 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (Exception); |
414 |
kusanagi |
1.8 |
virtual std::string GetVersionInfo(void) const; |
415 |
|
|
}; |
416 |
kusanagi |
1.7 |
|
417 |
|
|
/********************************************** |
418 |
|
|
* Event reader algorithm for Log events. |
419 |
|
|
**********************************************/ |
420 |
kusanagi |
1.1 |
class LogReader: public TechmodelAlgorithm { |
421 |
|
|
private: |
422 |
|
|
/** The Log event that is created in the reader. */ |
423 |
|
|
LogEvent* Log; |
424 |
|
|
public: |
425 |
|
|
LogReader(void); |
426 |
|
|
virtual void Init(PamelaRun *); |
427 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
428 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
429 |
|
|
}; |
430 |
|
|
|
431 |
kusanagi |
1.7 |
|
432 |
|
|
/*********************************************** |
433 |
|
|
* Event reader algorithm for VarDump events. |
434 |
|
|
**********************************************/ |
435 |
|
|
class VarDumpReader: public TechmodelAlgorithm { |
436 |
kusanagi |
1.1 |
private: |
437 |
kusanagi |
1.7 |
/** The VarDump event that is created in the reader. */ |
438 |
|
|
VarDumpEvent* VarDump; |
439 |
|
|
public: |
440 |
|
|
VarDumpReader(void); |
441 |
|
|
virtual void Init(PamelaRun *); |
442 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
443 |
kusanagi |
1.7 |
virtual std::string GetVersionInfo(void) const; |
444 |
|
|
}; |
445 |
|
|
|
446 |
|
|
|
447 |
|
|
/********************************************** |
448 |
|
|
* Event reader algorithm for ArrDump events. |
449 |
|
|
**********************************************/ |
450 |
|
|
class ArrDumpReader: public TechmodelAlgorithm { |
451 |
|
|
private: |
452 |
|
|
/** The ArrDump event that is created in the reader. */ |
453 |
|
|
ArrDumpEvent* ArrDump; |
454 |
kusanagi |
1.1 |
public: |
455 |
kusanagi |
1.7 |
ArrDumpReader(void); |
456 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
457 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
458 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
459 |
|
|
}; |
460 |
|
|
|
461 |
kusanagi |
1.7 |
|
462 |
|
|
/********************************************** |
463 |
|
|
* Event reader algorithm for TabDump events. |
464 |
|
|
**********************************************/ |
465 |
|
|
class TabDumpReader: public TechmodelAlgorithm { |
466 |
kusanagi |
1.3 |
private: |
467 |
kusanagi |
1.7 |
/** The TabDump event that is created in the reader. */ |
468 |
|
|
TabDumpEvent* TabDump; |
469 |
kusanagi |
1.3 |
public: |
470 |
kusanagi |
1.7 |
TabDumpReader(void); |
471 |
kusanagi |
1.3 |
virtual void Init(PamelaRun *); |
472 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
473 |
kusanagi |
1.3 |
virtual std::string GetVersionInfo(void) const; |
474 |
|
|
}; |
475 |
|
|
|
476 |
|
|
|
477 |
kusanagi |
1.7 |
/********************************************** |
478 |
|
|
* Event reader algorithm for TMTC events. |
479 |
|
|
**********************************************/ |
480 |
|
|
class TmtcReader: public TechmodelAlgorithm { |
481 |
|
|
//Length in bytes of the subPacket (that is te TmtcRecord excluded subCRC) |
482 |
kusanagi |
4.1 |
static const int TMTC_SUB_LENGTH = 44; |
483 |
kusanagi |
1.7 |
//Length in bytes of the subPacketCRC |
484 |
|
|
static const int TMTC_SUBCRC_LENGTH = 1; |
485 |
|
|
//Length in bytes of the PacketCRC |
486 |
|
|
static const int TMTC_CRC_LENGTH = 2; |
487 |
|
|
private: |
488 |
|
|
/** The TMTC event that is created in the reader. */ |
489 |
|
|
TmtcEvent* Tmtc; |
490 |
kusanagi |
2.5 |
//float convert_th(int); |
491 |
kusanagi |
1.7 |
public: |
492 |
|
|
TmtcReader(void); |
493 |
|
|
virtual void Init(PamelaRun *); |
494 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
495 |
kusanagi |
1.7 |
virtual string GetVersionInfo(void) const; |
496 |
|
|
}; |
497 |
|
|
|
498 |
|
|
|
499 |
|
|
/********************************************** |
500 |
|
|
* Event reader algorithm for Mcmd events. |
501 |
|
|
**********************************************/ |
502 |
|
|
class McmdReader: public TechmodelAlgorithm { |
503 |
kusanagi |
1.1 |
private: |
504 |
kusanagi |
1.7 |
/** The Mcmd event that is created in the reader. */ |
505 |
|
|
McmdEvent* Mcmd; |
506 |
kusanagi |
1.1 |
public: |
507 |
kusanagi |
1.7 |
McmdReader(void); |
508 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
509 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
510 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
511 |
|
|
}; |
512 |
|
|
|
513 |
kusanagi |
1.7 |
|
514 |
|
|
/********************************************** |
515 |
|
|
* Event reader algorithm for ForcedFECmd events. |
516 |
|
|
**********************************************/ |
517 |
|
|
class ForcedFECmdReader: public TechmodelAlgorithm { |
518 |
kusanagi |
1.1 |
private: |
519 |
kusanagi |
1.7 |
/** The ForcedFECmd event that is created in the reader. */ |
520 |
|
|
ForcedFECmdEvent* forcedFECmd; |
521 |
kusanagi |
1.1 |
public: |
522 |
kusanagi |
1.7 |
ForcedFECmdReader(void); |
523 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
524 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
525 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
526 |
|
|
}; |
527 |
|
|
|
528 |
kusanagi |
1.7 |
|
529 |
|
|
/********************************************** |
530 |
kusanagi |
2.4 |
* Event reader algorithm for Ac1Init events. |
531 |
kusanagi |
1.7 |
**********************************************/ |
532 |
kusanagi |
2.4 |
class Ac1InitReader: public TechmodelAlgorithm { |
533 |
kusanagi |
1.1 |
private: |
534 |
kusanagi |
2.4 |
/** The Ac1Init event that is created in the reader. */ |
535 |
|
|
Ac1InitEvent* ac1Init; |
536 |
kusanagi |
1.1 |
public: |
537 |
kusanagi |
2.4 |
Ac1InitReader(void); |
538 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
539 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
540 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
541 |
|
|
}; |
542 |
|
|
|
543 |
kusanagi |
1.7 |
|
544 |
|
|
/********************************************** |
545 |
|
|
* Event reader algorithm for CalInit events. |
546 |
|
|
**********************************************/ |
547 |
|
|
class CalInitReader: public TechmodelAlgorithm { |
548 |
kusanagi |
1.1 |
private: |
549 |
kusanagi |
1.7 |
/** The CalInit event that is created in the reader. */ |
550 |
|
|
CalInitEvent* calInit; |
551 |
kusanagi |
1.1 |
public: |
552 |
kusanagi |
1.7 |
CalInitReader(void); |
553 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
554 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
555 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
556 |
|
|
}; |
557 |
|
|
|
558 |
kusanagi |
1.7 |
|
559 |
|
|
/********************************************** |
560 |
|
|
* Event reader algorithm for TrkInit events. |
561 |
|
|
**********************************************/ |
562 |
|
|
class TrkInitReader: public TechmodelAlgorithm { |
563 |
kusanagi |
1.1 |
private: |
564 |
kusanagi |
1.7 |
/** The TrkInit event that is created in the reader. */ |
565 |
|
|
TrkInitEvent* trkInit; |
566 |
kusanagi |
1.1 |
public: |
567 |
kusanagi |
1.7 |
TrkInitReader(void); |
568 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
569 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
570 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
571 |
|
|
}; |
572 |
|
|
|
573 |
|
|
|
574 |
kusanagi |
1.7 |
/********************************************** |
575 |
|
|
* Event reader algorithm for TofInit events. |
576 |
|
|
**********************************************/ |
577 |
|
|
class TofInitReader: public TechmodelAlgorithm { |
578 |
kusanagi |
1.1 |
private: |
579 |
kusanagi |
1.7 |
/** The TofInit event that is created in the reader. */ |
580 |
|
|
TofInitEvent* tofInit; |
581 |
kusanagi |
1.1 |
public: |
582 |
kusanagi |
1.7 |
TofInitReader(void); |
583 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
584 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
585 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
586 |
|
|
}; |
587 |
|
|
|
588 |
kusanagi |
1.7 |
|
589 |
|
|
/********************************************** |
590 |
|
|
* Event reader algorithm for TrgInit events. |
591 |
|
|
**********************************************/ |
592 |
|
|
class TrgInitReader: public TechmodelAlgorithm { |
593 |
kusanagi |
1.1 |
private: |
594 |
kusanagi |
1.7 |
/** The TrgInit event that is created in the reader. */ |
595 |
|
|
TrgInitEvent* trgInit; |
596 |
kusanagi |
1.1 |
public: |
597 |
kusanagi |
1.7 |
TrgInitReader(void); |
598 |
kusanagi |
1.1 |
virtual void Init(PamelaRun *); |
599 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
600 |
kusanagi |
1.1 |
virtual std::string GetVersionInfo(void) const; |
601 |
|
|
}; |
602 |
|
|
|
603 |
kusanagi |
1.8 |
/********************************************** |
604 |
kusanagi |
2.1 |
* Event reader algorithm for NdInit events. |
605 |
|
|
**********************************************/ |
606 |
|
|
class NdInitReader: public TechmodelAlgorithm { |
607 |
|
|
private: |
608 |
|
|
/** The NdInit event that is created in the reader. */ |
609 |
|
|
NdInitEvent* ndInit; |
610 |
|
|
public: |
611 |
|
|
NdInitReader(void); |
612 |
|
|
virtual void Init(PamelaRun *); |
613 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
614 |
kusanagi |
2.1 |
virtual std::string GetVersionInfo(void) const; |
615 |
|
|
}; |
616 |
|
|
|
617 |
kusanagi |
2.3 |
/********************************************** |
618 |
|
|
* Event reader algorithm for S4Init events. |
619 |
|
|
**********************************************/ |
620 |
|
|
class S4InitReader: public TechmodelAlgorithm { |
621 |
|
|
private: |
622 |
|
|
/** The S4Init event that is created in the reader. */ |
623 |
|
|
S4InitEvent* s4Init; |
624 |
|
|
public: |
625 |
|
|
S4InitReader(void); |
626 |
|
|
virtual void Init(PamelaRun *); |
627 |
|
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
628 |
|
|
virtual std::string GetVersionInfo(void) const; |
629 |
|
|
}; |
630 |
|
|
|
631 |
kusanagi |
2.1 |
|
632 |
|
|
/********************************************** |
633 |
kusanagi |
2.4 |
* Event reader algorithm for Ac2Init events. |
634 |
|
|
**********************************************/ |
635 |
|
|
class Ac2InitReader: public TechmodelAlgorithm { |
636 |
|
|
private: |
637 |
|
|
/** The Ac2Init event that is created in the reader. */ |
638 |
|
|
Ac2InitEvent* ac2Init; |
639 |
|
|
public: |
640 |
|
|
Ac2InitReader(void); |
641 |
|
|
virtual void Init(PamelaRun *); |
642 |
|
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
643 |
|
|
virtual std::string GetVersionInfo(void) const; |
644 |
|
|
}; |
645 |
|
|
|
646 |
|
|
|
647 |
|
|
/********************************************** |
648 |
kusanagi |
1.8 |
* Event reader algorithm for CalAlarm events. |
649 |
|
|
**********************************************/ |
650 |
|
|
class CalAlarmReader: public TechmodelAlgorithm { |
651 |
|
|
private: |
652 |
|
|
/** The CalAlarm event that is created in the reader. */ |
653 |
|
|
CalAlarmEvent* calAlarm; |
654 |
|
|
public: |
655 |
|
|
CalAlarmReader(void); |
656 |
|
|
virtual void Init(PamelaRun *); |
657 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
658 |
kusanagi |
1.8 |
virtual std::string GetVersionInfo(void) const; |
659 |
|
|
}; |
660 |
|
|
|
661 |
|
|
/********************************************** |
662 |
|
|
* Event reader algorithm for AcAlarm events. |
663 |
|
|
**********************************************/ |
664 |
|
|
class AcAlarmReader: public TechmodelAlgorithm { |
665 |
|
|
private: |
666 |
|
|
/** The AcAlarm event that is created in the reader. */ |
667 |
|
|
AcAlarmEvent* acAlarm; |
668 |
|
|
public: |
669 |
|
|
AcAlarmReader(void); |
670 |
|
|
virtual void Init(PamelaRun *); |
671 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
672 |
kusanagi |
1.8 |
virtual std::string GetVersionInfo(void) const; |
673 |
|
|
}; |
674 |
|
|
|
675 |
|
|
/********************************************** |
676 |
|
|
* Event reader algorithm for TrkAlarm events. |
677 |
|
|
**********************************************/ |
678 |
|
|
class TrkAlarmReader: public TechmodelAlgorithm { |
679 |
|
|
private: |
680 |
|
|
/** The TrkAlarm event that is created in the reader. */ |
681 |
|
|
TrkAlarmEvent* trkAlarm; |
682 |
|
|
public: |
683 |
|
|
TrkAlarmReader(void); |
684 |
|
|
virtual void Init(PamelaRun *); |
685 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
686 |
kusanagi |
1.8 |
virtual std::string GetVersionInfo(void) const; |
687 |
|
|
}; |
688 |
|
|
|
689 |
|
|
/********************************************** |
690 |
|
|
* Event reader algorithm for TrgAlarm events. |
691 |
|
|
**********************************************/ |
692 |
|
|
class TrgAlarmReader: public TechmodelAlgorithm { |
693 |
|
|
private: |
694 |
|
|
/** The TrgAlarm event that is created in the reader. */ |
695 |
|
|
TrgAlarmEvent* trgAlarm; |
696 |
|
|
public: |
697 |
|
|
TrgAlarmReader(void); |
698 |
|
|
virtual void Init(PamelaRun *); |
699 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
700 |
kusanagi |
1.8 |
virtual std::string GetVersionInfo(void) const; |
701 |
|
|
}; |
702 |
|
|
|
703 |
|
|
/********************************************** |
704 |
|
|
* Event reader algorithm for TofAlarm events. |
705 |
|
|
**********************************************/ |
706 |
|
|
class TofAlarmReader: public TechmodelAlgorithm { |
707 |
|
|
private: |
708 |
|
|
/** The TofAlarm event that is created in the reader. */ |
709 |
|
|
TofAlarmEvent* tofAlarm; |
710 |
|
|
public: |
711 |
|
|
TofAlarmReader(void); |
712 |
|
|
virtual void Init(PamelaRun *); |
713 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
714 |
kusanagi |
1.8 |
virtual std::string GetVersionInfo(void) const; |
715 |
|
|
}; |
716 |
kusanagi |
1.1 |
|
717 |
kusanagi |
1.7 |
/********************************************** |
718 |
kusanagi |
2.3 |
* Event reader algorithm for S4Alarm events. |
719 |
|
|
**********************************************/ |
720 |
|
|
class S4AlarmReader: public TechmodelAlgorithm { |
721 |
|
|
private: |
722 |
|
|
/** The S4Alarm event that is created in the reader. */ |
723 |
|
|
S4AlarmEvent* s4Alarm; |
724 |
|
|
public: |
725 |
|
|
S4AlarmReader(void); |
726 |
|
|
virtual void Init(PamelaRun *); |
727 |
|
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
728 |
|
|
virtual std::string GetVersionInfo(void) const; |
729 |
|
|
}; |
730 |
|
|
|
731 |
|
|
/********************************************** |
732 |
kusanagi |
2.9 |
* Event reader algorithm for TsbT events. |
733 |
|
|
**********************************************/ |
734 |
|
|
class TsbTReader: public TechmodelAlgorithm { |
735 |
|
|
private: |
736 |
|
|
/** The TsbT event that is created in the reader. */ |
737 |
|
|
TsbTEvent* TsbT; |
738 |
|
|
public: |
739 |
|
|
TsbTReader(void); |
740 |
|
|
virtual void Init(PamelaRun *); |
741 |
|
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
742 |
|
|
virtual std::string GetVersionInfo(void) const; |
743 |
|
|
}; |
744 |
|
|
|
745 |
|
|
/********************************************** |
746 |
|
|
* Event reader algorithm for TsbB events. |
747 |
|
|
**********************************************/ |
748 |
|
|
class TsbBReader: public TechmodelAlgorithm { |
749 |
|
|
private: |
750 |
|
|
/** The TsbB event that is created in the reader. */ |
751 |
|
|
TsbBEvent* TsbB; |
752 |
|
|
public: |
753 |
|
|
TsbBReader(void); |
754 |
|
|
virtual void Init(PamelaRun *); |
755 |
|
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
756 |
|
|
virtual std::string GetVersionInfo(void) const; |
757 |
|
|
}; |
758 |
|
|
|
759 |
|
|
/********************************************** |
760 |
kusanagi |
1.7 |
* Event reader algorithm for PSCU events. |
761 |
|
|
**********************************************/ |
762 |
|
|
class PscuReader: public TechmodelAlgorithm { |
763 |
kusanagi |
1.4 |
private: |
764 |
kusanagi |
1.7 |
/** The PSCU event that is created in the reader. */ |
765 |
|
|
PscuEvent* Pscu; |
766 |
kusanagi |
1.4 |
public: |
767 |
kusanagi |
1.7 |
PscuReader(void); |
768 |
kusanagi |
1.4 |
virtual void Init(PamelaRun *); |
769 |
kusanagi |
2.2 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
770 |
kusanagi |
1.4 |
virtual std::string GetVersionInfo(void) const; |
771 |
|
|
}; |
772 |
kusanagi |
1.7 |
|
773 |
|
|
|
774 |
kusanagi |
1.1 |
} |
775 |
|
|
} |
776 |
|
|
|
777 |
|
|
#endif /* READER_ALGORITHM_H */ |
778 |
|
|
|
779 |
|
|
|
780 |
kusanagi |
2.3 |
|
781 |
kusanagi |
2.4 |
|