--- yoda/techmodel/EventReader.h 2005/01/11 14:59:31 2.3 +++ yoda/techmodel/EventReader.h 2006/08/16 13:15:23 6.2 @@ -1,14 +1,13 @@ /** @file * $Author: kusanagi $ - * $Date: 2004/12/22 11:38:35 $ - * $Revision: 2.2 $ + * $Date: 2006/04/05 07:30:54 $ + * $Revision: 6.1 $ * * Header file for the algorithms used to read the techmodel data file. */ #include "TechmodelPamelaRun.h" #include "TechmodelAlgorithm.h" -#include "Exception.h" namespace pamela { namespace techmodel { @@ -35,7 +34,8 @@ * The Run that is processed. */ TechmodelPamelaRun *Run; //! - void UnpackPscuHeader(void) throw (WrongCRCHeaderException, LengthException); + void UnpackPscuHeader(void) throw (WrongCRCHeaderException, LengthException, BackwardCounterException); + void UnpackPscuHeader(unsigned char*) throw (WrongCRCHeaderException, LengthException, BackwardCounterException); void UnpackPscuTrailer(void) throw (std::exception); /** @@ -52,13 +52,15 @@ static unsigned int prevPckCounter; static unsigned int prevPckOBT; std::stringstream oss; + ofstream corruptedPacketFile; public: //EventReader(void); EventReader(int); virtual void Init(PamelaRun *); virtual void RunEvent(int); virtual std::string GetVersionInfo(void) const; - virtual bool FindStart(void) throw (std::exception); + virtual bool FindStart(unsigned char*, long) throw (std::exception); + int archiveCorruptedPacket(long int, long int); ClassDef(EventReader, 1) }; }