CMS 3D CMS Logo

EcalTBDaqSimpleFile.h

Go to the documentation of this file.
00001 #ifndef EcalTBDaqSimpleFile_H
00002 #define EcalTBDaqSimpleFile_H
00003 
00004 #include "IORawData/EcalTBInputService/src/EcalTBDaqFile.h"
00005 
00006 #include <string>
00007 #include <fstream>
00008 
00009 using namespace std;
00010 
00011 class EcalTBDaqSimpleFile : public EcalTBDaqFile  {
00012 
00013  public:
00014 
00016   EcalTBDaqSimpleFile(): filename_(), isBinary_(0), infile_() {};
00017 
00019   EcalTBDaqSimpleFile(const std::string& filename, const bool& isBinary);
00020 
00022   virtual ~EcalTBDaqSimpleFile() 
00023     {
00024       close();
00025     };
00026 
00027   //Check if the position in file is EOF
00028   virtual bool checkEndOfFile() ;
00029 
00030   //Seek in the file for the event 
00031   virtual bool getEventData(FedDataPair& data);
00032 
00033   virtual void close();
00034 
00035  protected:
00036 
00037   std::string filename_;
00038   bool isBinary_;
00039   ifstream infile_;
00040 
00041 };
00042 #endif

Generated on Tue Jun 9 17:39:24 2009 for CMSSW by  doxygen 1.5.4