/[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.2.1 by kusanagi, Fri Mar 4 10:30:07 2005 UTC revision 4.4 by kusanagi, Sat May 28 10:44:11 2005 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: kusanagi $   * $Author: kusanagi $
3   * $Date: 2005/01/29 00:26:55 $   * $Date: 2005/05/28 08:30:11 $
4   * $Revision: 2.7 $   * $Revision: 4.2 $
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 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 64  Line 64 
64  #include "TrgAlarmEvent.h"  #include "TrgAlarmEvent.h"
65  #include "TofAlarmEvent.h"  #include "TofAlarmEvent.h"
66  #include "S4AlarmEvent.h"  #include "S4AlarmEvent.h"
 #include "tsbt/TsbTEvent.h"  
 #include "tsbb/TsbBEvent.h"  
67    
68  using namespace std;  using namespace std;
69    
# Line 148  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 199  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 238  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 514  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 804  namespace pamela { Line 769  namespace pamela {
769        virtual void RunEvent(int, long int) throw (WrongCRCException);        virtual void RunEvent(int, long int) throw (WrongCRCException);
770        virtual std::string GetVersionInfo(void) const;        virtual std::string GetVersionInfo(void) const;
771      };      };
772    
773    
774    }    }
775  }  }
776    

Legend:
Removed from v.2.7.2.1  
changed lines
  Added in v.4.4

  ViewVC Help
Powered by ViewVC 1.1.23