CMS 3D CMS Logo

DTuROSRawToDigi.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
12 //
13 //--------------------------------------------------
14 #ifndef DTRawToDigi_DTuROSRawToDigi_h
15 #define DTRawToDigi_DTuROSRawToDigi_h
16 
27 
33 
34 #include <string>
35 
36 class DTReadOutMapping;
37 class DTuROSFEDData;
38 
40 public:
43 
45  ~DTuROSRawToDigi() override;
46 
48  void produce(edm::Event& e, const edm::EventSetup& c) override;
49 
51  bool fillRawData(edm::Event& e, const edm::EventSetup& c, DTDigiCollection& digis, std::vector<DTuROSFEDData>& words);
52 
53 private:
55 
56  bool debug_;
57 
58  int nfeds_;
59 
60  std::vector<int> feds_;
61 
62  unsigned char* lineFED;
63 
64  // Operations
65 
66  //process data
67 
68  void process(int DTuROSFED,
71  DTDigiCollection& digis,
72  DTuROSFEDData& fwords);
73 
74  // utilities
75  inline void readline(int& lines, long& dataWord) {
76  dataWord = *((long*)lineFED);
77  lineFED += 8;
78  ++lines;
79  }
80 
81  int theDDU(int crate, int slot, int link, bool tenDDU);
82 
83  int theROS(int slot, int link);
84 
85  int theROB(int slot, int link);
86 
88 
91 };
92 #endif
FEDNumbering.h
DTuROSRawToDigi::lineFED
unsigned char * lineFED
Definition: DTuROSRawToDigi.h:62
Handle.h
DTuROSRawToDigi::~DTuROSRawToDigi
~DTuROSRawToDigi() override
Destructor.
Definition: DTuROSRawToDigi.cc:44
DTuROSRawToDigi::DTuROSInputTag_
edm::InputTag DTuROSInputTag_
Definition: DTuROSRawToDigi.h:54
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
ESHandle.h
DTuROSRawToDigi::fillRawData
bool fillRawData(edm::Event &e, const edm::EventSetup &c, DTDigiCollection &digis, std::vector< DTuROSFEDData > &words)
Generate and fill FED raw data for a full event.
Definition: DTuROSRawToDigi.cc:60
DTLayerId.h
edm::EDGetTokenT< FEDRawDataCollection >
EDProducer.h
edm::Handle< FEDRawDataCollection >
ESGetToken.h
DTuROSRawToDigi::theROB
int theROB(int slot, int link)
Definition: DTuROSRawToDigi.cc:417
DTuROSRawToDigi::feds_
std::vector< int > feds_
Definition: DTuROSRawToDigi.h:60
DTuROSRawToDigi::nfeds_
int nfeds_
Definition: DTuROSRawToDigi.h:58
DTuROSRawToDigi::Raw_token
edm::EDGetTokenT< FEDRawDataCollection > Raw_token
Definition: DTuROSRawToDigi.h:89
DTuROSRawToDigi::getDTuROSInputTag
edm::InputTag getDTuROSInputTag()
Definition: DTuROSRawToDigi.h:87
DTuROSRawToDigi::mapping_token_
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd > mapping_token_
Definition: DTuROSRawToDigi.h:90
edm::ESHandle< DTReadOutMapping >
DTuROSRawToDigi::theDDU
int theDDU(int crate, int slot, int link, bool tenDDU)
Definition: DTuROSRawToDigi.cc:377
DTuROSRawToDigi::readline
void readline(int &lines, long &dataWord)
Definition: DTuROSRawToDigi.h:75
DTReadOutMappingRcd.h
edm::ParameterSet
Definition: ParameterSet.h:47
groupFilesInBlocks.lines
lines
Definition: groupFilesInBlocks.py:95
Event.h
DTuROSRawToDigi
Definition: DTuROSRawToDigi.h:39
DTuROSRawToDigi::theROS
int theROS(int slot, int link)
Definition: DTuROSRawToDigi.cc:409
DTDigiCollection
DTuROSFEDData
Definition: DTuROSControlData.h:103
FEDRawDataCollection.h
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd >
InputTag.h
DTuROSRawToDigi::debug_
bool debug_
Definition: DTuROSRawToDigi.h:56
DTuROSRawToDigi::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Produce digis out of raw data.
Definition: DTuROSRawToDigi.cc:46
DTuROSRawToDigi::DTuROSRawToDigi
DTuROSRawToDigi(const edm::ParameterSet &pset)
Constructor.
Definition: DTuROSRawToDigi.cc:27
EventSetup.h
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ConsumesCollector.h
DTDigiCollection.h
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
DTuROSRawToDigi::process
void process(int DTuROSFED, edm::Handle< FEDRawDataCollection > data, edm::ESHandle< DTReadOutMapping > mapping, DTDigiCollection &digis, DTuROSFEDData &fwords)
Definition: DTuROSRawToDigi.cc:79
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