CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
35 
36 // forward declarations
38 
39 class L1GtfeWord;
40 class L1GtfeExtWord;
41 class L1TcsWord;
42 class L1GtFdlWord;
43 
44 // class declaration
46 public:
48  explicit L1GTEvmDigiToRaw(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*, L1GtfeExtWord&, cms_uint16_t activeBoardsGtValue);
63 
65  void packTCS(const edm::EventSetup& evSetup, unsigned char* ptrGt, L1TcsWord& tcsBlock);
66 
68  void packFDL(const edm::EventSetup&, unsigned char*, L1GtFdlWord&);
69 
71  void packTrailer(unsigned char*, unsigned char*, int);
72 
73 private:
77 
81 
84 
87 
90 
94 
98 
101 
102 private:
104  const int m_verbosity;
105  const bool m_isDebugEnabled;
106 };
107 
108 #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::ESGetToken< L1GtBoardMaps, L1GtBoardMapsRcd > m_l1GtBMToken
EventSetup Token for L1GtBoardMaps.
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > m_evmGtInputToken
input tag for GT EVM record