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

Contents of /yoda/techmodel/PscuReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jul 6 12:20:23 2004 UTC (20 years, 5 months ago) by kusanagi
Branch: MAIN
Initial revision

1 /** @file
2 * $Source: /home/cvspamela/yoda/techmodel/PscuReader.cpp,v $
3 * $Id: PscuReader.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $
4 * $Author: nagni $
5 *
6 * Implementation of the OrbitalReader class.
7 */
8
9 #include <string>
10 #include <log4cpp/Category.hh>
11
12 #include "ReaderAlgorithms.h"
13
14 using namespace pamela;
15 using namespace pamela::techmodel;
16
17 static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.techmodel.PscuReader");
18
19 /**
20 * Constructor.
21 */
22 PscuReader::PscuReader(void):
23 TechmodelAlgorithm(PacketType::Pscu, "TechmodelPscuReader") {
24 cat.debug("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/cvspamela/yoda/techmodel/PscuReader.cpp,v 1.6 2004/03/16 10:18:28 nagni 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 }
44
45 /**
46 * Unpack the orbital event from an input file.
47 */
48 void PscuReader::RunEvent(int EventNumber, long int length) {
49 // First step: unpack the event into the event class.
50 }

  ViewVC Help
Powered by ViewVC 1.1.23