/[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.7 by kusanagi, Sat Jan 29 00:26:55 2005 UTC revision 5.0 by kusanagi, Mon Aug 29 09:46:13 2005 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: kusanagi $   * $Author: kusanagi $
3   * $Date: 2004/12/17 14:00:53 $   * $Date: 2005/05/28 10:44:11 $
4   * $Revision: 2.6 $   * $Revision: 4.4 $
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"
# Line 23  Line 23 
23  #include "physics/S4Reader.h"  #include "physics/S4Reader.h"
24  #include "physics/TofReader.h"  #include "physics/TofReader.h"
25  #include "physics/TriggerReader.h"  #include "physics/TriggerReader.h"
 #include "CalibTrkBothEvent.h"  
26  #include "CalibTrk1Event.h"  #include "CalibTrk1Event.h"
27  #include "CalibTrk2Event.h"  #include "CalibTrk2Event.h"
 #include "CalibTrdEvent.h"  
28  #include "CalibTofEvent.h"  #include "CalibTofEvent.h"
29  #include "CalibS4Event.h"  #include "CalibS4Event.h"
30  #include "CalibCalPedEvent.h"  #include "CalibCalPedEvent.h"
# Line 47  Line 45 
45  #include "varDump/VarDumpEvent.h"  #include "varDump/VarDumpEvent.h"
46  #include "arrDump/ArrDumpEvent.h"  #include "arrDump/ArrDumpEvent.h"
47  #include "tabDump/TabDumpEvent.h"  #include "tabDump/TabDumpEvent.h"
48    #include "tsbt/TsbTEvent.h"
49    #include "tsbb/TsbBEvent.h"
50  #include "tmtc/TmtcEvent.h"  #include "tmtc/TmtcEvent.h"
51  #include "mcmd/McmdEvent.h"  #include "mcmd/McmdEvent.h"
52  #include "ForcedFECmdEvent.h"  #include "ForcedFECmdEvent.h"
# Line 146  namespace pamela { Line 146  namespace pamela {
146    
147    
148  /**********************************************  /**********************************************
 * Event reader algorithm for CalibTrkBoth events.  
 **********************************************/  
     class CalibTrkBothReader: public TechmodelAlgorithm {  
     private:  
       /** The CalibTrkBoth event that is created in the reader. */  
       CalibTrkBothEvent* calibTrkBoth;  
     public:  
       CalibTrkBothReader(void);  
       virtual void Init(PamelaRun *);  
       virtual void RunEvent(int, long int) throw (Exception);  
       //this type of RUNEvent should be the future develop.  
       //Pass the buffer not the pointer to file  
       //virtual void RunEvent(int, long int, char[]);  
       virtual std::string GetVersionInfo(void) const;  
     };  
   
   
 /**********************************************  
149  * Event reader algorithm for CalibTrk1 events.  * Event reader algorithm for CalibTrk1 events.
150  **********************************************/  **********************************************/
151      class CalibTrk1Reader: public TechmodelAlgorithm {      class CalibTrk1Reader: public TechmodelAlgorithm {
# Line 197  namespace pamela { Line 179  namespace pamela {
179    
180    
181  /**********************************************  /**********************************************
 * Event reader algorithm for CalibTrd events.  
 **********************************************/  
     class CalibTrdReader: public TechmodelAlgorithm {  
     private:  
       /** The CalibTrd event that is created in the reader. */  
       CalibTrdEvent* calibTrd;  
     public:  
       CalibTrdReader(void);  
       virtual void Init(PamelaRun *);  
       virtual void RunEvent(int, long int) throw (Exception);  
       virtual std::string GetVersionInfo(void) const;  
     };  
   
   
 /**********************************************  
182  * Event reader algorithm for CalibTof events.  * Event reader algorithm for CalibTof events.
183  **********************************************/  **********************************************/
184      class CalibTofReader: public TechmodelAlgorithm {      class CalibTofReader: public TechmodelAlgorithm {
# Line 236  namespace pamela { Line 203  namespace pamela {
203      public:      public:
204        CalibS4Reader(void);        CalibS4Reader(void);
205        virtual void Init(PamelaRun *);        virtual void Init(PamelaRun *);
206        virtual void RunEvent(int, long int) throw (Exception);        virtual void RunEvent(int, long int) throw (WrongCRCException);
207        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
208      };      };
209    
# Line 512  namespace pamela { Line 479  namespace pamela {
479  **********************************************/  **********************************************/
480      class TmtcReader: public TechmodelAlgorithm {      class TmtcReader: public TechmodelAlgorithm {
481      //Length in bytes of the subPacket (that is te TmtcRecord excluded subCRC)      //Length in bytes of the subPacket (that is te TmtcRecord excluded subCRC)
482      static const int TMTC_SUB_LENGTH = 36;      static const int TMTC_SUB_LENGTH = 44;
483      //Length in bytes of the subPacketCRC      //Length in bytes of the subPacketCRC
484      static const int TMTC_SUBCRC_LENGTH = 1;      static const int TMTC_SUBCRC_LENGTH = 1;
485      //Length in bytes of the PacketCRC      //Length in bytes of the PacketCRC
# Line 762  namespace pamela { Line 729  namespace pamela {
729      };      };
730    
731  /**********************************************  /**********************************************
732    * Event reader algorithm for TsbT events.
733    **********************************************/
734        class TsbTReader: public TechmodelAlgorithm {
735        private:
736          /** The TsbT event that is created in the reader. */
737          TsbTEvent* TsbT;
738        public:
739          TsbTReader(void);
740          virtual void Init(PamelaRun *);
741          virtual void RunEvent(int, long int) throw (WrongCRCException);
742          virtual std::string GetVersionInfo(void) const;
743        };
744    
745    /**********************************************
746    * Event reader algorithm for TsbB events.
747    **********************************************/
748        class TsbBReader: public TechmodelAlgorithm {
749        private:
750          /** The TsbB event that is created in the reader. */
751          TsbBEvent* TsbB;
752        public:
753          TsbBReader(void);
754          virtual void Init(PamelaRun *);
755          virtual void RunEvent(int, long int) throw (WrongCRCException);
756          virtual std::string GetVersionInfo(void) const;
757        };
758    
759    /**********************************************
760  * Event reader algorithm for PSCU events.  * Event reader algorithm for PSCU events.
761  **********************************************/  **********************************************/
762      class PscuReader: public TechmodelAlgorithm {      class PscuReader: public TechmodelAlgorithm {

Legend:
Removed from v.2.7  
changed lines
  Added in v.5.0

  ViewVC Help
Powered by ViewVC 1.1.23