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

Annotation of /yoda/techmodel/ReaderAlgorithms.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2.8 - (hide annotations) (download)
Fri Feb 18 18:19:14 2005 UTC (19 years, 9 months ago) by kusanagi
Branch: MAIN
Changes since 2.7: +3 -3 lines
File MIME type: text/plain
Due to modification in the Pamela CalibS4 data now I read

    4 packets of 128x6 bytes

instead of

    3 packets of 128x6 bytes.

Moreover CRCcheck has been implemented

1 kusanagi 1.1 /** @file
2 kusanagi 1.2 * $Author: kusanagi $
3 kusanagi 2.8 * $Date: 2005/01/29 00:26:55 $
4     * $Revision: 2.7 $
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 1.7 #include "PhysEndRunEvent.h"
17     #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 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 CalibTrkBoth events.
150     **********************************************/
151     class CalibTrkBothReader: public TechmodelAlgorithm {
152     private:
153     /** The CalibTrkBoth event that is created in the reader. */
154     CalibTrkBothEvent* calibTrkBoth;
155     public:
156     CalibTrkBothReader(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 CalibTrk1 events.
168     **********************************************/
169     class CalibTrk1Reader: public TechmodelAlgorithm {
170     private:
171     /** The CalibTrk1 event that is created in the reader. */
172     CalibTrk1Event* calibTrk1;
173     public:
174     CalibTrk1Reader(void);
175     virtual void Init(PamelaRun *);
176 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
177 kusanagi 1.7 //this type of RUNEvent should be the future develop.
178     //Pass the buffer not the pointer to file
179     //virtual void RunEvent(int, long int, char[]);
180     virtual std::string GetVersionInfo(void) const;
181     };
182    
183    
184     /**********************************************
185     * Event reader algorithm for CalibTrk2 events.
186     **********************************************/
187     class CalibTrk2Reader: public TechmodelAlgorithm {
188     private:
189     /** The CalibTrk2 event that is created in the reader. */
190     CalibTrk2Event* calibTrk2;
191     public:
192     CalibTrk2Reader(void);
193     virtual void Init(PamelaRun *);
194 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
195 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
196     };
197    
198    
199     /**********************************************
200     * Event reader algorithm for CalibTrd events.
201     **********************************************/
202     class CalibTrdReader: public TechmodelAlgorithm {
203     private:
204     /** The CalibTrd event that is created in the reader. */
205     CalibTrdEvent* calibTrd;
206     public:
207     CalibTrdReader(void);
208     virtual void Init(PamelaRun *);
209 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
210 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
211     };
212    
213    
214     /**********************************************
215     * Event reader algorithm for CalibTof events.
216     **********************************************/
217     class CalibTofReader: public TechmodelAlgorithm {
218     private:
219     /** The CalibTof event that is created in the reader. */
220     CalibTofEvent* CalibTof;
221     public:
222     CalibTofReader(void);
223     virtual void Init(PamelaRun *);
224 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
225 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
226     };
227    
228    
229     /**********************************************
230     * Event reader algorithm for CalibS4 events.
231     **********************************************/
232     class CalibS4Reader: public TechmodelAlgorithm {
233     private:
234     /** The CalibCal event that is created in the reader. */
235 kusanagi 2.4 CalibS4Event* calibS4;
236 kusanagi 1.7 public:
237     CalibS4Reader(void);
238     virtual void Init(PamelaRun *);
239 kusanagi 2.8 virtual void RunEvent(int, long int) throw (WrongCRCException);
240 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
241     };
242    
243    
244     /**********************************************
245     * Event reader algorithm for CalibCalPed events.
246     **********************************************/
247     class CalibCalPedReader: public TechmodelAlgorithm {
248     private:
249     /** The CalibCalPed event that is created in the reader. */
250     CalibCalPedEvent* calibCalPed;
251     public:
252     CalibCalPedReader(void);
253     virtual void Init(PamelaRun *);
254 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
255 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
256     };
257    
258    
259     /***********************************************
260 kusanagi 2.4 * Event reader algorithm for Calib1_Ac1 events.
261 kusanagi 1.7 **********************************************/
262 kusanagi 2.4 class Calib1_Ac1Reader: public TechmodelAlgorithm {
263 kusanagi 1.7 private:
264     /** The CalibAc event that is created in the reader. */
265 kusanagi 2.4 Calib1_Ac1Event* calib1_Ac1;
266 kusanagi 1.7 public:
267 kusanagi 2.4 Calib1_Ac1Reader(void);
268     virtual void Init(PamelaRun *);
269     virtual void RunEvent(int, long int) throw (Exception);
270     virtual std::string GetVersionInfo(void) const;
271     };
272    
273    
274     /***********************************************
275     * Event reader algorithm for Calib1_Ac2 events.
276     **********************************************/
277     class Calib1_Ac2Reader: public TechmodelAlgorithm {
278     private:
279     /** The Calib1_Ac2 event that is created in the reader. */
280     Calib1_Ac2Event* calib1_Ac2;
281     public:
282     Calib1_Ac2Reader(void);
283     virtual void Init(PamelaRun *);
284     virtual void RunEvent(int, long int) throw (Exception);
285     virtual std::string GetVersionInfo(void) const;
286     };
287    
288     /***********************************************
289     * Event reader algorithm for Calib2_Ac1 events.
290     **********************************************/
291     class Calib2_Ac1Reader: public TechmodelAlgorithm {
292     private:
293     /** The Calib2_Ac1 event that is created in the reader. */
294     Calib2_Ac1Event* calib2_Ac1;
295     public:
296     Calib2_Ac1Reader(void);
297     virtual void Init(PamelaRun *);
298     virtual void RunEvent(int, long int) throw (Exception);
299     virtual std::string GetVersionInfo(void) const;
300     };
301    
302     /***********************************************
303     * Event reader algorithm for Calib2_Ac2 events.
304     **********************************************/
305     class Calib2_Ac2Reader: public TechmodelAlgorithm {
306     private:
307     /** The Calib2_Ac2 event that is created in the reader. */
308     Calib2_Ac2Event* calib2_Ac2;
309     public:
310     Calib2_Ac2Reader(void);
311 kusanagi 1.7 virtual void Init(PamelaRun *);
312 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
313 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
314     };
315    
316    
317     /**********************************************
318     * Event reader algorithm for RunHeader events.
319     **********************************************/
320     class RunHeaderReader: public TechmodelAlgorithm {
321     private:
322     /** The RunHeader event that is created in the reader. */
323     RunHeaderEvent* RunHeader;
324     public:
325     RunHeaderReader(void);
326     virtual void Init(PamelaRun *);
327 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
328 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
329     };
330    
331    
332     /**********************************************
333     * Event reader algorithm for RunTrailer events.
334     **********************************************/
335     class RunTrailerReader: public TechmodelAlgorithm {
336 kusanagi 1.1 private:
337 kusanagi 1.7 /** The RunTrailer event that is created in the reader. */
338     RunTrailerEvent* RunTrailer;
339 kusanagi 1.1 public:
340 kusanagi 1.7 RunTrailerReader(void);
341 kusanagi 1.1 virtual void Init(PamelaRun *);
342 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
343 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
344 kusanagi 1.1 };
345    
346    
347 kusanagi 1.7 /**********************************************
348     * Event reader algorithm for CalibHeader events.
349     **********************************************/
350     class CalibHeaderReader: public TechmodelAlgorithm {
351 kusanagi 1.1 private:
352 kusanagi 1.7 /** The CalibHeader event that is created in the reader. */
353     CalibHeaderEvent* calibHeader;
354 kusanagi 1.1 public:
355 kusanagi 1.7 CalibHeaderReader(void);
356     virtual void Init(PamelaRun *);
357 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
358 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
359 kusanagi 1.1 };
360    
361    
362 kusanagi 1.7 /**********************************************
363     * Event reader algorithm for CalibTrailer events.
364     **********************************************/
365     class CalibTrailerReader: public TechmodelAlgorithm {
366 kusanagi 1.1 private:
367 kusanagi 1.7 /** The CalibTrailer event that is created in the reader. */
368     CalibTrailerEvent* calibTrailer;
369 kusanagi 1.1 public:
370 kusanagi 1.7 CalibTrailerReader(void);
371 kusanagi 1.1 virtual void Init(PamelaRun *);
372 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
373 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
374     };
375    
376 kusanagi 1.7
377     /**********************************************
378     * Event reader algorithm for InitHeader events.
379     **********************************************/
380     class InitHeaderReader: public TechmodelAlgorithm {
381 kusanagi 1.1 private:
382 kusanagi 1.7 /** The InitHeader event that is created in the reader. */
383     InitHeaderEvent* initHeader;
384 kusanagi 1.1 public:
385 kusanagi 1.7 InitHeaderReader(void);
386 kusanagi 1.1 virtual void Init(PamelaRun *);
387 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
388 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
389     };
390    
391 kusanagi 1.7
392     /**********************************************
393     * Event reader algorithm for InitTrailer events.
394     **********************************************/
395     class InitTrailerReader: public TechmodelAlgorithm {
396 kusanagi 1.1 private:
397 kusanagi 1.7 /** The InitTrailer event that is created in the reader. */
398     InitTrailerEvent* initTrailer;
399 kusanagi 1.1 public:
400 kusanagi 1.7 InitTrailerReader(void);
401 kusanagi 1.1 virtual void Init(PamelaRun *);
402 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
403 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
404     };
405    
406 kusanagi 1.7
407     /**********************************************
408     * Event reader algorithm for EventTrk events.
409     **********************************************/
410     class EventTrkReader: public TechmodelAlgorithm {
411 kusanagi 1.1 private:
412 kusanagi 1.7 /** The EventTrk event that is created in the reader. */
413     EventTrkEvent* eventTrk;
414 kusanagi 1.1 public:
415 kusanagi 1.7 EventTrkReader(void);
416 kusanagi 1.1 virtual void Init(PamelaRun *);
417 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
418 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
419     };
420    
421 kusanagi 1.7
422     /**********************************************
423     * Event reader algorithm for TestTrk events.
424     **********************************************/
425     class TestTrkReader: public TechmodelAlgorithm {
426 kusanagi 1.1 private:
427 kusanagi 1.7 /** The TestTrk event that is created in the reader. */
428     TestTrkEvent* testTrk;
429 kusanagi 1.1 public:
430 kusanagi 1.7 TestTrkReader(void);
431 kusanagi 1.1 virtual void Init(PamelaRun *);
432 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
433 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
434     };
435    
436 kusanagi 1.8 /**********************************************
437     * Event reader algorithm for TestTof events.
438     **********************************************/
439     class TestTofReader: public TechmodelAlgorithm {
440     private:
441     /** The TestTof event that is created in the reader. */
442     TestTofEvent* testTof;
443     public:
444     TestTofReader(void);
445     virtual void Init(PamelaRun *);
446 kusanagi 2.2 virtual void RunEvent(int, long int) throw (Exception);
447 kusanagi 1.8 virtual std::string GetVersionInfo(void) const;
448     };
449 kusanagi 1.7
450     /**********************************************
451     * Event reader algorithm for Log events.
452     **********************************************/
453 kusanagi 1.1 class LogReader: public TechmodelAlgorithm {
454     private:
455     /** The Log event that is created in the reader. */
456     LogEvent* Log;
457     public:
458     LogReader(void);
459     virtual void Init(PamelaRun *);
460 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
461 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
462     };
463    
464 kusanagi 1.7
465     /***********************************************
466     * Event reader algorithm for VarDump events.
467     **********************************************/
468     class VarDumpReader: public TechmodelAlgorithm {
469 kusanagi 1.1 private:
470 kusanagi 1.7 /** The VarDump event that is created in the reader. */
471     VarDumpEvent* VarDump;
472     public:
473     VarDumpReader(void);
474     virtual void Init(PamelaRun *);
475 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
476 kusanagi 1.7 virtual std::string GetVersionInfo(void) const;
477     };
478    
479    
480     /**********************************************
481     * Event reader algorithm for ArrDump events.
482     **********************************************/
483     class ArrDumpReader: public TechmodelAlgorithm {
484     private:
485     /** The ArrDump event that is created in the reader. */
486     ArrDumpEvent* ArrDump;
487 kusanagi 1.1 public:
488 kusanagi 1.7 ArrDumpReader(void);
489 kusanagi 1.1 virtual void Init(PamelaRun *);
490 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
491 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
492     };
493    
494 kusanagi 1.7
495     /**********************************************
496     * Event reader algorithm for TabDump events.
497     **********************************************/
498     class TabDumpReader: public TechmodelAlgorithm {
499 kusanagi 1.3 private:
500 kusanagi 1.7 /** The TabDump event that is created in the reader. */
501     TabDumpEvent* TabDump;
502 kusanagi 1.3 public:
503 kusanagi 1.7 TabDumpReader(void);
504 kusanagi 1.3 virtual void Init(PamelaRun *);
505 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
506 kusanagi 1.3 virtual std::string GetVersionInfo(void) const;
507     };
508    
509    
510 kusanagi 1.7 /**********************************************
511     * Event reader algorithm for TMTC events.
512     **********************************************/
513     class TmtcReader: public TechmodelAlgorithm {
514     //Length in bytes of the subPacket (that is te TmtcRecord excluded subCRC)
515 kusanagi 2.6 static const int TMTC_SUB_LENGTH = 36;
516 kusanagi 1.7 //Length in bytes of the subPacketCRC
517     static const int TMTC_SUBCRC_LENGTH = 1;
518     //Length in bytes of the PacketCRC
519     static const int TMTC_CRC_LENGTH = 2;
520     private:
521     /** The TMTC event that is created in the reader. */
522     TmtcEvent* Tmtc;
523 kusanagi 2.5 //float convert_th(int);
524 kusanagi 1.7 public:
525     TmtcReader(void);
526     virtual void Init(PamelaRun *);
527 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
528 kusanagi 1.7 virtual string GetVersionInfo(void) const;
529     };
530    
531    
532     /**********************************************
533     * Event reader algorithm for Mcmd events.
534     **********************************************/
535     class McmdReader: public TechmodelAlgorithm {
536 kusanagi 1.1 private:
537 kusanagi 1.7 /** The Mcmd event that is created in the reader. */
538     McmdEvent* Mcmd;
539 kusanagi 1.1 public:
540 kusanagi 1.7 McmdReader(void);
541 kusanagi 1.1 virtual void Init(PamelaRun *);
542 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
543 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
544     };
545    
546 kusanagi 1.7
547     /**********************************************
548     * Event reader algorithm for ForcedFECmd events.
549     **********************************************/
550     class ForcedFECmdReader: public TechmodelAlgorithm {
551 kusanagi 1.1 private:
552 kusanagi 1.7 /** The ForcedFECmd event that is created in the reader. */
553     ForcedFECmdEvent* forcedFECmd;
554 kusanagi 1.1 public:
555 kusanagi 1.7 ForcedFECmdReader(void);
556 kusanagi 1.1 virtual void Init(PamelaRun *);
557 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
558 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
559     };
560    
561 kusanagi 1.7
562     /**********************************************
563 kusanagi 2.4 * Event reader algorithm for Ac1Init events.
564 kusanagi 1.7 **********************************************/
565 kusanagi 2.4 class Ac1InitReader: public TechmodelAlgorithm {
566 kusanagi 1.1 private:
567 kusanagi 2.4 /** The Ac1Init event that is created in the reader. */
568     Ac1InitEvent* ac1Init;
569 kusanagi 1.1 public:
570 kusanagi 2.4 Ac1InitReader(void);
571 kusanagi 1.1 virtual void Init(PamelaRun *);
572 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
573 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
574     };
575    
576 kusanagi 1.7
577     /**********************************************
578     * Event reader algorithm for CalInit events.
579     **********************************************/
580     class CalInitReader: public TechmodelAlgorithm {
581 kusanagi 1.1 private:
582 kusanagi 1.7 /** The CalInit event that is created in the reader. */
583     CalInitEvent* calInit;
584 kusanagi 1.1 public:
585 kusanagi 1.7 CalInitReader(void);
586 kusanagi 1.1 virtual void Init(PamelaRun *);
587 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
588 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
589     };
590    
591 kusanagi 1.7
592     /**********************************************
593     * Event reader algorithm for TrkInit events.
594     **********************************************/
595     class TrkInitReader: public TechmodelAlgorithm {
596 kusanagi 1.1 private:
597 kusanagi 1.7 /** The TrkInit event that is created in the reader. */
598     TrkInitEvent* trkInit;
599 kusanagi 1.1 public:
600 kusanagi 1.7 TrkInitReader(void);
601 kusanagi 1.1 virtual void Init(PamelaRun *);
602 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
603 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
604     };
605    
606    
607 kusanagi 1.7 /**********************************************
608     * Event reader algorithm for TofInit events.
609     **********************************************/
610     class TofInitReader: public TechmodelAlgorithm {
611 kusanagi 1.1 private:
612 kusanagi 1.7 /** The TofInit event that is created in the reader. */
613     TofInitEvent* tofInit;
614 kusanagi 1.1 public:
615 kusanagi 1.7 TofInitReader(void);
616 kusanagi 1.1 virtual void Init(PamelaRun *);
617 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
618 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
619     };
620    
621 kusanagi 1.7
622     /**********************************************
623     * Event reader algorithm for TrgInit events.
624     **********************************************/
625     class TrgInitReader: public TechmodelAlgorithm {
626 kusanagi 1.1 private:
627 kusanagi 1.7 /** The TrgInit event that is created in the reader. */
628     TrgInitEvent* trgInit;
629 kusanagi 1.1 public:
630 kusanagi 1.7 TrgInitReader(void);
631 kusanagi 1.1 virtual void Init(PamelaRun *);
632 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
633 kusanagi 1.1 virtual std::string GetVersionInfo(void) const;
634     };
635    
636 kusanagi 1.8 /**********************************************
637 kusanagi 2.1 * Event reader algorithm for NdInit events.
638     **********************************************/
639     class NdInitReader: public TechmodelAlgorithm {
640     private:
641     /** The NdInit event that is created in the reader. */
642     NdInitEvent* ndInit;
643     public:
644     NdInitReader(void);
645     virtual void Init(PamelaRun *);
646 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
647 kusanagi 2.1 virtual std::string GetVersionInfo(void) const;
648     };
649    
650 kusanagi 2.3 /**********************************************
651     * Event reader algorithm for S4Init events.
652     **********************************************/
653     class S4InitReader: public TechmodelAlgorithm {
654     private:
655     /** The S4Init event that is created in the reader. */
656     S4InitEvent* s4Init;
657     public:
658     S4InitReader(void);
659     virtual void Init(PamelaRun *);
660     virtual void RunEvent(int, long int) throw (WrongCRCException);
661     virtual std::string GetVersionInfo(void) const;
662     };
663    
664 kusanagi 2.1
665     /**********************************************
666 kusanagi 2.4 * Event reader algorithm for Ac2Init events.
667     **********************************************/
668     class Ac2InitReader: public TechmodelAlgorithm {
669     private:
670     /** The Ac2Init event that is created in the reader. */
671     Ac2InitEvent* ac2Init;
672     public:
673     Ac2InitReader(void);
674     virtual void Init(PamelaRun *);
675     virtual void RunEvent(int, long int) throw (WrongCRCException);
676     virtual std::string GetVersionInfo(void) const;
677     };
678    
679    
680     /**********************************************
681 kusanagi 1.8 * Event reader algorithm for CalAlarm events.
682     **********************************************/
683     class CalAlarmReader: public TechmodelAlgorithm {
684     private:
685     /** The CalAlarm event that is created in the reader. */
686     CalAlarmEvent* calAlarm;
687     public:
688     CalAlarmReader(void);
689     virtual void Init(PamelaRun *);
690 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
691 kusanagi 1.8 virtual std::string GetVersionInfo(void) const;
692     };
693    
694     /**********************************************
695     * Event reader algorithm for AcAlarm events.
696     **********************************************/
697     class AcAlarmReader: public TechmodelAlgorithm {
698     private:
699     /** The AcAlarm event that is created in the reader. */
700     AcAlarmEvent* acAlarm;
701     public:
702     AcAlarmReader(void);
703     virtual void Init(PamelaRun *);
704 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
705 kusanagi 1.8 virtual std::string GetVersionInfo(void) const;
706     };
707    
708     /**********************************************
709     * Event reader algorithm for TrkAlarm events.
710     **********************************************/
711     class TrkAlarmReader: public TechmodelAlgorithm {
712     private:
713     /** The TrkAlarm event that is created in the reader. */
714     TrkAlarmEvent* trkAlarm;
715     public:
716     TrkAlarmReader(void);
717     virtual void Init(PamelaRun *);
718 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
719 kusanagi 1.8 virtual std::string GetVersionInfo(void) const;
720     };
721    
722     /**********************************************
723     * Event reader algorithm for TrgAlarm events.
724     **********************************************/
725     class TrgAlarmReader: public TechmodelAlgorithm {
726     private:
727     /** The TrgAlarm event that is created in the reader. */
728     TrgAlarmEvent* trgAlarm;
729     public:
730     TrgAlarmReader(void);
731     virtual void Init(PamelaRun *);
732 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
733 kusanagi 1.8 virtual std::string GetVersionInfo(void) const;
734     };
735    
736     /**********************************************
737     * Event reader algorithm for TofAlarm events.
738     **********************************************/
739     class TofAlarmReader: public TechmodelAlgorithm {
740     private:
741     /** The TofAlarm event that is created in the reader. */
742     TofAlarmEvent* tofAlarm;
743     public:
744     TofAlarmReader(void);
745     virtual void Init(PamelaRun *);
746 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
747 kusanagi 1.8 virtual std::string GetVersionInfo(void) const;
748     };
749 kusanagi 1.1
750 kusanagi 1.7 /**********************************************
751 kusanagi 2.3 * Event reader algorithm for S4Alarm events.
752     **********************************************/
753     class S4AlarmReader: public TechmodelAlgorithm {
754     private:
755     /** The S4Alarm event that is created in the reader. */
756     S4AlarmEvent* s4Alarm;
757     public:
758     S4AlarmReader(void);
759     virtual void Init(PamelaRun *);
760     virtual void RunEvent(int, long int) throw (WrongCRCException);
761     virtual std::string GetVersionInfo(void) const;
762     };
763    
764     /**********************************************
765 kusanagi 1.7 * Event reader algorithm for PSCU events.
766     **********************************************/
767     class PscuReader: public TechmodelAlgorithm {
768 kusanagi 1.4 private:
769 kusanagi 1.7 /** The PSCU event that is created in the reader. */
770     PscuEvent* Pscu;
771 kusanagi 1.4 public:
772 kusanagi 1.7 PscuReader(void);
773 kusanagi 1.4 virtual void Init(PamelaRun *);
774 kusanagi 2.2 virtual void RunEvent(int, long int) throw (WrongCRCException);
775 kusanagi 1.4 virtual std::string GetVersionInfo(void) const;
776     };
777 kusanagi 1.7
778    
779 kusanagi 1.1 }
780     }
781    
782     #endif /* READER_ALGORITHM_H */
783    
784    
785 kusanagi 2.3
786 kusanagi 2.4

  ViewVC Help
Powered by ViewVC 1.1.23