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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Sep 23 07:20:23 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
Error occurred while calculating annotation data.
Imported sources, 23/09/2008

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

  ViewVC Help
Powered by ViewVC 1.1.23