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
DTROS25FileReader::runNumber
edm::RunNumber_t runNumber
Definition: DTROS25FileReader.h:52
DTROS25FileReader::produce
void produce(edm::Event &, edm::EventSetup const &) override
Definition: DTROS25FileReader.cc:119
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
DTROS25FileReader::isHeader
bool isHeader(uint32_t word)
check for a 32 bits word to be a ROS25 header
Definition: DTROS25FileReader.cc:135
EDProducer.h
DTROS25FileReader::eventNumber
edm::EventNumber_t eventNumber
Definition: DTROS25FileReader.h:53
DTROS25FileReader::rosWordLenght
static const int rosWordLenght
Definition: DTROS25FileReader.h:55
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
DTROS25FileReader::isTrailer
bool isTrailer(uint32_t word)
check for a 32 bits word to be a ROS25 trailer
Definition: DTROS25FileReader.cc:145
DTROS25FileReader::inputFile
RawFile inputFile
Definition: DTROS25FileReader.h:50
DTROS25FileReader::checkEndOfFile
virtual bool checkEndOfFile()
Definition: DTROS25FileReader.cc:154
RawFile.h
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
EventID.h
DTROS25FileReader::DTROS25FileReader
DTROS25FileReader(const edm::ParameterSet &pset)
Constructor.
Definition: DTROS25FileReader.cc:31
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DTROS25FileReader::fillRawData
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
Generate and fill FED raw data for a full event.
Definition: DTROS25FileReader.cc:43
FEDRawDataCollection.h
edm::EventSetup
Definition: EventSetup.h:58
DTROS25FileReader::~DTROS25FileReader
~DTROS25FileReader() override
Destructor.
Definition: DTROS25FileReader.cc:41
DTROS25FileReader::swap
void swap(uint32_t &word)
swapping the lsBits with the msBits
Definition: DTROS25FileReader.cc:127
EventSetup.h
edm::EDProducer
Definition: EDProducer.h:35
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DTROS25FileReader
Definition: DTROS25FileReader.h:23
edm::Event
Definition: Event.h:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
RawFile
Definition: RawFile.h:14
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37