1 |
kusanagi |
1.1 |
/** @file |
2 |
kusanagi |
1.2 |
* $Source: /home/cvsmanager/yoda/techmodel/PscuReader.cpp,v $ |
3 |
kusanagi |
5.0 |
* $Id: PscuReader.cpp,v 4.4 2005/05/28 10:44:11 kusanagi Exp $ |
4 |
kusanagi |
1.2 |
* $Author: kusanagi $ |
5 |
kusanagi |
1.1 |
* |
6 |
|
|
* Implementation of the OrbitalReader class. |
7 |
|
|
*/ |
8 |
|
|
|
9 |
|
|
#include <string> |
10 |
kusanagi |
1.2 |
#include <log4cxx/logger.h> |
11 |
kusanagi |
1.1 |
|
12 |
|
|
#include "ReaderAlgorithms.h" |
13 |
|
|
|
14 |
|
|
using namespace pamela; |
15 |
|
|
using namespace pamela::techmodel; |
16 |
|
|
|
17 |
kusanagi |
1.2 |
static LoggerPtr logger = Logger::getLogger(_T("pamela.techmodel.PscuReader")); |
18 |
kusanagi |
1.1 |
|
19 |
|
|
/** |
20 |
|
|
* Constructor. |
21 |
|
|
*/ |
22 |
|
|
PscuReader::PscuReader(void): |
23 |
|
|
TechmodelAlgorithm(PacketType::Pscu, "TechmodelPscuReader") { |
24 |
kusanagi |
1.2 |
logger->debug(_T("Constructor")); |
25 |
kusanagi |
1.1 |
Pscu = new PscuEvent(); |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
/** |
29 |
|
|
* Get a string with the version info of the algorithm. |
30 |
|
|
*/ |
31 |
|
|
std::string PscuReader::GetVersionInfo(void) const { |
32 |
|
|
return |
33 |
kusanagi |
5.0 |
"$Header: /home/cvsmanager/yoda/techmodel/PscuReader.cpp,v 4.4 2005/05/28 10:44:11 kusanagi Exp $\n"; |
34 |
kusanagi |
1.1 |
} |
35 |
|
|
|
36 |
|
|
/** |
37 |
|
|
* Initialize the algorithm with a special run. This will initialize the |
38 |
|
|
* event reader routines for all packet types. |
39 |
|
|
*/ |
40 |
|
|
void PscuReader::Init(PamelaRun *run) { |
41 |
|
|
SetInputStream(run); |
42 |
|
|
run->WriteSubPacket(this, &Pscu, Pscu->Class()); |
43 |
kusanagi |
1.2 |
logger->debug(_T("Initialize")); |
44 |
kusanagi |
1.1 |
} |
45 |
|
|
|
46 |
|
|
/** |
47 |
|
|
* Unpack the orbital event from an input file. |
48 |
|
|
*/ |
49 |
kusanagi |
2.1 |
void PscuReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ |
50 |
kusanagi |
1.1 |
// First step: unpack the event into the event class. |
51 |
|
|
} |