/[PAMELA software]/yoda/techmodel/PscuReader.cpp
ViewVC logotype

Contents of /yoda/techmodel/PscuReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.0 - (show annotations) (download)
Sun Mar 6 04:33:02 2005 UTC (19 years, 8 months ago) by kusanagi
Branch: MAIN
CVS Tags: yodaPreTermistors2_1/00, YODA4_1/00, YODA4_0/04, YODA4_0/03, YODA4_0/02, YODA4_0/01, YODA4_3/02, YODA4_3/00, YODA4_3/01, YODA4_2/01, YODA4_2/00, YODA4_2/03, yodaPreTermistores2_0/00
Branch point for: PreThermistores2
Changes since 3.0: +2 -2 lines
Stable version 4.0 - 6 March 2005 - Maurizio Nagni

1 /** @file
2 * $Source: /home/cvsmanager/yoda/techmodel/PscuReader.cpp,v $
3 * $Id: PscuReader.cpp,v 3.0 2005/03/04 15:54:11 kusanagi Exp $
4 * $Author: kusanagi $
5 *
6 * Implementation of the OrbitalReader class.
7 */
8
9 #include <string>
10 #include <log4cxx/logger.h>
11
12 #include "ReaderAlgorithms.h"
13
14 using namespace pamela;
15 using namespace pamela::techmodel;
16
17 static LoggerPtr logger = Logger::getLogger(_T("pamela.techmodel.PscuReader"));
18
19 /**
20 * Constructor.
21 */
22 PscuReader::PscuReader(void):
23 TechmodelAlgorithm(PacketType::Pscu, "TechmodelPscuReader") {
24 logger->debug(_T("Constructor"));
25 Pscu = new PscuEvent();
26 }
27
28 /**
29 * Get a string with the version info of the algorithm.
30 */
31 std::string PscuReader::GetVersionInfo(void) const {
32 return
33 "$Header: /home/cvsmanager/yoda/techmodel/PscuReader.cpp,v 3.0 2005/03/04 15:54:11 kusanagi Exp $\n";
34 }
35
36 /**
37 * Initialize the algorithm with a special run. This will initialize the
38 * event reader routines for all packet types.
39 */
40 void PscuReader::Init(PamelaRun *run) {
41 SetInputStream(run);
42 run->WriteSubPacket(this, &Pscu, Pscu->Class());
43 logger->debug(_T("Initialize"));
44 }
45
46 /**
47 * Unpack the orbital event from an input file.
48 */
49 void PscuReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){
50 // First step: unpack the event into the event class.
51 }

  ViewVC Help
Powered by ViewVC 1.1.23