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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.23