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 
24 
30 
31 #include <string>
32 
33 class DTReadOutMapping;
34 class DTuROSFEDData;
35 
37 public:
40 
42  ~DTuROSRawToDigi() override;
43 
45  void produce(edm::Event& e, const edm::EventSetup& c) override;
46 
48  bool fillRawData(edm::Event& e, const edm::EventSetup& c, DTDigiCollection& digis, std::vector<DTuROSFEDData>& words);
49 
50 private:
52 
53  bool debug_;
54 
55  int nfeds_;
56 
57  std::vector<int> feds_;
58 
59  unsigned char* lineFED;
60 
61  // Operations
62 
63  //process data
64 
65  void process(int DTuROSFED,
68  DTDigiCollection& digis,
69  DTuROSFEDData& fwords);
70 
71  // utilities
72  inline void readline(int& lines, long& dataWord) {
73  dataWord = *((long*)lineFED);
74  lineFED += 8;
75  ++lines;
76  }
77 
78  int theDDU(int crate, int slot, int link, bool tenDDU);
79 
80  int theROS(int slot, int link);
81 
82  int theROB(int slot, int link);
83 
85 
87 };
88 #endif
FEDNumbering.h
DTuROSRawToDigi::lineFED
unsigned char * lineFED
Definition: DTuROSRawToDigi.h:59
Handle.h
DTuROSRawToDigi::~DTuROSRawToDigi
~DTuROSRawToDigi() override
Destructor.
Definition: DTuROSRawToDigi.cc:45
DTuROSRawToDigi::DTuROSInputTag_
edm::InputTag DTuROSInputTag_
Definition: DTuROSRawToDigi.h:51
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:61
DTLayerId.h
edm::EDGetTokenT< FEDRawDataCollection >
EDProducer.h
edm::Handle
Definition: AssociativeIterator.h:50
DTuROSRawToDigi::theROB
int theROB(int slot, int link)
Definition: DTuROSRawToDigi.cc:419
DTuROSRawToDigi::feds_
std::vector< int > feds_
Definition: DTuROSRawToDigi.h:57
DTuROSRawToDigi::nfeds_
int nfeds_
Definition: DTuROSRawToDigi.h:55
DTuROSRawToDigi::Raw_token
edm::EDGetTokenT< FEDRawDataCollection > Raw_token
Definition: DTuROSRawToDigi.h:86
DTuROSRawToDigi::getDTuROSInputTag
edm::InputTag getDTuROSInputTag()
Definition: DTuROSRawToDigi.h:84
edm::ESHandle< DTReadOutMapping >
DTuROSRawToDigi::theDDU
int theDDU(int crate, int slot, int link, bool tenDDU)
Definition: DTuROSRawToDigi.cc:379
DTuROSRawToDigi::readline
void readline(int &lines, long &dataWord)
Definition: DTuROSRawToDigi.h:72
edm::ParameterSet
Definition: ParameterSet.h:36
groupFilesInBlocks.lines
lines
Definition: groupFilesInBlocks.py:95
Event.h
DTuROSRawToDigi
Definition: DTuROSRawToDigi.h:36
DTuROSRawToDigi::theROS
int theROS(int slot, int link)
Definition: DTuROSRawToDigi.cc:411
DTDigiCollection
DTuROSFEDData
Definition: DTuROSControlData.h:103
FEDRawDataCollection.h
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
InputTag.h
DTuROSRawToDigi::debug_
bool debug_
Definition: DTuROSRawToDigi.h:53
DTuROSRawToDigi::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Produce digis out of raw data.
Definition: DTuROSRawToDigi.cc:47
DTuROSRawToDigi::DTuROSRawToDigi
DTuROSRawToDigi(const edm::ParameterSet &pset)
Constructor.
Definition: DTuROSRawToDigi.cc:29
EventSetup.h
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ConsumesCollector.h
DTDigiCollection.h
ParameterSet.h
DTuROSRawToDigi::process
void process(int DTuROSFED, edm::Handle< FEDRawDataCollection > data, edm::ESHandle< DTReadOutMapping > mapping, DTDigiCollection &digis, DTuROSFEDData &fwords)
Definition: DTuROSRawToDigi.cc:81
edm::Event
Definition: Event.h:73
taus_updatedMVAIds_cff.mapping
mapping
Definition: taus_updatedMVAIds_cff.py:28
edm::InputTag
Definition: InputTag.h:15
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DTReadOutMapping
Definition: DTReadOutMapping.h:62
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37