--- yoda/techmodel/EventReader.h 2004/09/21 20:50:54 2.0 +++ yoda/techmodel/EventReader.h 2006/08/23 14:39:44 6.3 @@ -1,7 +1,7 @@ /** @file * $Author: kusanagi $ - * $Date: 2004/09/21 20:24:33 $ - * $Revision: 1.3 $ + * $Date: 2006/04/05 07:30:54 $ + * $Revision: 6.1 $ * * Header file for the algorithms used to read the techmodel data file. */ @@ -34,7 +34,7 @@ * The Run that is processed. */ TechmodelPamelaRun *Run; //! - int UnpackPscuHeader(void) throw (std::exception); + void UnpackPscuHeader(void) throw (WrongCRCHeaderException, LengthException, BackwardCounterException); void UnpackPscuTrailer(void) throw (std::exception); /** @@ -50,13 +50,16 @@ */ static unsigned int prevPckCounter; static unsigned int prevPckOBT; - public: + 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 int FindStart(void) throw (std::exception); + virtual bool FindStart(void) throw (std::exception); + int archiveCorruptedPacket(long int, long int); ClassDef(EventReader, 1) }; }