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 
19 
20 
22 {
23  public:
24  //
25  // construction/destruction
26  //
28  ~DaqFakeReader() override;
29 
30 
31  //
32  // public member functions
33  //
34 
35  // Generate and fill FED raw data for a full event
36  virtual int fillRawData(edm::Event& e,
38 
39  void produce(edm::Event&, edm::EventSetup const&) override;
40 
41 private:
42  //
43  // private member functions
44  //
45  void fillFEDs(const int, const int,
46  edm::EventID& eID,
48  float meansize,
49  float width);
50  void fillGTPFED(edm::EventID& eID,
51  FEDRawDataCollection& data,timeval * now);
52  virtual void beginLuminosityBlock(edm::LuminosityBlock const& iL, edm::EventSetup const& iE);
53  private:
54  //
55  // member data
56  //
60  unsigned int meansize; // in bytes
61  unsigned int width;
63  unsigned int modulo_error_events;
64  unsigned int fakeLs_=0;
65 };
66 
67 #endif
unsigned int width
Definition: DaqFakeReader.h:61
unsigned int modulo_error_events
Definition: DaqFakeReader.h:63
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:62
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:64
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
unsigned int meansize
Definition: DaqFakeReader.h:60
edm::RunNumber_t runNum
Definition: DaqFakeReader.h:57
DaqFakeReader(const edm::ParameterSet &pset)
void produce(edm::Event &, edm::EventSetup const &) override
~DaqFakeReader() override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
edm::EventNumber_t eventNum
Definition: DaqFakeReader.h:58
unsigned int RunNumber_t