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 //
13 //
14 //--------------------------------------------------
15 #ifndef DTTFRawToDigi_DTTFFEDSim_h
16 #define DTTFRawToDigi_DTTFFEDSim_h
17 
19 
23 
24 #include <string>
25 
26 class DTTFFEDSim : public edm::EDProducer {
27 
28  public:
29 
31  DTTFFEDSim(const edm::ParameterSet& pset);
32 
34  virtual ~DTTFFEDSim();
35 
37  void produce(edm::Event & e, const edm::EventSetup& c);
38 
40  bool fillRawData(edm::Event& e,
42 
43  private:
44 
45  unsigned int eventNum;
46 
49 
50  // utilities
51  int channel(int wheel, int sector, int bx);
52 
53  int bxNr(int channel);
54 
55  int sector(int channel);
56 
57  int wheel(int channel);
58 
59  void calcCRC(int myD1, int myD2, int &myC);
60 
63 
64 };
65 #endif
edm::InputTag getDTPHTFInputTag()
Definition: DTTFFEDSim.h:62
virtual ~DTTFFEDSim()
Destructor.
Definition: DTTFFEDSim.cc:39
int sector(int channel)
Definition: DTTFFEDSim.cc:305
unsigned int eventNum
Definition: DTTFFEDSim.h:45
edm::InputTag DTDigiInputTag
Definition: DTTFFEDSim.h:47
int wheel(int channel)
Definition: DTTFFEDSim.cc:316
void calcCRC(int myD1, int myD2, int &myC)
Definition: DTTFFEDSim.cc:329
edm::InputTag getDTDigiInputTag()
Definition: DTTFFEDSim.h:61
int channel(int wheel, int sector, int bx)
Definition: DTTFFEDSim.cc:272
void produce(edm::Event &e, const edm::EventSetup &c)
Produce digis out of raw data.
Definition: DTTFFEDSim.cc:41
bool fillRawData(edm::Event &e, FEDRawDataCollection &data)
Generate and fill FED raw data for a full event.
Definition: DTTFFEDSim.cc:53
int bxNr(int channel)
Definition: DTTFFEDSim.cc:292
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
edm::InputTag DTPHTFInputTag
Definition: DTTFFEDSim.h:48
DTTFFEDSim(const edm::ParameterSet &pset)
Constructor.
Definition: DTTFFEDSim.cc:30