CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/IORawData/DTCommissioning/src/DTROS8FileReader.h

Go to the documentation of this file.
00001 #ifndef DaqSource_DTROS8FileReader_h
00002 #define DaqSource_DTROS8FileReader_h
00003 
00012 #include <IORawData/DaqSource/interface/DaqBaseReader.h>
00013 #include <IORawData/DTCommissioning/src/RawFile.h>
00014 #include "DataFormats/Provenance/interface/EventID.h"
00015 
00016 #include <fstream>
00017 
00018 class DTROS8FileReader : public DaqBaseReader {
00019  public:
00021   DTROS8FileReader(const edm::ParameterSet& pset);
00022 
00024   virtual ~DTROS8FileReader();
00025 
00027   virtual int fillRawData(edm::EventID& eID,
00028                           edm::Timestamp& tstamp, 
00029                           FEDRawDataCollection*& data);
00030 
00031   virtual bool checkEndOfFile();
00032 
00033  private:
00034 
00035   RawFile inputFile;
00036 
00037   edm::RunNumber_t runNum;
00038   edm::EventNumber_t eventNum;
00039 
00040   static const int ros8WordLenght = 4;
00041 
00042 };
00043 #endif
00044