1 |
/** @file |
/** @file |
2 |
* $Author: kusanagi $ |
* $Author: pam-rm2 $ |
3 |
* $Date: 2005/03/06 04:33:02 $ |
* $Date: 2006/08/23 14:39:44 $ |
4 |
* $Revision: 4.0 $ |
* $Revision: 6.3 $ |
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 |
*/ |
*/ |
8 |
|
|
9 |
#include "TechmodelPamelaRun.h" |
#include "TechmodelPamelaRun.h" |
10 |
#include "TechmodelAlgorithm.h" |
#include "TechmodelAlgorithm.h" |
|
#include "Exception.h" |
|
11 |
|
|
12 |
namespace pamela { |
namespace pamela { |
13 |
namespace techmodel { |
namespace techmodel { |
34 |
* The Run that is processed. |
* The Run that is processed. |
35 |
*/ |
*/ |
36 |
TechmodelPamelaRun *Run; //! |
TechmodelPamelaRun *Run; //! |
37 |
void UnpackPscuHeader(void) throw (WrongCRCHeaderException, LengthException); |
void UnpackPscuHeader(void) throw (WrongCRCHeaderException, LengthException, BackwardCounterException); |
38 |
void UnpackPscuTrailer(void) throw (std::exception); |
void UnpackPscuTrailer(void) throw (std::exception); |
39 |
|
|
40 |
/** |
/** |
51 |
static unsigned int prevPckCounter; |
static unsigned int prevPckCounter; |
52 |
static unsigned int prevPckOBT; |
static unsigned int prevPckOBT; |
53 |
std::stringstream oss; |
std::stringstream oss; |
54 |
|
ofstream corruptedPacketFile; |
55 |
|
unsigned int fPL; |
56 |
|
bool jgood; |
57 |
|
bool notfirst; |
58 |
|
|
59 |
public: |
public: |
60 |
//EventReader(void); |
//EventReader(void); |
61 |
EventReader(int); |
EventReader(int); |
63 |
virtual void RunEvent(int); |
virtual void RunEvent(int); |
64 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
65 |
virtual bool FindStart(void) throw (std::exception); |
virtual bool FindStart(void) throw (std::exception); |
66 |
|
int archiveCorruptedPacket(long int, long int); |
67 |
ClassDef(EventReader, 1) |
ClassDef(EventReader, 1) |
68 |
}; |
}; |
69 |
} |
} |