| 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 |
*/ |
*/ |
| 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" |
| 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" |
| 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 |
|
|
| 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 { |
| 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 { |
| 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 |
|
|
| 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 |
| 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 |
|
|