1 |
/** @file |
/** @file |
2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
3 |
* $Date: 2004/09/21 20:24:33 $ |
* $Date: 2005/03/06 04:33:02 $ |
4 |
* $Revision: 1.8 $ |
* $Revision: 4.0 $ |
5 |
* |
* |
6 |
* Header file for the algorithms used to read the techmodel data file. |
* Header file for the algorithms used to read the techmodel data file. |
7 |
*/ |
*/ |
13 |
#include "PscuEvent.h" |
#include "PscuEvent.h" |
14 |
|
|
15 |
|
|
16 |
#include "PhysEndRunEvent.h" |
#include "endrun/PhysEndRunEvent.h" |
17 |
#include "CalibCalPulse1Event.h" |
#include "CalibCalPulse1Event.h" |
18 |
#include "CalibCalPulse2Event.h" |
#include "CalibCalPulse2Event.h" |
19 |
#include "physics/TrackerReader.h" |
#include "physics/TrackerReader.h" |
20 |
#include "physics/AnticounterReader.h" |
#include "physics/AnticounterReader.h" |
21 |
#include "physics/CalorimeterReader.h" |
#include "physics/CalorimeterReader.h" |
22 |
#include "physics/NeutronDetectorReader.h" |
#include "physics/NeutronDetectorReader.h" |
23 |
|
#include "physics/S4Reader.h" |
24 |
|
#include "physics/TofReader.h" |
25 |
|
#include "physics/TriggerReader.h" |
26 |
#include "CalibTrkBothEvent.h" |
#include "CalibTrkBothEvent.h" |
27 |
#include "CalibTrk1Event.h" |
#include "CalibTrk1Event.h" |
28 |
#include "CalibTrk2Event.h" |
#include "CalibTrk2Event.h" |
30 |
#include "CalibTofEvent.h" |
#include "CalibTofEvent.h" |
31 |
#include "CalibS4Event.h" |
#include "CalibS4Event.h" |
32 |
#include "CalibCalPedEvent.h" |
#include "CalibCalPedEvent.h" |
33 |
#include "CalibAcEvent.h" |
#include "Calib1_Ac1Event.h" |
34 |
|
#include "Calib1_Ac2Event.h" |
35 |
|
#include "Calib2_Ac1Event.h" |
36 |
|
#include "Calib2_Ac2Event.h" |
37 |
#include "RunHeaderEvent.h" |
#include "RunHeaderEvent.h" |
38 |
#include "RunTrailerEvent.h" |
#include "RunTrailerEvent.h" |
39 |
#include "CalibHeaderEvent.h" |
#include "CalibHeaderEvent.h" |
47 |
#include "varDump/VarDumpEvent.h" |
#include "varDump/VarDumpEvent.h" |
48 |
#include "arrDump/ArrDumpEvent.h" |
#include "arrDump/ArrDumpEvent.h" |
49 |
#include "tabDump/TabDumpEvent.h" |
#include "tabDump/TabDumpEvent.h" |
50 |
|
#include "tsbt/TsbTEvent.h" |
51 |
|
#include "tsbb/TsbBEvent.h" |
52 |
#include "tmtc/TmtcEvent.h" |
#include "tmtc/TmtcEvent.h" |
53 |
#include "mcmd/McmdEvent.h" |
#include "mcmd/McmdEvent.h" |
54 |
#include "ForcedFECmdEvent.h" |
#include "ForcedFECmdEvent.h" |
55 |
#include "AcInitEvent.h" |
#include "Ac1InitEvent.h" |
56 |
#include "CalInitEvent.h" |
#include "CalInitEvent.h" |
57 |
#include "TrkInitEvent.h" |
#include "TrkInitEvent.h" |
58 |
#include "TofInitEvent.h" |
#include "TofInitEvent.h" |
59 |
#include "TrgInitEvent.h" |
#include "TrgInitEvent.h" |
60 |
|
#include "NdInitEvent.h" |
61 |
|
#include "S4InitEvent.h" |
62 |
|
#include "Ac2InitEvent.h" |
63 |
#include "CalAlarmEvent.h" |
#include "CalAlarmEvent.h" |
64 |
#include "AcAlarmEvent.h" |
#include "AcAlarmEvent.h" |
65 |
#include "TrkAlarmEvent.h" |
#include "TrkAlarmEvent.h" |
66 |
#include "TrgAlarmEvent.h" |
#include "TrgAlarmEvent.h" |
67 |
#include "TofAlarmEvent.h" |
#include "TofAlarmEvent.h" |
68 |
|
#include "S4AlarmEvent.h" |
|
|
|
|
|
|
|
#define UINT32 unsigned int |
|
|
#define UINT16 unsigned short |
|
|
#define BYTE unsigned char |
|
69 |
|
|
70 |
using namespace std; |
using namespace std; |
71 |
|
|
82 |
public: |
public: |
83 |
PhysEndRunReader(void); |
PhysEndRunReader(void); |
84 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
85 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
86 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
87 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
88 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
100 |
public: |
public: |
101 |
CalibCalPulse1Reader(void); |
CalibCalPulse1Reader(void); |
102 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
103 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
104 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
105 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
106 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
118 |
public: |
public: |
119 |
CalibCalPulse2Reader(void); |
CalibCalPulse2Reader(void); |
120 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
121 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
122 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
123 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
124 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
136 |
anticounter::AnticounterReader* anticounterReader; |
anticounter::AnticounterReader* anticounterReader; |
137 |
calorimeter::CalorimeterReader* calorimeterReader; |
calorimeter::CalorimeterReader* calorimeterReader; |
138 |
neutron::NeutronDetectorReader* neutronReader; |
neutron::NeutronDetectorReader* neutronReader; |
139 |
|
S4::S4Reader* s4Reader; |
140 |
|
tof::TofReader* tofReader; |
141 |
|
trigger::TriggerReader* triggerReader; |
142 |
public: |
public: |
143 |
PhysicsReader(void); |
PhysicsReader(void); |
144 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
145 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
146 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
147 |
}; |
}; |
148 |
|
|
157 |
public: |
public: |
158 |
CalibTrkBothReader(void); |
CalibTrkBothReader(void); |
159 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
160 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
161 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
162 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
163 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
175 |
public: |
public: |
176 |
CalibTrk1Reader(void); |
CalibTrk1Reader(void); |
177 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
178 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
179 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
180 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
181 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
193 |
public: |
public: |
194 |
CalibTrk2Reader(void); |
CalibTrk2Reader(void); |
195 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
196 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
197 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
198 |
}; |
}; |
199 |
|
|
208 |
public: |
public: |
209 |
CalibTrdReader(void); |
CalibTrdReader(void); |
210 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
211 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
212 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
213 |
}; |
}; |
214 |
|
|
223 |
public: |
public: |
224 |
CalibTofReader(void); |
CalibTofReader(void); |
225 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
226 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
227 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
228 |
}; |
}; |
229 |
|
|
234 |
class CalibS4Reader: public TechmodelAlgorithm { |
class CalibS4Reader: public TechmodelAlgorithm { |
235 |
private: |
private: |
236 |
/** The CalibCal event that is created in the reader. */ |
/** The CalibCal event that is created in the reader. */ |
237 |
CalibS4Event* CalibS4; |
CalibS4Event* calibS4; |
238 |
public: |
public: |
239 |
CalibS4Reader(void); |
CalibS4Reader(void); |
240 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
241 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
242 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
243 |
}; |
}; |
244 |
|
|
253 |
public: |
public: |
254 |
CalibCalPedReader(void); |
CalibCalPedReader(void); |
255 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
256 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
257 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
258 |
}; |
}; |
259 |
|
|
260 |
|
|
261 |
/*********************************************** |
/*********************************************** |
262 |
* Event reader algorithm for CalibAc events. |
* Event reader algorithm for Calib1_Ac1 events. |
263 |
**********************************************/ |
**********************************************/ |
264 |
class CalibAcReader: public TechmodelAlgorithm { |
class Calib1_Ac1Reader: public TechmodelAlgorithm { |
265 |
private: |
private: |
266 |
/** The CalibAc event that is created in the reader. */ |
/** The CalibAc event that is created in the reader. */ |
267 |
CalibAcEvent* CalibAc; |
Calib1_Ac1Event* calib1_Ac1; |
268 |
|
public: |
269 |
|
Calib1_Ac1Reader(void); |
270 |
|
virtual void Init(PamelaRun *); |
271 |
|
virtual void RunEvent(int, long int) throw (Exception); |
272 |
|
virtual std::string GetVersionInfo(void) const; |
273 |
|
}; |
274 |
|
|
275 |
|
|
276 |
|
/*********************************************** |
277 |
|
* Event reader algorithm for Calib1_Ac2 events. |
278 |
|
**********************************************/ |
279 |
|
class Calib1_Ac2Reader: public TechmodelAlgorithm { |
280 |
|
private: |
281 |
|
/** The Calib1_Ac2 event that is created in the reader. */ |
282 |
|
Calib1_Ac2Event* calib1_Ac2; |
283 |
|
public: |
284 |
|
Calib1_Ac2Reader(void); |
285 |
|
virtual void Init(PamelaRun *); |
286 |
|
virtual void RunEvent(int, long int) throw (Exception); |
287 |
|
virtual std::string GetVersionInfo(void) const; |
288 |
|
}; |
289 |
|
|
290 |
|
/*********************************************** |
291 |
|
* Event reader algorithm for Calib2_Ac1 events. |
292 |
|
**********************************************/ |
293 |
|
class Calib2_Ac1Reader: public TechmodelAlgorithm { |
294 |
|
private: |
295 |
|
/** The Calib2_Ac1 event that is created in the reader. */ |
296 |
|
Calib2_Ac1Event* calib2_Ac1; |
297 |
public: |
public: |
298 |
CalibAcReader(void); |
Calib2_Ac1Reader(void); |
299 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
300 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
301 |
|
virtual std::string GetVersionInfo(void) const; |
302 |
|
}; |
303 |
|
|
304 |
|
/*********************************************** |
305 |
|
* Event reader algorithm for Calib2_Ac2 events. |
306 |
|
**********************************************/ |
307 |
|
class Calib2_Ac2Reader: public TechmodelAlgorithm { |
308 |
|
private: |
309 |
|
/** The Calib2_Ac2 event that is created in the reader. */ |
310 |
|
Calib2_Ac2Event* calib2_Ac2; |
311 |
|
public: |
312 |
|
Calib2_Ac2Reader(void); |
313 |
|
virtual void Init(PamelaRun *); |
314 |
|
virtual void RunEvent(int, long int) throw (Exception); |
315 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
316 |
}; |
}; |
317 |
|
|
326 |
public: |
public: |
327 |
RunHeaderReader(void); |
RunHeaderReader(void); |
328 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
329 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
330 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
331 |
}; |
}; |
332 |
|
|
341 |
public: |
public: |
342 |
RunTrailerReader(void); |
RunTrailerReader(void); |
343 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
344 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
345 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
346 |
}; |
}; |
347 |
|
|
356 |
public: |
public: |
357 |
CalibHeaderReader(void); |
CalibHeaderReader(void); |
358 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
359 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
360 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
361 |
}; |
}; |
362 |
|
|
371 |
public: |
public: |
372 |
CalibTrailerReader(void); |
CalibTrailerReader(void); |
373 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
374 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
375 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
376 |
}; |
}; |
377 |
|
|
386 |
public: |
public: |
387 |
InitHeaderReader(void); |
InitHeaderReader(void); |
388 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
389 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
390 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
391 |
}; |
}; |
392 |
|
|
401 |
public: |
public: |
402 |
InitTrailerReader(void); |
InitTrailerReader(void); |
403 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
404 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
405 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
406 |
}; |
}; |
407 |
|
|
416 |
public: |
public: |
417 |
EventTrkReader(void); |
EventTrkReader(void); |
418 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
419 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
420 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
421 |
}; |
}; |
422 |
|
|
431 |
public: |
public: |
432 |
TestTrkReader(void); |
TestTrkReader(void); |
433 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
434 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
435 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
436 |
}; |
}; |
437 |
|
|
445 |
public: |
public: |
446 |
TestTofReader(void); |
TestTofReader(void); |
447 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
448 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
449 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
450 |
}; |
}; |
451 |
|
|
459 |
public: |
public: |
460 |
LogReader(void); |
LogReader(void); |
461 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
462 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
463 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
464 |
}; |
}; |
465 |
|
|
474 |
public: |
public: |
475 |
VarDumpReader(void); |
VarDumpReader(void); |
476 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
477 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
478 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
479 |
}; |
}; |
480 |
|
|
489 |
public: |
public: |
490 |
ArrDumpReader(void); |
ArrDumpReader(void); |
491 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
492 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
493 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
494 |
}; |
}; |
495 |
|
|
504 |
public: |
public: |
505 |
TabDumpReader(void); |
TabDumpReader(void); |
506 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
507 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
508 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
509 |
}; |
}; |
510 |
|
|
514 |
**********************************************/ |
**********************************************/ |
515 |
class TmtcReader: public TechmodelAlgorithm { |
class TmtcReader: public TechmodelAlgorithm { |
516 |
//Length in bytes of the subPacket (that is te TmtcRecord excluded subCRC) |
//Length in bytes of the subPacket (that is te TmtcRecord excluded subCRC) |
517 |
static const int TMTC_SUB_LENGTH = 57; |
static const int TMTC_SUB_LENGTH = 44; |
518 |
//Length in bytes of the subPacketCRC |
//Length in bytes of the subPacketCRC |
519 |
static const int TMTC_SUBCRC_LENGTH = 1; |
static const int TMTC_SUBCRC_LENGTH = 1; |
520 |
//Length in bytes of the PacketCRC |
//Length in bytes of the PacketCRC |
522 |
private: |
private: |
523 |
/** The TMTC event that is created in the reader. */ |
/** The TMTC event that is created in the reader. */ |
524 |
TmtcEvent* Tmtc; |
TmtcEvent* Tmtc; |
525 |
float convert_th(int); |
//float convert_th(int); |
526 |
public: |
public: |
527 |
TmtcReader(void); |
TmtcReader(void); |
528 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
529 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
530 |
virtual string GetVersionInfo(void) const; |
virtual string GetVersionInfo(void) const; |
531 |
}; |
}; |
532 |
|
|
541 |
public: |
public: |
542 |
McmdReader(void); |
McmdReader(void); |
543 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
544 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
545 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
546 |
}; |
}; |
547 |
|
|
556 |
public: |
public: |
557 |
ForcedFECmdReader(void); |
ForcedFECmdReader(void); |
558 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
559 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
560 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
561 |
}; |
}; |
562 |
|
|
563 |
|
|
564 |
/********************************************** |
/********************************************** |
565 |
* Event reader algorithm for AcInit events. |
* Event reader algorithm for Ac1Init events. |
566 |
**********************************************/ |
**********************************************/ |
567 |
class AcInitReader: public TechmodelAlgorithm { |
class Ac1InitReader: public TechmodelAlgorithm { |
568 |
private: |
private: |
569 |
/** The AcInit event that is created in the reader. */ |
/** The Ac1Init event that is created in the reader. */ |
570 |
AcInitEvent* acInit; |
Ac1InitEvent* ac1Init; |
571 |
public: |
public: |
572 |
AcInitReader(void); |
Ac1InitReader(void); |
573 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
574 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
575 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
576 |
}; |
}; |
577 |
|
|
586 |
public: |
public: |
587 |
CalInitReader(void); |
CalInitReader(void); |
588 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
589 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
590 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
591 |
}; |
}; |
592 |
|
|
601 |
public: |
public: |
602 |
TrkInitReader(void); |
TrkInitReader(void); |
603 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
604 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
605 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
606 |
}; |
}; |
607 |
|
|
616 |
public: |
public: |
617 |
TofInitReader(void); |
TofInitReader(void); |
618 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
619 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
620 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
621 |
}; |
}; |
622 |
|
|
631 |
public: |
public: |
632 |
TrgInitReader(void); |
TrgInitReader(void); |
633 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
634 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
635 |
|
virtual std::string GetVersionInfo(void) const; |
636 |
|
}; |
637 |
|
|
638 |
|
/********************************************** |
639 |
|
* Event reader algorithm for NdInit events. |
640 |
|
**********************************************/ |
641 |
|
class NdInitReader: public TechmodelAlgorithm { |
642 |
|
private: |
643 |
|
/** The NdInit event that is created in the reader. */ |
644 |
|
NdInitEvent* ndInit; |
645 |
|
public: |
646 |
|
NdInitReader(void); |
647 |
|
virtual void Init(PamelaRun *); |
648 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
649 |
|
virtual std::string GetVersionInfo(void) const; |
650 |
|
}; |
651 |
|
|
652 |
|
/********************************************** |
653 |
|
* Event reader algorithm for S4Init events. |
654 |
|
**********************************************/ |
655 |
|
class S4InitReader: public TechmodelAlgorithm { |
656 |
|
private: |
657 |
|
/** The S4Init event that is created in the reader. */ |
658 |
|
S4InitEvent* s4Init; |
659 |
|
public: |
660 |
|
S4InitReader(void); |
661 |
|
virtual void Init(PamelaRun *); |
662 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
663 |
|
virtual std::string GetVersionInfo(void) const; |
664 |
|
}; |
665 |
|
|
666 |
|
|
667 |
|
/********************************************** |
668 |
|
* Event reader algorithm for Ac2Init events. |
669 |
|
**********************************************/ |
670 |
|
class Ac2InitReader: public TechmodelAlgorithm { |
671 |
|
private: |
672 |
|
/** The Ac2Init event that is created in the reader. */ |
673 |
|
Ac2InitEvent* ac2Init; |
674 |
|
public: |
675 |
|
Ac2InitReader(void); |
676 |
|
virtual void Init(PamelaRun *); |
677 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
678 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
679 |
}; |
}; |
680 |
|
|
681 |
|
|
682 |
/********************************************** |
/********************************************** |
683 |
* Event reader algorithm for CalAlarm events. |
* Event reader algorithm for CalAlarm events. |
684 |
**********************************************/ |
**********************************************/ |
689 |
public: |
public: |
690 |
CalAlarmReader(void); |
CalAlarmReader(void); |
691 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
692 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
693 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
694 |
}; |
}; |
695 |
|
|
703 |
public: |
public: |
704 |
AcAlarmReader(void); |
AcAlarmReader(void); |
705 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
706 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
707 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
708 |
}; |
}; |
709 |
|
|
717 |
public: |
public: |
718 |
TrkAlarmReader(void); |
TrkAlarmReader(void); |
719 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
720 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
721 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
722 |
}; |
}; |
723 |
|
|
731 |
public: |
public: |
732 |
TrgAlarmReader(void); |
TrgAlarmReader(void); |
733 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
734 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
735 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
736 |
}; |
}; |
737 |
|
|
745 |
public: |
public: |
746 |
TofAlarmReader(void); |
TofAlarmReader(void); |
747 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
748 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
749 |
|
virtual std::string GetVersionInfo(void) const; |
750 |
|
}; |
751 |
|
|
752 |
|
/********************************************** |
753 |
|
* Event reader algorithm for S4Alarm events. |
754 |
|
**********************************************/ |
755 |
|
class S4AlarmReader: public TechmodelAlgorithm { |
756 |
|
private: |
757 |
|
/** The S4Alarm event that is created in the reader. */ |
758 |
|
S4AlarmEvent* s4Alarm; |
759 |
|
public: |
760 |
|
S4AlarmReader(void); |
761 |
|
virtual void Init(PamelaRun *); |
762 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
763 |
|
virtual std::string GetVersionInfo(void) const; |
764 |
|
}; |
765 |
|
|
766 |
|
/********************************************** |
767 |
|
* Event reader algorithm for TsbT events. |
768 |
|
**********************************************/ |
769 |
|
class TsbTReader: public TechmodelAlgorithm { |
770 |
|
private: |
771 |
|
/** The TsbT event that is created in the reader. */ |
772 |
|
TsbTEvent* TsbT; |
773 |
|
public: |
774 |
|
TsbTReader(void); |
775 |
|
virtual void Init(PamelaRun *); |
776 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
777 |
|
virtual std::string GetVersionInfo(void) const; |
778 |
|
}; |
779 |
|
|
780 |
|
/********************************************** |
781 |
|
* Event reader algorithm for TsbB events. |
782 |
|
**********************************************/ |
783 |
|
class TsbBReader: public TechmodelAlgorithm { |
784 |
|
private: |
785 |
|
/** The TsbB event that is created in the reader. */ |
786 |
|
TsbBEvent* TsbB; |
787 |
|
public: |
788 |
|
TsbBReader(void); |
789 |
|
virtual void Init(PamelaRun *); |
790 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
791 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
792 |
}; |
}; |
793 |
|
|
801 |
public: |
public: |
802 |
PscuReader(void); |
PscuReader(void); |
803 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
804 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
805 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
806 |
}; |
}; |
807 |
|
|
812 |
#endif /* READER_ALGORITHM_H */ |
#endif /* READER_ALGORITHM_H */ |
813 |
|
|
814 |
|
|
815 |
|
|
816 |
|
|