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
unsigned int width
Definition: DaqFakeReader.h:56
unsigned int modulo_error_events
Definition: DaqFakeReader.h:59
unsigned int tcdsFEDID_
Definition: DaqFakeReader.h:58
void fillFEDs(const int, const int, edm::EventID &eID, FEDRawDataCollection &data, float meansize, float width)
unsigned long long EventNumber_t
unsigned int injected_errors_per_million_events
Definition: DaqFakeReader.h:57
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
unsigned int fakeLs_
Definition: DaqFakeReader.h:60
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
unsigned int meansize
Definition: DaqFakeReader.h:55
edm::RunNumber_t runNum
Definition: DaqFakeReader.h:51
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
def ls(path, rec=False)
Definition: eostools.py:349
DaqFakeReader(const edm::ParameterSet &pset)
void fillTCDSFED(edm::EventID &eID, FEDRawDataCollection &data, uint32_t ls, timeval *now)
void produce(edm::Event &, edm::EventSetup const &) override
~DaqFakeReader() override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
edm::EventNumber_t eventNum
Definition: DaqFakeReader.h:52
unsigned int RunNumber_t