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
L1GTEvmDigiToRaw::L1GTEvmDigiToRaw
L1GTEvmDigiToRaw(const edm::ParameterSet &)
constructor(s)
Definition: L1GTEvmDigiToRaw.cc:52
L1GTEvmDigiToRaw::m_isDebugEnabled
const bool m_isDebugEnabled
Definition: L1GTEvmDigiToRaw.h:99
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord >
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
L1TcsWord
Definition: L1TcsWord.h:29
L1GTEvmDigiToRaw::m_verbosity
const int m_verbosity
verbosity level
Definition: L1GTEvmDigiToRaw.h:98
EDProducer.h
L1GTEvmDigiToRaw::m_totalBxInEvent
int m_totalBxInEvent
total Bx's in the event, obtained from GTFE block
Definition: L1GTEvmDigiToRaw.h:83
L1GtfeWord
Definition: L1GtfeWord.h:30
MakerMacros.h
L1GlobalTriggerEvmReadoutRecord.h
L1GTEvmDigiToRaw::m_maxBxInEvent
int m_maxBxInEvent
Definition: L1GTEvmDigiToRaw.h:91
L1GTEvmDigiToRaw::packTrailer
void packTrailer(unsigned char *, unsigned char *, int)
pack trailer word
Definition: L1GTEvmDigiToRaw.cc:576
typedefs.h
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
L1GTEvmDigiToRaw::packHeader
void packHeader(unsigned char *, edm::Event &)
block packers ----------—
Definition: L1GTEvmDigiToRaw.cc:380
L1GtFdlWord
Definition: L1GtFdlWord.h:29
L1GTEvmDigiToRaw::produce
void produce(edm::Event &, const edm::EventSetup &) override
loop over events
Definition: L1GTEvmDigiToRaw.cc:78
L1GTEvmDigiToRaw::m_evmGtInputToken
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > m_evmGtInputToken
input tag for GT EVM record
Definition: L1GTEvmDigiToRaw.h:76
edm::stream::EDProducer
Definition: EDProducer.h:38
L1GTEvmDigiToRaw::m_evmGtInputTag
const edm::InputTag m_evmGtInputTag
Definition: L1GTEvmDigiToRaw.h:77
cms_uint16_t
unsigned short cms_uint16_t
Definition: typedefs.h:13
edm::EventSetup
Definition: EventSetup.h:57
L1GTEvmDigiToRaw::m_bstLengthBytes
int m_bstLengthBytes
length of BST record (in bytes)
Definition: L1GTEvmDigiToRaw.h:94
L1GtfeExtWord
Definition: L1GtfeExtWord.h:31
InputTag.h
L1GTEvmDigiToRaw::packGTFE
void packGTFE(const edm::EventSetup &, unsigned char *, L1GtfeExtWord &, cms_uint16_t activeBoardsGtValue)
Definition: L1GTEvmDigiToRaw.cc:421
Frameworkfwd.h
L1GTEvmDigiToRaw::m_evmGtFedId
int m_evmGtFedId
Definition: L1GTEvmDigiToRaw.h:73
L1GTEvmDigiToRaw::packFDL
void packFDL(const edm::EventSetup &, unsigned char *, L1GtFdlWord &)
pack FDL blocks for various bunch crosses
Definition: L1GTEvmDigiToRaw.cc:520
ParameterSet.h
L1GTEvmDigiToRaw::m_minBxInEvent
int m_minBxInEvent
Definition: L1GTEvmDigiToRaw.h:87
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
L1GTEvmDigiToRaw::m_activeBoardsMaskGt
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
Definition: L1GTEvmDigiToRaw.h:80
L1GTEvmDigiToRaw
Definition: L1GTEvmDigiToRaw.h:42
L1GTEvmDigiToRaw::packTCS
void packTCS(const edm::EventSetup &evSetup, unsigned char *ptrGt, L1TcsWord &tcsBlock)
pack the TCS block
Definition: L1GTEvmDigiToRaw.cc:471