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 
48 // class declaration
50 {
51 
52 public:
53 
56 
58  ~L1GlobalTriggerRawToDigi() override;
59 
60  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
61 
62 private:
63 
64  void produce(edm::Event&, const edm::EventSetup&) override;
65 
67 
69  void unpackHeader(const unsigned char*, FEDHeader&);
70 
75  void unpackPSB(const edm::EventSetup&, const unsigned char*, L1GtPsbWord&);
76 
78  void unpackGMT(const unsigned char*, std::unique_ptr<L1MuGMTReadoutCollection>&,edm::Event&);
79 
81  void unpackTrailer(const unsigned char*, FEDTrailer&);
82 
83 
86 
87 
89  void dumpFedRawData(const unsigned char*, int, std::ostream&);
90 
91 
92 private:
93 
97 
100 
104 
107 
108  // number of bunch crossing to be unpacked
110 
114 
118 
120  //
123 
126 
129 
130 
134 
135 private:
136 
140 
141 
142 };
143 
144 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerRawToDigi_h
const L1MuTriggerScales * m_TriggerScales
muon trigger scales to convert unpacked data into physical quantities
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 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 & 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
void dumpFedRawData(const unsigned char *, int, std::ostream &)
dump FED raw data