CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTFFEDSim.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef DTTFRawToDigi_DTTFFEDSim_h
14 #define DTTFRawToDigi_DTTFFEDSim_h
15 
17 
21 
22 #include <string>
23 
24 class DTTFFEDSim : public edm::EDProducer {
25 
26  public:
27 
29  DTTFFEDSim(const edm::ParameterSet& pset);
30 
32  virtual ~DTTFFEDSim();
33 
35  void produce(edm::Event & e, const edm::EventSetup& c);
36 
38  bool fillRawData(edm::Event& e,
40 
41  private:
42 
43  unsigned int eventNum;
44 
47 
48  // utilities
49  int channel(int wheel, int sector, int bx);
50 
51  int bxNr(int channel);
52 
53  int sector(int channel);
54 
55  int wheel(int channel);
56 
57  void calcCRC(int myD1, int myD2, int &myC);
58 
61 
62 };
63 #endif
edm::InputTag getDTPHTFInputTag()
Definition: DTTFFEDSim.h:60
virtual ~DTTFFEDSim()
Destructor.
Definition: DTTFFEDSim.cc:37
int sector(int channel)
Definition: DTTFFEDSim.cc:303
unsigned int eventNum
Definition: DTTFFEDSim.h:43
edm::InputTag DTDigiInputTag
Definition: DTTFFEDSim.h:45
int wheel(int channel)
Definition: DTTFFEDSim.cc:314
void calcCRC(int myD1, int myD2, int &myC)
Definition: DTTFFEDSim.cc:327
edm::InputTag getDTDigiInputTag()
Definition: DTTFFEDSim.h:59
int channel(int wheel, int sector, int bx)
Definition: DTTFFEDSim.cc:270
void produce(edm::Event &e, const edm::EventSetup &c)
Produce digis out of raw data.
Definition: DTTFFEDSim.cc:39
bool fillRawData(edm::Event &e, FEDRawDataCollection &data)
Generate and fill FED raw data for a full event.
Definition: DTTFFEDSim.cc:51
int bxNr(int channel)
Definition: DTTFFEDSim.cc:290
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
edm::InputTag DTPHTFInputTag
Definition: DTTFFEDSim.h:46
DTTFFEDSim(const edm::ParameterSet &pset)
Constructor.
Definition: DTTFFEDSim.cc:28