| 1 |
/** @file |
/** @file |
| 2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 3 |
* $Date: 2006/02/15 15:47:14 $ |
* $Date: 2006/04/25 16:51:04 $ |
| 4 |
* $Revision: 6.1 $ |
* $Revision: 6.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 |
*/ |
*/ |
| 16 |
#include "endrun/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 "CalibTrkBothEvent.h" |
|
#include "physics/AnticounterReader.h" |
|
|
#include "physics/CalorimeterReader.h" |
|
|
#include "physics/NeutronDetectorReader.h" |
|
|
#include "physics/S4Reader.h" |
|
|
#include "physics/TofReader.h" |
|
|
#include "physics/TriggerReader.h" |
|
| 20 |
#include "CalibTrk1Event.h" |
#include "CalibTrk1Event.h" |
| 21 |
#include "CalibTrk2Event.h" |
#include "CalibTrk2Event.h" |
| 22 |
#include "CalibTofEvent.h" |
#include "CalibTofEvent.h" |
| 23 |
#include "CalibS4Event.h" |
#include "CalibS4Event.h" |
| 24 |
#include "CalibCalPedEvent.h" |
#include "CalibCalPedEvent.h" |
| 25 |
#include "Calib1_Ac1Event.h" |
#include "Calib1_Ac1Event.h" |
|
#include "Calib1_Ac2Event.h" |
|
| 26 |
#include "Calib2_Ac1Event.h" |
#include "Calib2_Ac1Event.h" |
| 27 |
|
#include "Calib1_Ac2Event.h" |
| 28 |
#include "Calib2_Ac2Event.h" |
#include "Calib2_Ac2Event.h" |
| 29 |
|
#include "CalibCalEvent.h" |
| 30 |
#include "RunHeaderEvent.h" |
#include "RunHeaderEvent.h" |
| 31 |
#include "RunTrailerEvent.h" |
#include "RunTrailerEvent.h" |
| 32 |
#include "CalibHeaderEvent.h" |
#include "CalibHeaderEvent.h" |
| 38 |
#include "varDump/VarDumpEvent.h" |
#include "varDump/VarDumpEvent.h" |
| 39 |
#include "arrDump/ArrDumpEvent.h" |
#include "arrDump/ArrDumpEvent.h" |
| 40 |
#include "tabDump/TabDumpEvent.h" |
#include "tabDump/TabDumpEvent.h" |
|
#include "tsbt/TsbTEvent.h" |
|
|
#include "tsbb/TsbBEvent.h" |
|
| 41 |
#include "tmtc/TmtcEvent.h" |
#include "tmtc/TmtcEvent.h" |
| 42 |
#include "mcmd/McmdEvent.h" |
#include "mcmd/McmdEvent.h" |
| 43 |
#include "ForcedFECmdEvent.h" |
#include "ForcedFECmdEvent.h" |
| 50 |
#include "S4InitEvent.h" |
#include "S4InitEvent.h" |
| 51 |
#include "Ac2InitEvent.h" |
#include "Ac2InitEvent.h" |
| 52 |
#include "CalAlarmEvent.h" |
#include "CalAlarmEvent.h" |
| 53 |
#include "AcAlarmEvent.h" |
#include "Ac1AlarmEvent.h" |
| 54 |
#include "TrkAlarmEvent.h" |
#include "TrkAlarmEvent.h" |
| 55 |
#include "TrgAlarmEvent.h" |
#include "TrgAlarmEvent.h" |
| 56 |
#include "TofAlarmEvent.h" |
#include "TofAlarmEvent.h" |
| 57 |
#include "S4AlarmEvent.h" |
#include "S4AlarmEvent.h" |
| 58 |
|
#include "Ac2AlarmEvent.h" |
| 59 |
|
#include "tsbt/TsbTEvent.h" |
| 60 |
|
#include "tsbb/TsbBEvent.h" |
| 61 |
|
|
| 62 |
|
#include "physics/TrackerReader.h" |
| 63 |
|
#include "physics/AnticounterReader.h" |
| 64 |
|
#include "physics/CalorimeterReader.h" |
| 65 |
|
#include "physics/NeutronDetectorReader.h" |
| 66 |
|
#include "physics/S4Reader.h" |
| 67 |
|
#include "physics/TofReader.h" |
| 68 |
|
#include "physics/TriggerReader.h" |
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 73 |
|
|
| 74 |
|
|
| 75 |
|
#include "Ac2AlarmEvent.h" |
| 76 |
#include <fstream> |
#include <fstream> |
| 77 |
#include <log4cxx/logger.h> |
#include <log4cxx/logger.h> |
| 78 |
|
|
| 165 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 166 |
}; |
}; |
| 167 |
|
|
| 168 |
|
/********************************************** |
| 169 |
|
* Event reader algorithm for CalibTrkBoth events. |
| 170 |
|
**********************************************/ |
| 171 |
|
class CalibTrkBothReader: public TechmodelAlgorithm { |
| 172 |
|
private: |
| 173 |
|
/** The CalibTrkBoth event that is created in the reader. */ |
| 174 |
|
CalibTrkBothEvent* calibTrkBoth; |
| 175 |
|
public: |
| 176 |
|
CalibTrkBothReader(void); |
| 177 |
|
virtual void Init(PamelaRun *); |
| 178 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 179 |
|
virtual std::string GetVersionInfo(void) const; |
| 180 |
|
}; |
| 181 |
|
|
| 182 |
|
|
| 183 |
/********************************************** |
/********************************************** |
| 184 |
<<<<<<< ReaderAlgorithms.h |
<<<<<<< ReaderAlgorithms.h |
| 212 |
CalibTrk1Reader(void); |
CalibTrk1Reader(void); |
| 213 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 214 |
virtual void RunEvent(int, long int) throw (Exception); |
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[]); |
|
| 215 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 216 |
}; |
}; |
| 217 |
|
|
| 237 |
class CalibTofReader: public TechmodelAlgorithm { |
class CalibTofReader: public TechmodelAlgorithm { |
| 238 |
private: |
private: |
| 239 |
/** The CalibTof event that is created in the reader. */ |
/** The CalibTof event that is created in the reader. */ |
| 240 |
CalibTofEvent* CalibTof; |
CalibTofEvent* calibTof; |
| 241 |
public: |
public: |
| 242 |
CalibTofReader(void); |
CalibTofReader(void); |
| 243 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 333 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 334 |
}; |
}; |
| 335 |
|
|
| 336 |
|
/********************************************** |
| 337 |
|
* Event reader algorithm for CalibCal events. |
| 338 |
|
**********************************************/ |
| 339 |
|
class CalibCalReader: public TechmodelAlgorithm { |
| 340 |
|
private: |
| 341 |
|
/** The CalibCal event that is created in the reader. */ |
| 342 |
|
CalibCalEvent* calibCal; |
| 343 |
|
public: |
| 344 |
|
CalibCalReader(void); |
| 345 |
|
virtual void Init(PamelaRun *); |
| 346 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 347 |
|
virtual std::string GetVersionInfo(void) const; |
| 348 |
|
}; |
| 349 |
|
|
| 350 |
|
|
| 351 |
/********************************************** |
/********************************************** |
| 352 |
* Event reader algorithm for RunHeader events. |
* Event reader algorithm for RunHeader events. |
| 698 |
}; |
}; |
| 699 |
|
|
| 700 |
/********************************************** |
/********************************************** |
| 701 |
* Event reader algorithm for AcAlarm events. |
* Event reader algorithm for Ac1Alarm events. |
| 702 |
**********************************************/ |
**********************************************/ |
| 703 |
class AcAlarmReader: public TechmodelAlgorithm { |
class Ac1AlarmReader: public TechmodelAlgorithm { |
| 704 |
private: |
private: |
| 705 |
/** The AcAlarm event that is created in the reader. */ |
/** The Ac1Alarm event that is created in the reader. */ |
| 706 |
AcAlarmEvent* acAlarm; |
Ac1AlarmEvent* acAlarm; |
| 707 |
public: |
public: |
| 708 |
AcAlarmReader(void); |
Ac1AlarmReader(void); |
| 709 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 710 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 711 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 767 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 768 |
}; |
}; |
| 769 |
|
|
| 770 |
|
|
| 771 |
|
/********************************************** |
| 772 |
|
* Event reader algorithm for Ac2Alarm events. |
| 773 |
|
**********************************************/ |
| 774 |
|
class Ac2AlarmReader: public TechmodelAlgorithm { |
| 775 |
|
private: |
| 776 |
|
/** The Ac2Alarm event that is created in the reader. */ |
| 777 |
|
Ac2AlarmEvent* acAlarm; |
| 778 |
|
public: |
| 779 |
|
Ac2AlarmReader(void); |
| 780 |
|
virtual void Init(PamelaRun *); |
| 781 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 782 |
|
virtual std::string GetVersionInfo(void) const; |
| 783 |
|
}; |
| 784 |
|
|
| 785 |
/********************************************** |
/********************************************** |
| 786 |
* Event reader algorithm for TsbT events. |
* Event reader algorithm for TsbT events. |
| 787 |
**********************************************/ |
**********************************************/ |