CMS 3D CMS Logo

DaqFakeReader.h
Go to the documentation of this file.
1 #ifndef DaqSource_DaqFakeReader_h
2 #define DaqSource_DaqFakeReader_h
3 
18 #include <algorithm>
19 
21 public:
22  //
23  // construction/destruction
24  //
26  ~DaqFakeReader() override;
27 
28  //
29  // public member functions
30  //
31 
32  // Generate and fill FED raw data for a full event
34 
35  void produce(edm::Event&, edm::EventSetup const&) override;
36 
37  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
38 
39 private:
40  //
41  // private member functions
42  //
43  void fillFEDs(const int, const int, edm::EventID& eID, FEDRawDataCollection& data, float meansize, float width);
44  void fillTCDSFED(edm::EventID& eID, FEDRawDataCollection& data, uint32_t ls, timeval* now);
45  virtual void beginLuminosityBlock(edm::LuminosityBlock const& iL, edm::EventSetup const& iE);
46 
47 private:
48  //
49  // member data
50  //
55  unsigned int meansize; // in bytes
56  unsigned int width;
58  unsigned int tcdsFEDID_;
59  unsigned int modulo_error_events;
60  unsigned int fakeLs_ = 0;
61 };
62 
63 #endif
ConfigurationDescriptions.h
eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
DaqFakeReader::runNum
edm::RunNumber_t runNum
Definition: DaqFakeReader.h:51
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
DaqFakeReader::produce
void produce(edm::Event &, edm::EventSetup const &) override
Definition: DaqFakeReader.cc:92
EDProducer.h
DaqFakeReader::fillTCDSFED
void fillTCDSFED(edm::EventID &eID, FEDRawDataCollection &data, uint32_t ls, timeval *now)
Definition: DaqFakeReader.cc:145
DaqFakeReader::empty_events
bool empty_events
Definition: DaqFakeReader.h:53
DaqFakeReader
Definition: DaqFakeReader.h:20
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:57
LuminosityBlock.h
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
DaqFakeReader::fillRawData
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
Definition: DaqFakeReader.cc:66
DaqFakeReader::DaqFakeReader
DaqFakeReader(const edm::ParameterSet &pset)
Definition: DaqFakeReader.cc:34
DaqFakeReader::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: DaqFakeReader.cc:189
edm::one::EDProducer
Definition: EDProducer.h:30
DaqFakeReader::meansize
unsigned int meansize
Definition: DaqFakeReader.h:55
EventID.h
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
DaqFakeReader::eventNum
edm::EventNumber_t eventNum
Definition: DaqFakeReader.h:52
edm::ParameterSet
Definition: ParameterSet.h:47
DaqFakeReader::fillRandom_
bool fillRandom_
Definition: DaqFakeReader.h:54
Event.h
FEDRawDataCollection.h
edm::EventSetup
Definition: EventSetup.h:58
DaqFakeReader::width
unsigned int width
Definition: DaqFakeReader.h:56
DaqFakeReader::fillFEDs
void fillFEDs(const int, const int, edm::EventID &eID, FEDRawDataCollection &data, float meansize, float width)
Definition: DaqFakeReader.cc:101
DaqFakeReader::fakeLs_
unsigned int fakeLs_
Definition: DaqFakeReader.h:60
EventSetup.h
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DaqFakeReader::tcdsFEDID_
unsigned int tcdsFEDID_
Definition: DaqFakeReader.h:58
DaqFakeReader::~DaqFakeReader
~DaqFakeReader() override
Definition: DaqFakeReader.cc:59
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
DaqFakeReader::modulo_error_events
unsigned int modulo_error_events
Definition: DaqFakeReader.h:59
DaqFakeReader::beginLuminosityBlock
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
Definition: DaqFakeReader.cc:184
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37