| 1 |
/** @file |
/** @file |
| 2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 3 |
* $Date: 2004/12/16 17:32:57 $ |
* $Date: 2004/12/17 14:00:53 $ |
| 4 |
* $Revision: 2.4 $ |
* $Revision: 2.6 $ |
| 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 *); |
| 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 = 33; |
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 |