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 
33 
34 // forward declarations
35 class L1GtfeWord;
36 class L1GtFdlWord;
37 class L1GtPsbWord;
38 
40 
41 class FEDHeader;
42 class FEDTrailer;
43 
44 class L1MuTriggerScales;
45 class L1MuTriggerPtScale;
46 
47 // class declaration
49 public:
52 
54  ~L1GlobalTriggerRawToDigi() override;
55 
56  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
57 
58 private:
59  void produce(edm::Event&, const edm::EventSetup&) override;
60 
62 
64  void unpackHeader(const unsigned char*, FEDHeader&);
65 
70  void unpackPSB(const edm::EventSetup&, const unsigned char*, L1GtPsbWord&);
71 
73  void unpackGMT(const unsigned char*, std::unique_ptr<L1MuGMTReadoutCollection>&, edm::Event&);
74 
76  void unpackTrailer(const unsigned char*, FEDTrailer&);
77 
80 
82  void dumpFedRawData(const unsigned char*, int, std::ostream&);
83 
84 private:
88 
91 
95 
98 
99  // number of bunch crossing to be unpacked
101 
105 
109 
111  //
114 
117 
120 
124 
125 private:
129 };
130 
131 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerRawToDigi_h
L1GlobalTriggerRawToDigi::m_daqGtInputTag
edm::InputTag m_daqGtInputTag
input tags for GT DAQ record
Definition: L1GlobalTriggerRawToDigi.h:90
L1GlobalTriggerRawToDigi::m_recordLength1
int m_recordLength1
corresponding to alternative 1 in altNrBxBoard()
Definition: L1GlobalTriggerRawToDigi.h:116
L1GlobalTriggerRawToDigi::m_gtPsbWord
L1GtPsbWord * m_gtPsbWord
Definition: L1GlobalTriggerRawToDigi.h:86
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:119
L1GlobalTriggerRawToDigi::dumpFedRawData
void dumpFedRawData(const unsigned char *, int, std::ostream &)
dump FED raw data
Definition: L1GlobaTriggerRawToDigi.cc:977
L1GtPsbWord
Definition: L1GtPsbWord.h:29
L1GlobalTriggerRawToDigi::unpackTrailer
void unpackTrailer(const unsigned char *, FEDTrailer &)
unpack trailer word
Definition: L1GlobaTriggerRawToDigi.cc:912
MakerMacros.h
L1GlobalTriggerRawToDigi::m_verbosity
int m_verbosity
verbosity level
Definition: L1GlobalTriggerRawToDigi.h:127
L1MuTriggerPtScale
Definition: L1MuTriggerPtScale.h:33
L1GlobalTriggerRawToDigi::unpackPSB
void unpackPSB(const edm::EventSetup &, const unsigned char *, L1GtPsbWord &)
Definition: L1GlobaTriggerRawToDigi.cc:761
L1GlobalTriggerRawToDigi::produceEmptyProducts
void produceEmptyProducts(edm::Event &)
produce empty products in case of problems
Definition: L1GlobaTriggerRawToDigi.cc:953
L1GlobalTriggerRawToDigi::m_unpackBxInEvent
int m_unpackBxInEvent
Definition: L1GlobalTriggerRawToDigi.h:100
L1GlobalTriggerRawToDigi::m_TriggerScales
const L1MuTriggerScales * m_TriggerScales
muon trigger scales to convert unpacked data into physical quantities
Definition: L1GlobalTriggerRawToDigi.h:122
typedefs.h
L1GlobalTriggerRawToDigi::m_gtFdlWord
L1GtFdlWord * m_gtFdlWord
Definition: L1GlobalTriggerRawToDigi.h:87
L1GlobalTriggerRawToDigi::m_uppSkipBxInEvent
int m_uppSkipBxInEvent
Definition: L1GlobalTriggerRawToDigi.h:108
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
L1GlobalTriggerRawToDigi::m_TriggerPtScale
const L1MuTriggerPtScale * m_TriggerPtScale
Definition: L1GlobalTriggerRawToDigi.h:123
L1GlobalTriggerRawToDigi::unpackHeader
void unpackHeader(const unsigned char *, FEDHeader &)
block unpackers
Definition: L1GlobaTriggerRawToDigi.cc:715
edm::ParameterSet
Definition: ParameterSet.h:36
L1GlobalTriggerRawToDigi::m_activeBoardsMaskGt
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
Definition: L1GlobalTriggerRawToDigi.h:97
FEDTrailer
Definition: FEDTrailer.h:14
Event.h
L1GlobalTriggerRawToDigi
Definition: L1GlobalTriggerRawToDigi.h:48
L1GlobalTriggerRawToDigi::m_isDebugEnabled
bool m_isDebugEnabled
Definition: L1GlobalTriggerRawToDigi.h:128
L1GtFdlWord
Definition: L1GtFdlWord.h:29
L1GlobalTriggerRawToDigi::~L1GlobalTriggerRawToDigi
~L1GlobalTriggerRawToDigi() override
destructor
Definition: L1GlobaTriggerRawToDigi.cc:135
edm::stream::EDProducer
Definition: EDProducer.h:38
L1GlobalTriggerRawToDigi::m_recordLength0
int m_recordLength0
total Bx's in the event, obtained from GTFE block
Definition: L1GlobalTriggerRawToDigi.h:113
cms_uint16_t
unsigned short cms_uint16_t
Definition: typedefs.h:13
edm::EventSetup
Definition: EventSetup.h:57
L1GlobalTriggerRawToDigi::m_gtfeWord
L1GtfeWord * m_gtfeWord
Definition: L1GlobalTriggerRawToDigi.h:85
L1MuTriggerScales
Definition: L1MuTriggerScales.h:33
L1GlobalTriggerRawToDigi::L1GlobalTriggerRawToDigi
L1GlobalTriggerRawToDigi(const edm::ParameterSet &)
constructor(s)
Definition: L1GlobaTriggerRawToDigi.cc:64
InputTag.h
L1MuGMTReadoutCollection
Definition: L1MuGMTReadoutCollection.h:39
Frameworkfwd.h
L1GlobalTriggerRawToDigi::m_daqGtFedId
int m_daqGtFedId
Definition: L1GlobalTriggerRawToDigi.h:94
L1GlobalTriggerRawToDigi::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: L1GlobaTriggerRawToDigi.cc:141
L1GlobalTriggerRawToDigi::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: L1GlobaTriggerRawToDigi.cc:172
L1GlobalTriggerRawToDigi::m_lowSkipBxInEvent
int m_lowSkipBxInEvent
Definition: L1GlobalTriggerRawToDigi.h:104
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:796
edm::InputTag
Definition: InputTag.h:15