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

Diff of /yoda/techmodel/ReaderAlgorithms.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.0 by kusanagi, Tue Sep 21 20:50:54 2004 UTC revision 4.1 by kusanagi, Mon May 16 15:35:12 2005 UTC
# Line 1  Line 1 
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   */   */
# Line 13  Line 13 
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"
# Line 27  Line 30 
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"
# Line 41  Line 47 
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    
# Line 76  namespace pamela { Line 82  namespace pamela {
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[]);
# Line 94  namespace pamela { Line 100  namespace pamela {
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[]);
# Line 112  namespace pamela { Line 118  namespace pamela {
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[]);
# Line 130  namespace pamela { Line 136  namespace pamela {
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    
# Line 148  namespace pamela { Line 157  namespace pamela {
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[]);
# Line 166  namespace pamela { Line 175  namespace pamela {
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[]);
# Line 184  namespace pamela { Line 193  namespace pamela {
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    
# Line 199  namespace pamela { Line 208  namespace pamela {
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    
# Line 214  namespace pamela { Line 223  namespace pamela {
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    
# Line 225  namespace pamela { Line 234  namespace pamela {
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    
# Line 244  namespace pamela { Line 253  namespace pamela {
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    
# Line 274  namespace pamela { Line 326  namespace pamela {
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    
# Line 289  namespace pamela { Line 341  namespace pamela {
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    
# Line 304  namespace pamela { Line 356  namespace pamela {
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    
# Line 319  namespace pamela { Line 371  namespace pamela {
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    
# Line 334  namespace pamela { Line 386  namespace pamela {
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    
# Line 349  namespace pamela { Line 401  namespace pamela {
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    
# Line 364  namespace pamela { Line 416  namespace pamela {
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    
# Line 379  namespace pamela { Line 431  namespace pamela {
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    
# Line 393  namespace pamela { Line 445  namespace pamela {
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    
# Line 407  namespace pamela { Line 459  namespace pamela {
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    
# Line 422  namespace pamela { Line 474  namespace pamela {
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    
# Line 437  namespace pamela { Line 489  namespace pamela {
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    
# Line 452  namespace pamela { Line 504  namespace pamela {
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    
# Line 462  namespace pamela { Line 514  namespace pamela {
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
# Line 470  namespace pamela { Line 522  namespace pamela {
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    
# Line 489  namespace pamela { Line 541  namespace pamela {
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    
# Line 504  namespace pamela { Line 556  namespace pamela {
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    
# Line 534  namespace pamela { Line 586  namespace pamela {
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    
# Line 549  namespace pamela { Line 601  namespace pamela {
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    
# Line 564  namespace pamela { Line 616  namespace pamela {
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    
# Line 579  namespace pamela { Line 631  namespace pamela {
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  **********************************************/  **********************************************/
# Line 593  namespace pamela { Line 689  namespace pamela {
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    
# Line 607  namespace pamela { Line 703  namespace pamela {
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    
# Line 621  namespace pamela { Line 717  namespace pamela {
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    
# Line 635  namespace pamela { Line 731  namespace pamela {
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    
# Line 649  namespace pamela { Line 745  namespace pamela {
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    
# Line 663  namespace pamela { Line 801  namespace pamela {
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    
# Line 674  namespace pamela { Line 812  namespace pamela {
812  #endif /* READER_ALGORITHM_H */  #endif /* READER_ALGORITHM_H */
813    
814    
815    
816    

Legend:
Removed from v.2.0  
changed lines
  Added in v.4.1

  ViewVC Help
Powered by ViewVC 1.1.23