1 |
/** @file |
/** @file |
2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
3 |
* $Date: 2004/12/09 08:48:41 $ |
* $Date: 2005/01/29 00:26:55 $ |
4 |
* $Revision: 2.3 $ |
* $Revision: 2.7 $ |
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 |
*/ |
*/ |
21 |
#include "physics/CalorimeterReader.h" |
#include "physics/CalorimeterReader.h" |
22 |
#include "physics/NeutronDetectorReader.h" |
#include "physics/NeutronDetectorReader.h" |
23 |
#include "physics/S4Reader.h" |
#include "physics/S4Reader.h" |
24 |
|
#include "physics/TofReader.h" |
25 |
|
#include "physics/TriggerReader.h" |
26 |
#include "CalibTrkBothEvent.h" |
#include "CalibTrkBothEvent.h" |
27 |
#include "CalibTrk1Event.h" |
#include "CalibTrk1Event.h" |
28 |
#include "CalibTrk2Event.h" |
#include "CalibTrk2Event.h" |
135 |
calorimeter::CalorimeterReader* calorimeterReader; |
calorimeter::CalorimeterReader* calorimeterReader; |
136 |
neutron::NeutronDetectorReader* neutronReader; |
neutron::NeutronDetectorReader* neutronReader; |
137 |
S4::S4Reader* s4Reader; |
S4::S4Reader* s4Reader; |
138 |
|
tof::TofReader* tofReader; |
139 |
|
trigger::TriggerReader* triggerReader; |
140 |
public: |
public: |
141 |
PhysicsReader(void); |
PhysicsReader(void); |
142 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
236 |
public: |
public: |
237 |
CalibS4Reader(void); |
CalibS4Reader(void); |
238 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
239 |
virtual void RunEvent(int, long int) throw (Exception); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
240 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
241 |
}; |
}; |
242 |
|
|
512 |
**********************************************/ |
**********************************************/ |
513 |
class TmtcReader: public TechmodelAlgorithm { |
class TmtcReader: public TechmodelAlgorithm { |
514 |
//Length in bytes of the subPacket (that is te TmtcRecord excluded subCRC) |
//Length in bytes of the subPacket (that is te TmtcRecord excluded subCRC) |
515 |
static const int TMTC_SUB_LENGTH = 57; |
static const int TMTC_SUB_LENGTH = 36; |
516 |
//Length in bytes of the subPacketCRC |
//Length in bytes of the subPacketCRC |
517 |
static const int TMTC_SUBCRC_LENGTH = 1; |
static const int TMTC_SUBCRC_LENGTH = 1; |
518 |
//Length in bytes of the PacketCRC |
//Length in bytes of the PacketCRC |
520 |
private: |
private: |
521 |
/** The TMTC event that is created in the reader. */ |
/** The TMTC event that is created in the reader. */ |
522 |
TmtcEvent* Tmtc; |
TmtcEvent* Tmtc; |
523 |
float convert_th(int); |
//float convert_th(int); |
524 |
public: |
public: |
525 |
TmtcReader(void); |
TmtcReader(void); |
526 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |