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
FEDNumbering.h
Handle.h
DTuROSDigiToRaw::theLNK
int theLNK(int ddu, int ros, int rob)
Definition: DTuROSDigiToRaw.cc:315
DTuROSDigiToRaw::dslts
int dslts[DOCESLOTS]
Definition: DTuROSDigiToRaw.h:62
ESHandle.h
DTLayerId.h
edm::EDGetTokenT< DTDigiCollection >
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
DTuROSDigiToRaw::nfeds_
int nfeds_
Definition: DTuROSDigiToRaw.h:58
DTuROSControlData.h
EDProducer.h
DTuROSDigiToRaw::fillRawData
bool fillRawData(edm::Event &e, const edm::EventSetup &c, FEDRawDataCollection &data)
Generate and fill FED raw data for a full event.
Definition: DTuROSDigiToRaw.cc:53
edm::Handle< DTDigiCollection >
ESGetToken.h
DTuROSDigiToRaw::Raw_token
edm::EDGetTokenT< DTDigiCollection > Raw_token
Definition: DTuROSDigiToRaw.h:86
edm::ESHandle< DTReadOutMapping >
DTuROSDigiToRaw::feds_
std::vector< int > feds_
Definition: DTuROSDigiToRaw.h:60
DTuROSDigiToRaw::debug_
bool debug_
Definition: DTuROSDigiToRaw.h:56
DTReadOutMappingRcd.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DTuROSDigiToRaw::DTuROSDigiToRaw
DTuROSDigiToRaw(const edm::ParameterSet &pset)
Constructor.
Definition: DTuROSDigiToRaw.cc:24
DTuROSDigiToRaw::mapping_token_
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd > mapping_token_
Definition: DTuROSDigiToRaw.h:87
DTuROSDigiToRaw::process
void process(int DTuROSFED, edm::Handle< DTDigiCollection > digis, edm::ESHandle< DTReadOutMapping > mapping, FEDRawDataCollection &data)
Definition: DTuROSDigiToRaw.cc:68
DOCESLOTS
static const int DOCESLOTS
Definition: DTuROSControlData.h:19
FEDRawDataCollection.h
DTuROSDigiToRaw::bslts
int bslts[DOCESLOTS]
Definition: DTuROSDigiToRaw.h:62
edm::stream::EDProducer
Definition: EDProducer.h:38
DTuROSDigiToRaw::getDTDigiInputTag
edm::InputTag getDTDigiInputTag()
Definition: DTuROSDigiToRaw.h:84
edm::EventSetup
Definition: EventSetup.h:58
DTuROSDigiToRaw
Definition: DTuROSDigiToRaw.h:37
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd >
InputTag.h
DTuROSDigiToRaw::theSLT
int theSLT(int ddu, int ros, int rob)
Definition: DTuROSDigiToRaw.cc:301
DTuROSDigiToRaw::theCRT
int theCRT(int ddu, int ros)
Definition: DTuROSDigiToRaw.cc:288
DTuROSDigiToRaw::DTDigiInputTag_
edm::InputTag DTDigiInputTag_
Definition: DTuROSDigiToRaw.h:54
DTuROSDigiToRaw::eventNum
unsigned int eventNum
Definition: DTuROSDigiToRaw.h:52
EventSetup.h
DTuROSDigiToRaw::clear
void clear()
Definition: DTuROSDigiToRaw.cc:278
DTuROSDigiToRaw::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Produce digis out of raw data.
Definition: DTuROSDigiToRaw.cc:42
DTuROSDigiToRaw::wslts
std::vector< int > wslts[DOCESLOTS]
Definition: DTuROSDigiToRaw.h:64
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ConsumesCollector.h
DTDigiCollection.h
DTuROSDigiToRaw::~DTuROSDigiToRaw
~DTuROSDigiToRaw() override
Destructor.
Definition: DTuROSDigiToRaw.cc:40
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
edm::Event
Definition: Event.h:73
taus_updatedMVAIds_cff.mapping
mapping
Definition: taus_updatedMVAIds_cff.py:29
edm::InputTag
Definition: InputTag.h:15
DTReadOutMapping.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTReadOutMapping
Definition: DTReadOutMapping.h:62
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37