CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
const L1MuTriggerScales * m_TriggerScales
muon trigger scales to convert unpacked data into physical quantities
const edm::ESGetToken< L1GtBoardMaps, L1GtBoardMapsRcd > m_l1GtBMToken
EventSetup Token for L1GtBoardMaps.
void unpackHeader(const unsigned char *, FEDHeader &)
block unpackers
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
void produce(edm::Event &, const edm::EventSetup &) override
int m_recordLength0
total Bx&#39;s in the event, obtained from GTFE block
~L1GlobalTriggerRawToDigi() override
destructor
void unpackPSB(const edm::EventSetup &, const unsigned char *, L1GtPsbWord &)
const edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > m_trigScalesToken
EventSetup Token for L1MuTriggerScales.
const L1MuTriggerPtScale * m_TriggerPtScale
int m_recordLength1
corresponding to alternative 1 in altNrBxBoard()
edm::InputTag m_daqGtInputTag
input tags for GT DAQ record
unsigned short cms_uint16_t
Definition: typedefs.h:13
L1GlobalTriggerRawToDigi(const edm::ParameterSet &)
constructor(s)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
int m_totalBxInEvent
number of Bx for a board, obtained from GTFE block (record length &amp; alternative)
void unpackTrailer(const unsigned char *, FEDTrailer &)
unpack trailer word
void unpackGMT(const unsigned char *, std::unique_ptr< L1MuGMTReadoutCollection > &, edm::Event &)
unpack the GMT record
void produceEmptyProducts(edm::Event &)
produce empty products in case of problems
const edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcd > m_trigPtScaleToken
EventSetup Token for L1MuTriggerPtScale.
void dumpFedRawData(const unsigned char *, int, std::ostream &)
dump FED raw data