/[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 1.7 by kusanagi, Thu Aug 19 15:24:46 2004 UTC revision 2.2 by kusanagi, Fri Dec 3 22:08:01 2004 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: kusanagi $   * $Author: kusanagi $
3   * $Date: 2004/07/29 16:19:11 $   * $Date: 2004/09/24 11:57:49 $
4   * $Revision: 1.6 $   * $Revision: 2.1 $
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 36  Line 36 
36  #include "InitTrailerEvent.h"  #include "InitTrailerEvent.h"
37  #include "EventTrkEvent.h"  #include "EventTrkEvent.h"
38  #include "TestTrkEvent.h"  #include "TestTrkEvent.h"
39    #include "TestTofEvent.h"
40  #include "log/LogEvent.h"  #include "log/LogEvent.h"
41  #include "varDump/VarDumpEvent.h"  #include "varDump/VarDumpEvent.h"
42  #include "arrDump/ArrDumpEvent.h"  #include "arrDump/ArrDumpEvent.h"
# Line 48  Line 49 
49  #include "TrkInitEvent.h"  #include "TrkInitEvent.h"
50  #include "TofInitEvent.h"  #include "TofInitEvent.h"
51  #include "TrgInitEvent.h"  #include "TrgInitEvent.h"
52    #include "NdInitEvent.h"
53    #include "CalAlarmEvent.h"
54    #include "AcAlarmEvent.h"
55  #define UINT32 unsigned int  #include "TrkAlarmEvent.h"
56  #define UINT16 unsigned short  #include "TrgAlarmEvent.h"
57  #define BYTE   unsigned char  #include "TofAlarmEvent.h"
58    
59  using namespace std;  using namespace std;
60    
# Line 70  namespace pamela { Line 71  namespace pamela {
71      public:      public:
72        PhysEndRunReader(void);        PhysEndRunReader(void);
73        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
74        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
75        //this type of RUNEvent should be the future develop.        //this type of RUNEvent should be the future develop.
76        //Pass the buffer not the pointer to file        //Pass the buffer not the pointer to file
77        //virtual void RunEvent(int, long int, char[]);        //virtual void RunEvent(int, long int, char[]);
# Line 88  namespace pamela { Line 89  namespace pamela {
89      public:      public:
90        CalibCalPulse1Reader(void);        CalibCalPulse1Reader(void);
91        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
92        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
93        //this type of RUNEvent should be the future develop.        //this type of RUNEvent should be the future develop.
94        //Pass the buffer not the pointer to file        //Pass the buffer not the pointer to file
95        //virtual void RunEvent(int, long int, char[]);        //virtual void RunEvent(int, long int, char[]);
# Line 106  namespace pamela { Line 107  namespace pamela {
107      public:      public:
108        CalibCalPulse2Reader(void);        CalibCalPulse2Reader(void);
109        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
110        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
111        //this type of RUNEvent should be the future develop.        //this type of RUNEvent should be the future develop.
112        //Pass the buffer not the pointer to file        //Pass the buffer not the pointer to file
113        //virtual void RunEvent(int, long int, char[]);        //virtual void RunEvent(int, long int, char[]);
# Line 127  namespace pamela { Line 128  namespace pamela {
128      public:      public:
129        PhysicsReader(void);        PhysicsReader(void);
130        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
131        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
132        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
133      };      };
134    
# Line 142  namespace pamela { Line 143  namespace pamela {
143      public:      public:
144        CalibTrkBothReader(void);        CalibTrkBothReader(void);
145        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
146        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
147        //this type of RUNEvent should be the future develop.        //this type of RUNEvent should be the future develop.
148        //Pass the buffer not the pointer to file        //Pass the buffer not the pointer to file
149        //virtual void RunEvent(int, long int, char[]);        //virtual void RunEvent(int, long int, char[]);
# Line 160  namespace pamela { Line 161  namespace pamela {
161      public:      public:
162        CalibTrk1Reader(void);        CalibTrk1Reader(void);
163        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
164        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
165        //this type of RUNEvent should be the future develop.        //this type of RUNEvent should be the future develop.
166        //Pass the buffer not the pointer to file        //Pass the buffer not the pointer to file
167        //virtual void RunEvent(int, long int, char[]);        //virtual void RunEvent(int, long int, char[]);
# Line 178  namespace pamela { Line 179  namespace pamela {
179      public:      public:
180        CalibTrk2Reader(void);        CalibTrk2Reader(void);
181        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
182        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
183        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
184      };      };
185    
# Line 193  namespace pamela { Line 194  namespace pamela {
194      public:      public:
195        CalibTrdReader(void);        CalibTrdReader(void);
196        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
197        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
198        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
199      };      };
200    
# Line 208  namespace pamela { Line 209  namespace pamela {
209      public:      public:
210        CalibTofReader(void);        CalibTofReader(void);
211        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
212        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
213        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
214      };      };
215    
# Line 223  namespace pamela { Line 224  namespace pamela {
224      public:      public:
225        CalibS4Reader(void);        CalibS4Reader(void);
226        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
227        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
228        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
229      };      };
230    
# Line 238  namespace pamela { Line 239  namespace pamela {
239      public:      public:
240        CalibCalPedReader(void);        CalibCalPedReader(void);
241        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
242        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
243        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
244      };      };
245    
# Line 253  namespace pamela { Line 254  namespace pamela {
254      public:      public:
255        CalibAcReader(void);        CalibAcReader(void);
256        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
257        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
258        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
259      };      };
260    
# Line 268  namespace pamela { Line 269  namespace pamela {
269      public:      public:
270        RunHeaderReader(void);        RunHeaderReader(void);
271        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
272        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
273        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
274      };      };
275    
# Line 283  namespace pamela { Line 284  namespace pamela {
284      public:      public:
285        RunTrailerReader(void);        RunTrailerReader(void);
286        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
287        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
288        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
289      };      };
290    
# Line 298  namespace pamela { Line 299  namespace pamela {
299      public:      public:
300        CalibHeaderReader(void);        CalibHeaderReader(void);
301        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
302        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
303        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
304      };      };
305    
# Line 313  namespace pamela { Line 314  namespace pamela {
314      public:      public:
315        CalibTrailerReader(void);        CalibTrailerReader(void);
316        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
317        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
318        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
319      };      };
320    
# Line 328  namespace pamela { Line 329  namespace pamela {
329      public:      public:
330        InitHeaderReader(void);        InitHeaderReader(void);
331        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
332        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
333        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
334      };      };
335    
# Line 343  namespace pamela { Line 344  namespace pamela {
344      public:      public:
345        InitTrailerReader(void);        InitTrailerReader(void);
346        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
347        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
348        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
349      };      };
350    
# Line 358  namespace pamela { Line 359  namespace pamela {
359      public:      public:
360        EventTrkReader(void);        EventTrkReader(void);
361        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
362        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
363        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
364      };      };
365    
# Line 373  namespace pamela { Line 374  namespace pamela {
374      public:      public:
375        TestTrkReader(void);        TestTrkReader(void);
376        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
377        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (Exception);
378        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
379      };      };
380    
381    /**********************************************
382    * Event reader algorithm for TestTof events.
383    **********************************************/
384        class TestTofReader: public TechmodelAlgorithm {
385        private:
386          /** The TestTof event that is created in the reader. */
387          TestTofEvent* testTof;
388        public:
389          TestTofReader(void);
390          virtual void Init(PamelaRun *);
391          virtual void RunEvent(int, long int) throw (Exception);
392          virtual std::string GetVersionInfo(void) const;
393        };
394    
395  /**********************************************  /**********************************************
396  * Event reader algorithm for Log events.  * Event reader algorithm for Log events.
# Line 388  namespace pamela { Line 402  namespace pamela {
402      public:      public:
403        LogReader(void);        LogReader(void);
404        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
405        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
406        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
407      };      };
408    
# Line 403  namespace pamela { Line 417  namespace pamela {
417      public:      public:
418        VarDumpReader(void);        VarDumpReader(void);
419        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
420        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
421        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
422      };      };
423    
# Line 418  namespace pamela { Line 432  namespace pamela {
432      public:      public:
433        ArrDumpReader(void);        ArrDumpReader(void);
434        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
435        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
436        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
437      };      };
438    
# Line 433  namespace pamela { Line 447  namespace pamela {
447      public:      public:
448        TabDumpReader(void);        TabDumpReader(void);
449        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
450        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
451        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
452      };      };
453    
# Line 455  namespace pamela { Line 469  namespace pamela {
469      public:      public:
470      TmtcReader(void);      TmtcReader(void);
471      virtual void Init(PamelaRun *);      virtual void Init(PamelaRun *);
472      virtual void RunEvent(int, long int);      virtual void RunEvent(int, long int) throw (WrongCRCException);
473      virtual string GetVersionInfo(void) const;      virtual string GetVersionInfo(void) const;
474      };      };
475    
# Line 470  namespace pamela { Line 484  namespace pamela {
484      public:      public:
485        McmdReader(void);        McmdReader(void);
486        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
487        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
488        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
489      };      };
490    
# Line 485  namespace pamela { Line 499  namespace pamela {
499      public:      public:
500        ForcedFECmdReader(void);        ForcedFECmdReader(void);
501        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
502        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
503        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
504      };      };
505    
# Line 500  namespace pamela { Line 514  namespace pamela {
514      public:      public:
515        AcInitReader(void);        AcInitReader(void);
516        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
517        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
518        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
519      };      };
520    
# Line 515  namespace pamela { Line 529  namespace pamela {
529      public:      public:
530        CalInitReader(void);        CalInitReader(void);
531        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
532        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
533        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
534      };      };
535    
# Line 530  namespace pamela { Line 544  namespace pamela {
544      public:      public:
545        TrkInitReader(void);        TrkInitReader(void);
546        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
547        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
548        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
549      };      };
550    
# Line 545  namespace pamela { Line 559  namespace pamela {
559      public:      public:
560        TofInitReader(void);        TofInitReader(void);
561        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
562        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
563        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
564      };      };
565    
# Line 560  namespace pamela { Line 574  namespace pamela {
574      public:      public:
575        TrgInitReader(void);        TrgInitReader(void);
576        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
577        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
578          virtual std::string GetVersionInfo(void) const;
579        };
580    
581    /**********************************************
582    * Event reader algorithm for NdInit events.
583    **********************************************/
584        class NdInitReader: public TechmodelAlgorithm {
585        private:
586          /** The NdInit event that is created in the reader. */
587          NdInitEvent* ndInit;
588        public:
589          NdInitReader(void);
590          virtual void Init(PamelaRun *);
591          virtual void RunEvent(int, long int) throw (WrongCRCException);
592          virtual std::string GetVersionInfo(void) const;
593        };
594    
595    
596    /**********************************************
597    * Event reader algorithm for CalAlarm events.
598    **********************************************/
599        class CalAlarmReader: public TechmodelAlgorithm {
600        private:
601          /** The CalAlarm event that is created in the reader. */
602          CalAlarmEvent* calAlarm;
603        public:
604          CalAlarmReader(void);
605          virtual void Init(PamelaRun *);
606          virtual void RunEvent(int, long int) throw (WrongCRCException);
607          virtual std::string GetVersionInfo(void) const;
608        };
609    
610    /**********************************************
611    * Event reader algorithm for AcAlarm events.
612    **********************************************/
613        class AcAlarmReader: public TechmodelAlgorithm {
614        private:
615          /** The AcAlarm event that is created in the reader. */
616          AcAlarmEvent* acAlarm;
617        public:
618          AcAlarmReader(void);
619          virtual void Init(PamelaRun *);
620          virtual void RunEvent(int, long int) throw (WrongCRCException);
621        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
622      };      };
623    
624    /**********************************************
625    * Event reader algorithm for TrkAlarm events.
626    **********************************************/
627        class TrkAlarmReader: public TechmodelAlgorithm {
628        private:
629          /** The TrkAlarm event that is created in the reader. */
630          TrkAlarmEvent* trkAlarm;
631        public:
632          TrkAlarmReader(void);
633          virtual void Init(PamelaRun *);
634          virtual void RunEvent(int, long int) throw (WrongCRCException);
635          virtual std::string GetVersionInfo(void) const;
636        };
637    
638    /**********************************************
639    * Event reader algorithm for TrgAlarm events.
640    **********************************************/
641        class TrgAlarmReader: public TechmodelAlgorithm {
642        private:
643          /** The TrgAlarm event that is created in the reader. */
644          TrgAlarmEvent* trgAlarm;
645        public:
646          TrgAlarmReader(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 TofAlarm events.
654    **********************************************/
655        class TofAlarmReader: public TechmodelAlgorithm {
656        private:
657          /** The TofAlarm event that is created in the reader. */
658          TofAlarmEvent* tofAlarm;
659        public:
660          TofAlarmReader(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  * Event reader algorithm for PSCU events.  * Event reader algorithm for PSCU events.
# Line 575  namespace pamela { Line 673  namespace pamela {
673      public:      public:
674        PscuReader(void);        PscuReader(void);
675        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
676        virtual void RunEvent(int, long int);        virtual void RunEvent(int, long int) throw (WrongCRCException);
677        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
678      };      };
679    

Legend:
Removed from v.1.7  
changed lines
  Added in v.2.2

  ViewVC Help
Powered by ViewVC 1.1.23