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