/[PAMELA software]/yoda/techmodel/ReaderAlgorithms.h
ViewVC logotype

Annotation of /yoda/techmodel/ReaderAlgorithms.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.1 - (hide annotations) (download)
Mon May 16 15:35:12 2005 UTC (19 years, 6 months ago) by kusanagi
Branch: MAIN
CVS Tags: YODA4_3/02, YODA4_3/00, YODA4_3/01
Changes since 4.0: +3 -3 lines
File MIME type: text/plain
As lack in the CPU software 4 thermistores were missing.
Consequently TMTC_SUB_LENGTH is 44 bytes long instead of the previous 36.

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

  ViewVC Help
Powered by ViewVC 1.1.23