CMS 3D CMS Logo

L1GTEvmDigiToRaw.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1GlobalTriggerRawToDigi_L1GTEvmDigiToRaw_h
2 #define EventFilter_L1GlobalTriggerRawToDigi_L1GTEvmDigiToRaw_h
3 
18 // system include files
19 #include <memory>
20 
21 // user include files
24 
27 
32 
33 // forward declarations
35 
36 class L1GtfeWord;
37 class L1GtfeExtWord;
38 class L1TcsWord;
39 class L1GtFdlWord;
40 
41 // class declaration
43 public:
45  explicit L1GTEvmDigiToRaw(const edm::ParameterSet&);
46 
47 private:
49  void produce(edm::Event&, const edm::EventSetup&) override;
50 
52 
54  void packHeader(unsigned char*, edm::Event&);
55 
59  void packGTFE(const edm::EventSetup&, unsigned char*, L1GtfeExtWord&, cms_uint16_t activeBoardsGtValue);
60 
62  void packTCS(const edm::EventSetup& evSetup, unsigned char* ptrGt, L1TcsWord& tcsBlock);
63 
65  void packFDL(const edm::EventSetup&, unsigned char*, L1GtFdlWord&);
66 
68  void packTrailer(unsigned char*, unsigned char*, int);
69 
70 private:
74 
78 
81 
84 
88 
92 
95 
96 private:
98  const int m_verbosity;
99  const bool m_isDebugEnabled;
100 };
101 
102 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GTEvmDigiToRaw_h
void packHeader(unsigned char *, edm::Event &)
block packers -------——
const bool m_isDebugEnabled
int m_totalBxInEvent
total Bx&#39;s in the event, obtained from GTFE block
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
const edm::InputTag m_evmGtInputTag
int m_bstLengthBytes
length of BST record (in bytes)
const int m_verbosity
verbosity level
void packTrailer(unsigned char *, unsigned char *, int)
pack trailer word
unsigned short cms_uint16_t
Definition: typedefs.h:13
void packGTFE(const edm::EventSetup &, unsigned char *, L1GtfeExtWord &, cms_uint16_t activeBoardsGtValue)
void packTCS(const edm::EventSetup &evSetup, unsigned char *ptrGt, L1TcsWord &tcsBlock)
pack the TCS block
void produce(edm::Event &, const edm::EventSetup &) override
loop over events
void packFDL(const edm::EventSetup &, unsigned char *, L1GtFdlWord &)
pack FDL blocks for various bunch crosses
L1GTEvmDigiToRaw(const edm::ParameterSet &)
constructor(s)
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > m_evmGtInputToken
input tag for GT EVM record