1 |
/** @file |
2 |
* $Author: mocchiut $ |
3 |
* $Date: 2008/09/23 07:20:26 $ |
4 |
* $Revision: 1.1.1.1 $ |
5 |
* |
6 |
* Implementation of the Ac1AlarmReader class. |
7 |
*/ |
8 |
|
9 |
#include "ReaderAlgorithms.h" |
10 |
|
11 |
using namespace pamela::techmodel; |
12 |
|
13 |
|
14 |
/** |
15 |
* Constructor. |
16 |
*/ |
17 |
Ac1AlarmReader::Ac1AlarmReader(void): |
18 |
TechmodelAlgorithm(PacketType::Ac1Alarm, "TechmodelAc1AlarmReader") { |
19 |
acAlarm = new Ac1AlarmEvent(); |
20 |
} |
21 |
|
22 |
/** |
23 |
* Get a string with the version info of the algorithm. |
24 |
*/ |
25 |
std::string Ac1AlarmReader::GetVersionInfo(void) const { |
26 |
return |
27 |
"$Trailer: /home/cvsmanager/yoda/techmodel/ac1AlarmReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 Maurizio Nagni Exp $\n"; |
28 |
} |
29 |
|
30 |
/** |
31 |
* Initialize the algorithm with a special run. This will initialize the |
32 |
* event reader routines for all packet types. |
33 |
*/ |
34 |
void Ac1AlarmReader::Init(PamelaRun *run) { |
35 |
run->WriteSubPacket(this, &acAlarm, acAlarm->Class()); |
36 |
} |
37 |
|
38 |
/** |
39 |
* Unpack the Ac1Alarm event |
40 |
*/ |
41 |
void Ac1AlarmReader::PKT_RunEvent(char* subData, long int dataLength) throw (WrongCRCException){ |
42 |
acAlarm->ac1AlarmData = new TArrayC(dataLength, subData); |
43 |
} |