CMS 3D CMS Logo

DTuROSDigiToRaw.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //--------------------------------------------------
13 #ifndef DTRawToDigi_DTuROSDigiToRaw_h
14 #define DTRawToDigi_DTuROSDigiToRaw_h
15 
32 
33 #include <string>
34 
35 class DTReadOutMapping;
36 
38 public:
41 
43  ~DTuROSDigiToRaw() override;
44 
46  void produce(edm::Event& e, const edm::EventSetup& c) override;
47 
50 
51 private:
52  unsigned int eventNum;
53 
55 
56  bool debug_;
57 
58  int nfeds_;
59 
60  std::vector<int> feds_;
61 
63 
64  std::vector<int> wslts[DOCESLOTS];
65 
66  // Operations
67 
68  //process data
69 
70  void process(int DTuROSFED,
74 
75  // utilities
76  void clear();
77 
78  int theCRT(int ddu, int ros);
79 
80  int theSLT(int ddu, int ros, int rob);
81 
82  int theLNK(int ddu, int ros, int rob);
83 
85 
88 };
89 #endif
~DTuROSDigiToRaw() override
Destructor.
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd > mapping_token_
edm::InputTag DTDigiInputTag_
std::vector< int > wslts[DOCESLOTS]
edm::InputTag getDTDigiInputTag()
int theSLT(int ddu, int ros, int rob)
void produce(edm::Event &e, const edm::EventSetup &c) override
Produce digis out of raw data.
static const int DOCESLOTS
bool fillRawData(edm::Event &e, const edm::EventSetup &c, FEDRawDataCollection &data)
Generate and fill FED raw data for a full event.
int bslts[DOCESLOTS]
int theLNK(int ddu, int ros, int rob)
std::vector< int > feds_
int dslts[DOCESLOTS]
unsigned int eventNum
edm::EDGetTokenT< DTDigiCollection > Raw_token
void process(int DTuROSFED, edm::Handle< DTDigiCollection > digis, edm::ESHandle< DTReadOutMapping > mapping, FEDRawDataCollection &data)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DTuROSDigiToRaw(const edm::ParameterSet &pset)
Constructor.
int theCRT(int ddu, int ros)