CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTROS25FileReader.h
Go to the documentation of this file.
1 #ifndef DaqSource_DTROS25FileReader_h
2 #define DaqSource_DTROS25FileReader_h
3 
15 
16 #include <ostream>
17 #include <fstream>
18 #include <boost/cstdint.hpp>
19 
21  public:
24 
26  virtual ~DTROS25FileReader();
27 
29  virtual int fillRawData(edm::EventID& eID,
30  edm::Timestamp& tstamp,
32 
33 
35  bool isHeader(uint32_t word);
36 
38  bool isTrailer(uint32_t word);
39 
41  void swap(uint32_t & word);
42 
43 
44  virtual bool checkEndOfFile();
45 
46  private:
47 
48 
50 
53 
54  static const int rosWordLenght = 4;
55 
56 };
57 #endif
58 
59 
60 
unsigned int EventNumber_t
Definition: EventID.h:30
edm::RunNumber_t runNumber
edm::EventNumber_t eventNumber
static const int rosWordLenght
bool isTrailer(uint32_t word)
check for a 32 bits word to be a ROS25 trailer
virtual bool checkEndOfFile()
virtual ~DTROS25FileReader()
Destructor.
DTROS25FileReader(const edm::ParameterSet &pset)
Constructor.
virtual int fillRawData(edm::EventID &eID, edm::Timestamp &tstamp, FEDRawDataCollection *&data)
Generate and fill FED raw data for a full event.
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
Definition: EventRange.h:32
bool isHeader(uint32_t word)
check for a 32 bits word to be a ROS25 header