--- yoda/techmodel/EventReader.h 2006/02/04 12:37:45 5.1 +++ yoda/techmodel/EventReader.h 2006/08/16 13:15:23 6.2 @@ -1,7 +1,7 @@ /** @file - * $Author: Maurizio Nagni $ - * $Date: 2005/08/29 09:46:13 $ - * $Revision: 5.0 $ + * $Author: kusanagi $ + * $Date: 2006/04/05 07:30:54 $ + * $Revision: 6.1 $ * * Header file for the algorithms used to read the techmodel data file. */ @@ -35,6 +35,7 @@ */ TechmodelPamelaRun *Run; //! void UnpackPscuHeader(void) throw (WrongCRCHeaderException, LengthException, BackwardCounterException); + void UnpackPscuHeader(unsigned char*) throw (WrongCRCHeaderException, LengthException, BackwardCounterException); void UnpackPscuTrailer(void) throw (std::exception); /** @@ -51,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) }; }