CMS 3D CMS Logo

DaqFakeReader.h
Go to the documentation of this file.
1 #ifndef DaqSource_DaqFakeReader_h
2 #define DaqSource_DaqFakeReader_h
3 
17 #include <algorithm>
18 
20 public:
21  //
22  // construction/destruction
23  //
25  ~DaqFakeReader() override;
26 
27  //
28  // public member functions
29  //
30 
31  // Generate and fill FED raw data for a full event
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 fillGTPFED(edm::EventID& eID, FEDRawDataCollection& data, timeval* now);
42  virtual void beginLuminosityBlock(edm::LuminosityBlock const& iL, edm::EventSetup const& iE);
43 
44 private:
45  //
46  // member data
47  //
51  unsigned int meansize; // in bytes
52  unsigned int width;
54  unsigned int modulo_error_events;
55  unsigned int fakeLs_ = 0;
56 };
57 
58 #endif
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:78
EDProducer.h
DaqFakeReader::empty_events
bool empty_events
Definition: DaqFakeReader.h:50
DaqFakeReader
Definition: DaqFakeReader.h:19
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
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:52
DaqFakeReader::DaqFakeReader
DaqFakeReader(const edm::ParameterSet &pset)
Definition: DaqFakeReader.cc:31
edm::one::EDProducer
Definition: EDProducer.h:30
fileCollector.now
now
Definition: fileCollector.py:207
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:36
Event.h
DaqFakeReader::fillGTPFED
void fillGTPFED(edm::EventID &eID, FEDRawDataCollection &data, timeval *now)
Definition: DaqFakeReader.cc:119
FEDRawDataCollection.h
edm::EventSetup
Definition: EventSetup.h:57
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:87
DaqFakeReader::fakeLs_
unsigned int fakeLs_
Definition: DaqFakeReader.h:55
EventSetup.h
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DaqFakeReader::~DaqFakeReader
~DaqFakeReader() override
Definition: DaqFakeReader.cc:45
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
DaqFakeReader::modulo_error_events
unsigned int modulo_error_events
Definition: DaqFakeReader.h:54
DaqFakeReader::beginLuminosityBlock
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
Definition: DaqFakeReader.cc:154
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37