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 fillFED1023(edm::EventID& eID,
52  FEDRawDataCollection& data);
53  virtual void beginLuminosityBlock(edm::LuminosityBlock const& iL, edm::EventSetup const& iE);
54  private:
55  //
56  // member data
57  //
61  unsigned int meansize; // in bytes
62  unsigned int width;
64  unsigned int modulo_error_events;
66 };
67 
68 #endif
unsigned int width
Definition: DaqFakeReader.h:62
unsigned int modulo_error_events
Definition: DaqFakeReader.h:64
evf::EvffedFillerRB frb
Definition: DaqFakeReader.h:65
unsigned int EventNumber_t
Definition: EventID.h:30
void fillFED1023(edm::EventID &eID, FEDRawDataCollection &data)
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:63
virtual ~DaqFakeReader()
virtual void beginLuminosityBlock(edm::LuminosityBlock const &iL, edm::EventSetup const &iE)
virtual int fillRawData(edm::Event &e, FEDRawDataCollection *&data)
unsigned int meansize
Definition: DaqFakeReader.h:61
edm::RunNumber_t runNum
Definition: DaqFakeReader.h:58
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:59
unsigned int RunNumber_t
Definition: EventRange.h:32