/** @file * $Source: /home/cvspamela/yoda/techmodel/RunTrailerReader.cpp,v $ * $Id: RunTrailerReader.cpp,v 1.1 2004/06/09 23:18:20 nagni Exp $ * $Author: nagni $ * * 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/RunHeaderEvent.h" using namespace pamela; using namespace pamela::techmodel; static log4cpp::Category& cat = log4cpp::Category::getInstance("pamela.techmodel.RunHeaderReader"); /** * Constructor. */ RunHeaderReader::RunHeaderReader(void): TechmodelAlgorithm(PacketType::Log, "TechmodelRunHeaderReader") { cat << log4cpp::Priority::DEBUG << "Constructor " << "\n " << log4cpp::CategoryStream::ENDLINE; RunHeader = new RunHeaderEvent(); } /** * Get a string with the version info of the algorithm. */ std::string RunHeaderReader::GetVersionInfo(void) const { return "$Header: /home/cvspamela/yoda/techmodel/RunTrailerReader.cpp,v 1.1 2004/06/09 23:18:20 nagni Exp $\n"; } /** * Initialize the algorithm with a special run. This will initialize the * event reader routines for all packet types. */ void RunHeaderReader::Init(PamelaRun *run) { SetInputStream(run); run->WriteSubPacket(this, &RunHeader, RunHeader->Class()); } /** * Unpack the RunHeader event from an input file. */ void RunHeaderReader::RunEvent(int EventNumber, long int length) { }