CMS 3D CMS Logo

DTROS25FileReader.h
Go to the documentation of this file.
1 #ifndef DaqSource_DTROS25FileReader_h
2 #define DaqSource_DTROS25FileReader_h
3 
18 
19 #include <ostream>
20 #include <fstream>
21 #include <boost/cstdint.hpp>
22 
24  public:
27 
29  virtual ~DTROS25FileReader();
30 
32  virtual int fillRawData(edm::Event& e,
33 // edm::Timestamp& tstamp,
35 
36  virtual void produce(edm::Event&, edm::EventSetup const&);
37 
39  bool isHeader(uint32_t word);
40 
42  bool isTrailer(uint32_t word);
43 
45  void swap(uint32_t & word);
46 
47 
48  virtual bool checkEndOfFile();
49 
50  private:
51 
52 
54 
57 
58  static const int rosWordLenght = 4;
59 
60 };
61 #endif
62 
63 
64 
edm::RunNumber_t runNumber
edm::EventNumber_t eventNumber
static const int rosWordLenght
unsigned long long EventNumber_t
virtual void produce(edm::Event &, edm::EventSetup const &)
bool isTrailer(uint32_t word)
check for a 32 bits word to be a ROS25 trailer
virtual bool checkEndOfFile()
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
Generate and fill FED raw data for a full event.
virtual ~DTROS25FileReader()
Destructor.
DTROS25FileReader(const edm::ParameterSet &pset)
Constructor.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void swap(uint32_t &word)
swapping the lsBits with the msBits
unsigned int RunNumber_t
bool isHeader(uint32_t word)
check for a 32 bits word to be a ROS25 header