| 1 |
/** @file |
/** @file |
| 2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 3 |
* $Date: 2005/01/29 00:26:55 $ |
* $Date: 2005/05/28 10:44:11 $ |
| 4 |
* $Revision: 2.7 $ |
* $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 |
*/ |
*/ |
| 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" |
| 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" |
| 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 { |
| 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 |
| 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 { |