1 |
/** @file |
/** @file |
2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
3 |
* $Date: 2005/05/28 10:44:11 $ |
* $Date: 2006/02/15 15:47:14 $ |
4 |
* $Revision: 4.4 $ |
* $Revision: 6.1 $ |
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 |
*/ |
*/ |
39 |
#include "InitHeaderEvent.h" |
#include "InitHeaderEvent.h" |
40 |
#include "InitTrailerEvent.h" |
#include "InitTrailerEvent.h" |
41 |
#include "EventTrkEvent.h" |
#include "EventTrkEvent.h" |
|
#include "TestTrkEvent.h" |
|
|
#include "TestTofEvent.h" |
|
42 |
#include "log/LogEvent.h" |
#include "log/LogEvent.h" |
43 |
#include "varDump/VarDumpEvent.h" |
#include "varDump/VarDumpEvent.h" |
44 |
#include "arrDump/ArrDumpEvent.h" |
#include "arrDump/ArrDumpEvent.h" |
62 |
#include "TrgAlarmEvent.h" |
#include "TrgAlarmEvent.h" |
63 |
#include "TofAlarmEvent.h" |
#include "TofAlarmEvent.h" |
64 |
#include "S4AlarmEvent.h" |
#include "S4AlarmEvent.h" |
65 |
|
#include <fstream> |
66 |
|
#include <log4cxx/logger.h> |
67 |
|
|
68 |
|
extern "C" { |
69 |
|
#include "CRC.h" |
70 |
|
} |
71 |
|
|
72 |
using namespace std; |
using namespace std; |
73 |
|
|
74 |
namespace pamela { |
namespace pamela { |
75 |
namespace techmodel { |
namespace techmodel { |
76 |
|
|
77 |
/********************************************** |
/** |
78 |
* Event reader algorithm for PhysEndRun events. |
Event reader algorithm for PhysEndRun events. |
79 |
**********************************************/ |
* |
80 |
|
*/ |
81 |
class PhysEndRunReader: public TechmodelAlgorithm { |
class PhysEndRunReader: public TechmodelAlgorithm { |
82 |
private: |
private: |
83 |
/** The PhysEndRun event that is created in the reader. */ |
/** The PhysEndRun event that is created in the reader. */ |
84 |
PhysEndRunEvent* physEndRun; |
PhysEndRunEvent* physEndRun; |
85 |
public: |
public: |
86 |
|
/** |
87 |
|
* Constructor |
88 |
|
* @param |
89 |
|
* @return |
90 |
|
*/ |
91 |
PhysEndRunReader(void); |
PhysEndRunReader(void); |
92 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
93 |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
156 |
|
|
157 |
|
|
158 |
/********************************************** |
/********************************************** |
159 |
|
<<<<<<< ReaderAlgorithms.h |
160 |
|
* Event reader algorithm for CalibTrkBoth events. |
161 |
|
**********************************************/ |
162 |
|
/* class CalibTrkBothReader: public TechmodelAlgorithm { |
163 |
|
private: |
164 |
|
// The CalibTrkBoth event that is created in the reader. |
165 |
|
CalibTrkBothEvent* calibTrkBoth; |
166 |
|
public: |
167 |
|
CalibTrkBothReader(void); |
168 |
|
virtual void Init(PamelaRun *); |
169 |
|
virtual void RunEvent(int, long int) throw (Exception); |
170 |
|
//this type of RUNEvent should be the future develop. |
171 |
|
//Pass the buffer not the pointer to file |
172 |
|
//virtual void RunEvent(int, long int, char[]); |
173 |
|
virtual std::string GetVersionInfo(void) const; |
174 |
|
}; |
175 |
|
*/ |
176 |
|
|
177 |
|
/********************************************** |
178 |
|
======= |
179 |
|
>>>>>>> 6.1 |
180 |
* Event reader algorithm for CalibTrk1 events. |
* Event reader algorithm for CalibTrk1 events. |
181 |
**********************************************/ |
**********************************************/ |
182 |
class CalibTrk1Reader: public TechmodelAlgorithm { |
class CalibTrk1Reader: public TechmodelAlgorithm { |
418 |
|
|
419 |
|
|
420 |
/********************************************** |
/********************************************** |
|
* Event reader algorithm for TestTrk events. |
|
|
**********************************************/ |
|
|
class TestTrkReader: public TechmodelAlgorithm { |
|
|
private: |
|
|
/** The TestTrk event that is created in the reader. */ |
|
|
TestTrkEvent* testTrk; |
|
|
public: |
|
|
TestTrkReader(void); |
|
|
virtual void Init(PamelaRun *); |
|
|
virtual void RunEvent(int, long int) throw (Exception); |
|
|
virtual std::string GetVersionInfo(void) const; |
|
|
}; |
|
|
|
|
|
/********************************************** |
|
|
* Event reader algorithm for TestTof events. |
|
|
**********************************************/ |
|
|
class TestTofReader: public TechmodelAlgorithm { |
|
|
private: |
|
|
/** The TestTof event that is created in the reader. */ |
|
|
TestTofEvent* testTof; |
|
|
public: |
|
|
TestTofReader(void); |
|
|
virtual void Init(PamelaRun *); |
|
|
virtual void RunEvent(int, long int) throw (Exception); |
|
|
virtual std::string GetVersionInfo(void) const; |
|
|
}; |
|
|
|
|
|
/********************************************** |
|
421 |
* Event reader algorithm for Log events. |
* Event reader algorithm for Log events. |
422 |
**********************************************/ |
**********************************************/ |
423 |
class LogReader: public TechmodelAlgorithm { |
class LogReader: public TechmodelAlgorithm { |