/** @file * $Source: /home/cvsmanager/yoda/techmodel/RunHeaderReader.cpp,v $ * $Id: RunHeaderReader.cpp,v 1.2 2004/07/17 20:03:38 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/RunHeaderEvent.h" using namespace pamela; using namespace pamela::techmodel; static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.RunHeaderReader")); /** * Constructor. */ RunHeaderReader::RunHeaderReader(void): TechmodelAlgorithm(PacketType::Log, "TechmodelRunHeaderReader") { logger->debug(_T("Constructor")); RunHeader = new RunHeaderEvent(); } /** * Get a string with the version info of the algorithm. */ std::string RunHeaderReader::GetVersionInfo(void) const { return "$Header: /home/cvsmanager/yoda/techmodel/RunHeaderReader.cpp,v 1.2 2004/07/17 20:03:38 kusanagi 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()); logger->debug(_T("Initialize")); } /** * Unpack the RunHeader event from an input file. */ void RunHeaderReader::RunEvent(int EventNumber, long int length) { }