CMS 3D CMS Logo

L1GTDigiToRaw.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1GlobalTriggerRawToDigi_L1GTDigiToRaw_h
2 #define EventFilter_L1GlobalTriggerRawToDigi_L1GTDigiToRaw_h
3 
19 // system include files
20 #include <memory>
21 
22 // user include files
25 
28 
32 
34 
35 // forward declarations
39 
40 class L1GtfeWord;
41 class L1GtFdlWord;
42 class L1GtPsbWord;
43 
44 // class declaration
46 public:
48  explicit L1GTDigiToRaw(const edm::ParameterSet&);
49 
50 private:
52  void produce(edm::Event&, const edm::EventSetup&) override;
53 
55 
57  void packHeader(unsigned char*, edm::Event&);
58 
62  void packGTFE(const edm::EventSetup&, unsigned char*, L1GtfeWord&, cms_uint16_t activeBoardsGtValue);
63 
65  void packFDL(const edm::EventSetup&, unsigned char*, L1GtFdlWord&);
66 
69  void packPSB(const edm::EventSetup&, unsigned char*, L1GtPsbWord&);
70 
72  unsigned int packGmtCollection(unsigned char* ptrGt, L1MuGMTReadoutCollection const* digis);
73 
75  unsigned int packGMT(L1MuGMTReadoutRecord const&, unsigned char*);
76  unsigned int flipPtQ(unsigned int);
77 
79  void packTrailer(unsigned char*, unsigned char*, int);
80 
81 private:
85 
88 
93 
96 
99 
103 
107 
108 private:
112 };
113 
114 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GTDigiToRaw_h
void packFDL(const edm::EventSetup &, unsigned char *, L1GtFdlWord &)
pack FDL blocks for various bunch crosses
const edm::EDGetTokenT< L1MuGMTReadoutCollection > m_muGmtInputToken
input tag for GMT record
Definition: L1GTDigiToRaw.h:90
void packHeader(unsigned char *, edm::Event &)
block packers -------——
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
Definition: L1GTDigiToRaw.h:95
void packPSB(const edm::EventSetup &, unsigned char *, L1GtPsbWord &)
unsigned int packGMT(L1MuGMTReadoutRecord const &, unsigned char *)
pack a GMT record
const edm::InputTag m_muGmtInputTag
Definition: L1GTDigiToRaw.h:92
void packTrailer(unsigned char *, unsigned char *, int)
pack trailer word
unsigned short cms_uint16_t
Definition: typedefs.h:13
const edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_daqGtInputToken
input tag for GT DAQ record
Definition: L1GTDigiToRaw.h:87
const edm::InputTag m_daqGtInputTag
Definition: L1GTDigiToRaw.h:91
unsigned int packGmtCollection(unsigned char *ptrGt, L1MuGMTReadoutCollection const *digis)
pack the GMT collection using packGMT (GMT record packing)
void packGTFE(const edm::EventSetup &, unsigned char *, L1GtfeWord &, cms_uint16_t activeBoardsGtValue)
unsigned int flipPtQ(unsigned int)
void produce(edm::Event &, const edm::EventSetup &) override
loop over events
int m_verbosity
verbosity level
int m_totalBxInEvent
total Bx&#39;s in the event, obtained from GTFE block
Definition: L1GTDigiToRaw.h:98
L1GTDigiToRaw(const edm::ParameterSet &)
constructor(s)