/[PAMELA software]/chewbacca/PamOffLineSW/techmodel/TofAlarmReader.cpp
ViewVC logotype

Contents of /chewbacca/PamOffLineSW/techmodel/TofAlarmReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jul 24 13:53:46 2009 UTC (15 years, 4 months ago) by mocchiut
Branch: MAIN
CVS Tags: v10RED, v9r00, v9r01, HEAD
Changes since 1.1: +4 -4 lines
Runtime error with ROOT 5.24 fixed, many small changes and warnings fixing

1 /** @file
2 * $Author: mocchiut $
3 * $Date: 2008/09/23 07:20:26 $
4 * $Revision: 1.1.1.1 $
5 *
6 * Implementation of the TofAlarmReader class.
7 */
8
9 #include "ReaderAlgorithms.h"
10
11 using namespace pamela::techmodel;
12
13
14 /**
15 * Constructor.
16 */
17 TofAlarmReader::TofAlarmReader(void):
18 TechmodelAlgorithm(PacketType::TofAlarm, "TechmodelTofAlarmReader") {
19 tofAlarm = new TofAlarmEvent();
20 }
21
22 /**
23 * Get a string with the version info of the algorithm.
24 */
25 std::string TofAlarmReader::GetVersionInfo(void) const {
26 return
27 "$Trailer: /home/cvsmanager/yoda/techmodel/TofAlarmReader.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 TofAlarmReader::Init(PamelaRun *run) {
35 run->WriteSubPacket(this, &tofAlarm, tofAlarm->Class());
36 }
37
38 /**
39 * Unpack the TofAlarm event
40 * The CPU does not add any CRC control at the packet end.
41 * @param EventNumber
42 * @param dataLength
43 */
44 void TofAlarmReader::PKT_RunEvent(char* subData, long int dataLength) throw (WrongCRCException){
45 tofAlarm->tofAlarmData = new TArrayC(dataLength, subData);
46 }

  ViewVC Help
Powered by ViewVC 1.1.23