CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
unsigned int width
Definition: DaqFakeReader.h:52
unsigned int modulo_error_events
Definition: DaqFakeReader.h:54
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:53
void fillGTPFED(edm::EventID &eID, FEDRawDataCollection &data, timeval *now)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
unsigned int fakeLs_
Definition: DaqFakeReader.h:55
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
unsigned int meansize
Definition: DaqFakeReader.h:51
edm::RunNumber_t runNum
Definition: DaqFakeReader.h:48
DaqFakeReader(const edm::ParameterSet &pset)
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:49
unsigned int RunNumber_t