EventFilter
Utilities
plugins
DaqFakeReader.h
Go to the documentation of this file.
1
#ifndef DaqSource_DaqFakeReader_h
2
#define DaqSource_DaqFakeReader_h
3
10
#include "
FWCore/Framework/interface/one/EDProducer.h
"
11
#include "
FWCore/Framework/interface/Event.h
"
12
#include "
FWCore/Framework/interface/EventSetup.h
"
13
#include "
FWCore/Framework/interface/LuminosityBlock.h
"
14
#include "
FWCore/Framework/interface/EventSetup.h
"
15
#include "
DataFormats/Provenance/interface/EventID.h
"
16
#include "
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
"
17
#include <algorithm>
18
19
class
DaqFakeReader
:
public
edm::one::EDProducer
<> {
20
public
:
21
//
22
// construction/destruction
23
//
24
DaqFakeReader
(
const
edm::ParameterSet
&
pset
);
25
~DaqFakeReader
()
override
;
26
27
//
28
// public member functions
29
//
30
31
// Generate and fill FED raw data for a full event
32
virtual
int
fillRawData
(
edm::Event
&
e
,
FEDRawDataCollection
*&
data
);
33
34
void
produce
(
edm::Event
&,
edm::EventSetup
const
&)
override
;
35
36
private
:
37
//
38
// private member functions
39
//
40
void
fillFEDs
(
const
int
,
const
int
,
edm::EventID
& eID,
FEDRawDataCollection
&
data
,
float
meansize
,
float
width
);
41
void
fillTCDSFED
(
edm::EventID
& eID,
FEDRawDataCollection
&
data
, uint32_t
ls
, timeval*
now
);
42
virtual
void
beginLuminosityBlock
(
edm::LuminosityBlock
const
& iL,
edm::EventSetup
const
& iE);
43
44
private
:
45
//
46
// member data
47
//
48
edm::RunNumber_t
runNum
;
49
edm::EventNumber_t
eventNum
;
50
bool
empty_events
;
51
unsigned
int
meansize
;
// in bytes
52
unsigned
int
width
;
53
unsigned
int
injected_errors_per_million_events
;
54
unsigned
int
tcdsFEDID_
;
55
unsigned
int
modulo_error_events
;
56
unsigned
int
fakeLs_
= 0;
57
};
58
59
#endif
eostools.ls
def ls(path, rec=False)
Definition:
eostools.py:349
DaqFakeReader::runNum
edm::RunNumber_t runNum
Definition:
DaqFakeReader.h:48
edm::RunNumber_t
unsigned int RunNumber_t
Definition:
RunLumiEventNumber.h:14
DaqFakeReader::produce
void produce(edm::Event &, edm::EventSetup const &) override
Definition:
DaqFakeReader.cc:83
EDProducer.h
DaqFakeReader::fillTCDSFED
void fillTCDSFED(edm::EventID &eID, FEDRawDataCollection &data, uint32_t ls, timeval *now)
Definition:
DaqFakeReader.cc:124
DaqFakeReader::empty_events
bool empty_events
Definition:
DaqFakeReader.h:50
DaqFakeReader
Definition:
DaqFakeReader.h:19
edm::LuminosityBlock
Definition:
LuminosityBlock.h:50
submitPVValidationJobs.now
now
Definition:
submitPVValidationJobs.py:639
DaqFakeReader::injected_errors_per_million_events
unsigned int injected_errors_per_million_events
Definition:
DaqFakeReader.h:53
LuminosityBlock.h
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:18
DaqFakeReader::fillRawData
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
Definition:
DaqFakeReader.cc:57
DaqFakeReader::DaqFakeReader
DaqFakeReader(const edm::ParameterSet &pset)
Definition:
DaqFakeReader.cc:32
edm::one::EDProducer
Definition:
EDProducer.h:30
DaqFakeReader::meansize
unsigned int meansize
Definition:
DaqFakeReader.h:51
EventID.h
edm::EventNumber_t
unsigned long long EventNumber_t
Definition:
RunLumiEventNumber.h:12
DaqFakeReader::eventNum
edm::EventNumber_t eventNum
Definition:
DaqFakeReader.h:49
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
FEDRawDataCollection.h
edm::EventSetup
Definition:
EventSetup.h:58
DaqFakeReader::width
unsigned int width
Definition:
DaqFakeReader.h:52
DaqFakeReader::fillFEDs
void fillFEDs(const int, const int, edm::EventID &eID, FEDRawDataCollection &data, float meansize, float width)
Definition:
DaqFakeReader.cc:92
DaqFakeReader::fakeLs_
unsigned int fakeLs_
Definition:
DaqFakeReader.h:56
EventSetup.h
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
DaqFakeReader::tcdsFEDID_
unsigned int tcdsFEDID_
Definition:
DaqFakeReader.h:54
DaqFakeReader::~DaqFakeReader
~DaqFakeReader() override
Definition:
DaqFakeReader.cc:50
edm::EventID
Definition:
EventID.h:31
edm::Event
Definition:
Event.h:73
DaqFakeReader::modulo_error_events
unsigned int modulo_error_events
Definition:
DaqFakeReader.h:55
DaqFakeReader::beginLuminosityBlock
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
Definition:
DaqFakeReader.cc:163
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16