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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Sep 23 07:20:28 2008 UTC (16 years, 2 months ago) by mocchiut
Branch: v0r00, MAIN
CVS Tags: v1r02, v1r00, v1r01, start, v10RED, v9r00, v9r01, HEAD
Changes since 1.1: +0 -0 lines
Imported sources, 23/09/2008

1 /** @file
2 * $Author: messineo $
3 * $Date: 2008-03-04 18:09:30 $
4 * $Revision: 1.4 $
5 *
6 * Implementation of the TrgInitReader class.
7 */
8
9 #include "ReaderAlgorithms.h"
10
11 using namespace pamela::techmodel;
12
13 /**
14 * Constructor.
15 */
16 TrgInitReader::TrgInitReader(void):
17 TechmodelAlgorithm(PacketType::TrgInit, "TechmodelTrgInitReader") {
18 trgInit = new TrgInitEvent();
19 }
20
21 /**
22 * Get a string with the version info of the algorithm.
23 */
24 std::string TrgInitReader::GetVersionInfo(void) const {
25 return
26 "$Trailer: /home/cvsmanager/yoda/techmodel/TrgInitReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 Maurizio Nagni Exp $\n";
27 }
28
29 /**
30 * Initialize the algorithm with a special run. This will initialize the
31 * event reader routines for all packet types.
32 */
33 void TrgInitReader::Init(PamelaRun *run) {
34 run->WriteSubPacket(this, &trgInit, trgInit->Class());
35 }
36
37 /**
38 * Unpack the TrgInit event from an input file.
39 * The CPU does not add any CRC control at the packet end.
40 * @param EventNumber
41 * @param dataLength
42 */
43 void TrgInitReader::PKT_RunEvent(char* subData, long int dataLength) throw (WrongCRCException){
44 trgInit->trgInitData = new TArrayC(dataLength, subData);
45 }

  ViewVC Help
Powered by ViewVC 1.1.23