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

Annotation of /chewbacca/PamOffLineSW/techmodel/NdInitReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Sep 23 07:20:25 2008 UTC (16 years, 2 months ago) by mocchiut
Branch point for: v0r00, MAIN
Initial revision

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

  ViewVC Help
Powered by ViewVC 1.1.23