/** @file * $Source: /home/cvsmanager/yoda/techmodel/RunTrailerReader.cpp,v $ * $Id: RunTrailerReader.cpp,v 1.3 2004/09/21 20:24:33 kusanagi Exp $ * $Author: kusanagi $ * * Implementation of the RunHeader class. */ #define UINT unsigned int #define BYTE unsigned char #include #include extern "C" { #include #include "CRC.h" } #include #include "stdio.h" #include "ReaderAlgorithms.h" #include "event/RunTrailerEvent.h" using namespace pamela; using namespace pamela::techmodel; static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.RunTrailerReader")); /** * Constructor. */ RunTrailerReader::RunTrailerReader(void): TechmodelAlgorithm(PacketType::Log, "TechmodelRunTrailerReader") { logger->debug(_T("Constructor")); RunTrailer = new RunTrailerEvent(); } /** * Get a string with the version info of the algorithm. */ std::string RunTrailerReader::GetVersionInfo(void) const { return "$Header: /home/cvsmanager/yoda/techmodel/RunTrailerReader.cpp,v 1.3 2004/09/21 20:24:33 kusanagi Exp $\n"; } /** * Initialize the algorithm with a special run. This will initialize the * event reader routines for all packet types. */ void RunTrailerReader::Init(PamelaRun *run) { SetInputStream(run); run->WriteSubPacket(this, &RunTrailer, RunTrailer->Class()); logger->debug(_T("Initialize")); } /** * Unpack the RunTrailer event from an input file. */ void RunTrailerReader::RunEvent(int EventNumber, long int length) { }