CMS 3D CMS Logo

L1GlobalTriggerRawToDigi.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerRawToDigi_h
2 #define EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerRawToDigi_h
3 
19 // system include files
20 #include <memory>
21 #include <iostream>
22 
23 // user include files
26 
29 
34 
41 
42 // forward declarations
43 class L1GtfeWord;
44 class L1GtFdlWord;
45 class L1GtPsbWord;
46 
48 
49 class FEDHeader;
50 class FEDTrailer;
51 
52 class L1MuTriggerScales;
53 class L1MuTriggerPtScale;
54 
55 // class declaration
57 public:
60 
62  ~L1GlobalTriggerRawToDigi() override;
63 
64  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
65 
66 private:
67  void produce(edm::Event&, const edm::EventSetup&) override;
68 
70 
72  void unpackHeader(const unsigned char*, FEDHeader&);
73 
78  void unpackPSB(const edm::EventSetup&, const unsigned char*, L1GtPsbWord&);
79 
81  void unpackGMT(const unsigned char*, std::unique_ptr<L1MuGMTReadoutCollection>&, edm::Event&);
82 
84  void unpackTrailer(const unsigned char*, FEDTrailer&);
85 
88 
90  void dumpFedRawData(const unsigned char*, int, std::ostream&);
91 
92 private:
96 
99 
103 
106 
109 
112 
115 
116  // number of bunch crossing to be unpacked
118 
122 
126 
128  //
131 
134 
137 
141 
142 private:
146 };
147 
148 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerRawToDigi_h
L1GlobalTriggerRawToDigi::m_daqGtInputTag
edm::InputTag m_daqGtInputTag
input tags for GT DAQ record
Definition: L1GlobalTriggerRawToDigi.h:98
L1GlobalTriggerRawToDigi::m_recordLength1
int m_recordLength1
corresponding to alternative 1 in altNrBxBoard()
Definition: L1GlobalTriggerRawToDigi.h:133
L1MuTriggerPtScaleRcd.h
L1GlobalTriggerRawToDigi::m_gtPsbWord
L1GtPsbWord * m_gtPsbWord
Definition: L1GlobalTriggerRawToDigi.h:94
EDProducer.h
L1GtfeWord
Definition: L1GtfeWord.h:30
L1GlobalTriggerRawToDigi::m_totalBxInEvent
int m_totalBxInEvent
number of Bx for a board, obtained from GTFE block (record length & alternative)
Definition: L1GlobalTriggerRawToDigi.h:136
L1MuTriggerScalesRcd.h
L1GlobalTriggerRawToDigi::dumpFedRawData
void dumpFedRawData(const unsigned char *, int, std::ostream &)
dump FED raw data
Definition: L1GlobaTriggerRawToDigi.cc:972
L1GtPsbWord
Definition: L1GtPsbWord.h:29
L1GlobalTriggerRawToDigi::m_trigScalesToken
const edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > m_trigScalesToken
EventSetup Token for L1MuTriggerScales.
Definition: L1GlobalTriggerRawToDigi.h:108
L1GlobalTriggerRawToDigi::unpackTrailer
void unpackTrailer(const unsigned char *, FEDTrailer &)
unpack trailer word
Definition: L1GlobaTriggerRawToDigi.cc:907
ESGetToken.h
L1GlobalTriggerRawToDigi::m_trigPtScaleToken
const edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcd > m_trigPtScaleToken
EventSetup Token for L1MuTriggerPtScale.
Definition: L1GlobalTriggerRawToDigi.h:111
MakerMacros.h
L1GlobalTriggerRawToDigi::m_verbosity
int m_verbosity
verbosity level
Definition: L1GlobalTriggerRawToDigi.h:144
L1MuTriggerPtScale
Definition: L1MuTriggerPtScale.h:33
L1GlobalTriggerRawToDigi::unpackPSB
void unpackPSB(const edm::EventSetup &, const unsigned char *, L1GtPsbWord &)
Definition: L1GlobaTriggerRawToDigi.cc:756
L1GlobalTriggerRawToDigi::produceEmptyProducts
void produceEmptyProducts(edm::Event &)
produce empty products in case of problems
Definition: L1GlobaTriggerRawToDigi.cc:948
L1GlobalTriggerRawToDigi::m_unpackBxInEvent
int m_unpackBxInEvent
Definition: L1GlobalTriggerRawToDigi.h:117
L1GlobalTriggerRawToDigi::m_TriggerScales
const L1MuTriggerScales * m_TriggerScales
muon trigger scales to convert unpacked data into physical quantities
Definition: L1GlobalTriggerRawToDigi.h:139
typedefs.h
L1GlobalTriggerRawToDigi::m_gtFdlWord
L1GtFdlWord * m_gtFdlWord
Definition: L1GlobalTriggerRawToDigi.h:95
L1GlobalTriggerRawToDigi::m_uppSkipBxInEvent
int m_uppSkipBxInEvent
Definition: L1GlobalTriggerRawToDigi.h:125
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
L1GlobalTriggerRawToDigi::m_TriggerPtScale
const L1MuTriggerPtScale * m_TriggerPtScale
Definition: L1GlobalTriggerRawToDigi.h:140
L1GlobalTriggerRawToDigi::unpackHeader
void unpackHeader(const unsigned char *, FEDHeader &)
block unpackers
Definition: L1GlobaTriggerRawToDigi.cc:710
edm::ParameterSet
Definition: ParameterSet.h:47
L1GlobalTriggerRawToDigi::m_activeBoardsMaskGt
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
Definition: L1GlobalTriggerRawToDigi.h:105
FEDTrailer
Definition: FEDTrailer.h:14
Event.h
L1GlobalTriggerRawToDigi
Definition: L1GlobalTriggerRawToDigi.h:56
L1GlobalTriggerRawToDigi::m_isDebugEnabled
bool m_isDebugEnabled
Definition: L1GlobalTriggerRawToDigi.h:145
L1MuTriggerPtScale.h
L1GtFdlWord
Definition: L1GtFdlWord.h:29
L1GlobalTriggerRawToDigi::~L1GlobalTriggerRawToDigi
~L1GlobalTriggerRawToDigi() override
destructor
Definition: L1GlobaTriggerRawToDigi.cc:133
L1MuTriggerScales.h
L1GlobalTriggerRawToDigi::m_l1GtBMToken
const edm::ESGetToken< L1GtBoardMaps, L1GtBoardMapsRcd > m_l1GtBMToken
EventSetup Token for L1GtBoardMaps.
Definition: L1GlobalTriggerRawToDigi.h:114
edm::stream::EDProducer
Definition: EDProducer.h:36
L1GlobalTriggerRawToDigi::m_recordLength0
int m_recordLength0
total Bx's in the event, obtained from GTFE block
Definition: L1GlobalTriggerRawToDigi.h:130
cms_uint16_t
unsigned short cms_uint16_t
Definition: typedefs.h:13
edm::EventSetup
Definition: EventSetup.h:58
L1GlobalTriggerRawToDigi::m_gtfeWord
L1GtfeWord * m_gtfeWord
Definition: L1GlobalTriggerRawToDigi.h:93
L1MuTriggerScales
Definition: L1MuTriggerScales.h:33
L1GlobalTriggerRawToDigi::L1GlobalTriggerRawToDigi
L1GlobalTriggerRawToDigi(const edm::ParameterSet &)
constructor(s)
Definition: L1GlobaTriggerRawToDigi.cc:56
L1GtBoardMaps.h
edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd >
InputTag.h
L1MuGMTReadoutCollection
Definition: L1MuGMTReadoutCollection.h:39
Frameworkfwd.h
L1GlobalTriggerRawToDigi::m_daqGtFedId
int m_daqGtFedId
Definition: L1GlobalTriggerRawToDigi.h:102
L1GlobalTriggerRawToDigi::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: L1GlobaTriggerRawToDigi.cc:139
L1GlobalTriggerRawToDigi::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: L1GlobaTriggerRawToDigi.cc:170
L1GlobalTriggerRawToDigi::m_lowSkipBxInEvent
int m_lowSkipBxInEvent
Definition: L1GlobalTriggerRawToDigi.h:121
ParameterSet.h
FEDHeader
Definition: FEDHeader.h:14
edm::Event
Definition: Event.h:73
L1GlobalTriggerRawToDigi::unpackGMT
void unpackGMT(const unsigned char *, std::unique_ptr< L1MuGMTReadoutCollection > &, edm::Event &)
unpack the GMT record
Definition: L1GlobaTriggerRawToDigi.cc:791
edm::InputTag
Definition: InputTag.h:15
L1GtBoardMapsRcd.h