/** @file * $Source: /home/cvspamela/yoda/techmodel/PscuReader.cpp,v $ * $Id: PscuReader.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $ * $Author: nagni $ * * Implementation of the OrbitalReader class. */ #include #include #include "ReaderAlgorithms.h" using namespace pamela; using namespace pamela::techmodel; static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.techmodel.PscuReader"); /** * Constructor. */ PscuReader::PscuReader(void): TechmodelAlgorithm(PacketType::Pscu, "TechmodelPscuReader") { cat.debug("Constructor"); Pscu = new PscuEvent(); } /** * Get a string with the version info of the algorithm. */ std::string PscuReader::GetVersionInfo(void) const { return "$Header: /home/cvspamela/yoda/techmodel/PscuReader.cpp,v 1.6 2004/03/16 10:18:28 nagni Exp $\n"; } /** * Initialize the algorithm with a special run. This will initialize the * event reader routines for all packet types. */ void PscuReader::Init(PamelaRun *run) { SetInputStream(run); run->WriteSubPacket(this, &Pscu, Pscu->Class()); } /** * Unpack the orbital event from an input file. */ void PscuReader::RunEvent(int EventNumber, long int length) { // First step: unpack the event into the event class. }