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 <cstdint>
22 
24 public:
27 
29  ~DTROS25FileReader() override;
30 
32  virtual int fillRawData(edm::Event& e,
33  // edm::Timestamp& tstamp,
35 
36  void produce(edm::Event&, edm::EventSetup const&) override;
37 
39  bool isHeader(uint32_t word);
40 
42  bool isTrailer(uint32_t word);
43 
45  void swap(uint32_t& word);
46 
47  virtual bool checkEndOfFile();
48 
49 private:
51 
54 
55  static const int rosWordLenght = 4;
56 };
57 #endif
edm::RunNumber_t runNumber
edm::EventNumber_t eventNumber
static const int rosWordLenght
void produce(edm::Event &, edm::EventSetup const &) override
unsigned long long EventNumber_t
bool isTrailer(uint32_t word)
check for a 32 bits word to be a ROS25 trailer
virtual bool checkEndOfFile()
uint64_t word
~DTROS25FileReader() override
Destructor.
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
Generate and fill FED raw data for a full event.
DTROS25FileReader(const edm::ParameterSet &pset)
Constructor.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
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