IORawData
DTCommissioning
plugins
DTNewROS8FileReader.h
Go to the documentation of this file.
1
#ifndef DaqSource_DTNewROS8FileReader_h
2
#define DaqSource_DTNewROS8FileReader_h
3
11
#include "
FWCore/Framework/interface/EDProducer.h
"
12
#include <
IORawData/DTCommissioning/plugins/RawFile.h
>
13
#include "
FWCore/Framework/interface/Event.h
"
14
#include "
FWCore/Framework/interface/EventSetup.h
"
15
#include "
DataFormats/Provenance/interface/EventID.h
"
16
#include "
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
"
17
#include <fstream>
18
19
class
DTNewROS8FileReader
:
public
edm::EDProducer
{
20
public
:
22
DTNewROS8FileReader
(
const
edm::ParameterSet
&
pset
);
23
25
~DTNewROS8FileReader
()
override
;
26
28
virtual
int
fillRawData
(
edm::Event
&
e
,
29
// edm::Timestamp& tstamp,
30
FEDRawDataCollection
*&
data
);
31
32
void
produce
(
edm::Event
&,
edm::EventSetup
const
&)
override
;
33
34
virtual
bool
checkEndOfFile
();
35
36
private
:
37
RawFile
inputFile
;
38
39
edm::RunNumber_t
runNumber
;
40
edm::EventNumber_t
eventNum
;
41
42
static
const
int
ros8WordLenght
= 4;
43
};
44
#endif
DTNewROS8FileReader::eventNum
edm::EventNumber_t eventNum
Definition:
DTNewROS8FileReader.h:40
edm::RunNumber_t
unsigned int RunNumber_t
Definition:
RunLumiEventNumber.h:14
EDProducer.h
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:18
DTNewROS8FileReader::produce
void produce(edm::Event &, edm::EventSetup const &) override
Definition:
DTNewROS8FileReader.cc:177
RawFile.h
DTNewROS8FileReader::fillRawData
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
Generate and fill FED raw data for a full event.
Definition:
DTNewROS8FileReader.cc:48
DTNewROS8FileReader::~DTNewROS8FileReader
~DTNewROS8FileReader() override
Destructor.
Definition:
DTNewROS8FileReader.cc:46
EventID.h
edm::EventNumber_t
unsigned long long EventNumber_t
Definition:
RunLumiEventNumber.h:12
DTNewROS8FileReader::inputFile
RawFile inputFile
Definition:
DTNewROS8FileReader.h:37
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
FEDRawDataCollection.h
edm::EventSetup
Definition:
EventSetup.h:57
DTNewROS8FileReader::ros8WordLenght
static const int ros8WordLenght
Definition:
DTNewROS8FileReader.h:42
DTNewROS8FileReader::runNumber
edm::RunNumber_t runNumber
Definition:
DTNewROS8FileReader.h:39
EventSetup.h
edm::EDProducer
Definition:
EDProducer.h:35
DTNewROS8FileReader
Definition:
DTNewROS8FileReader.h:19
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
DTNewROS8FileReader::DTNewROS8FileReader
DTNewROS8FileReader(const edm::ParameterSet &pset)
Constructor.
Definition:
DTNewROS8FileReader.cc:34
edm::Event
Definition:
Event.h:73
DTNewROS8FileReader::checkEndOfFile
virtual bool checkEndOfFile()
Definition:
DTNewROS8FileReader.cc:185
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
RawFile
Definition:
RawFile.h:14
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16