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 
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
L1GTEvmDigiToRaw::L1GTEvmDigiToRaw
L1GTEvmDigiToRaw(const edm::ParameterSet &)
constructor(s)
Definition: L1GTEvmDigiToRaw.cc:52
L1GTEvmDigiToRaw::m_isDebugEnabled
const bool m_isDebugEnabled
Definition: L1GTEvmDigiToRaw.h:105
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:104
EDProducer.h
L1GTEvmDigiToRaw::m_totalBxInEvent
int m_totalBxInEvent
total Bx's in the event, obtained from GTFE block
Definition: L1GTEvmDigiToRaw.h:89
L1GtfeWord
Definition: L1GtfeWord.h:30
ESGetToken.h
MakerMacros.h
L1GlobalTriggerEvmReadoutRecord.h
L1GTEvmDigiToRaw::m_maxBxInEvent
int m_maxBxInEvent
Definition: L1GTEvmDigiToRaw.h:97
L1GTEvmDigiToRaw::packTrailer
void packTrailer(unsigned char *, unsigned char *, int)
pack trailer word
Definition: L1GTEvmDigiToRaw.cc:576
typedefs.h
edm::ParameterSet
Definition: ParameterSet.h:47
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:79
L1GTEvmDigiToRaw::m_evmGtInputToken
const edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > m_evmGtInputToken
input tag for GT EVM record
Definition: L1GTEvmDigiToRaw.h:79
edm::stream::EDProducer
Definition: EDProducer.h:36
L1GTEvmDigiToRaw::m_evmGtInputTag
const edm::InputTag m_evmGtInputTag
Definition: L1GTEvmDigiToRaw.h:80
cms_uint16_t
unsigned short cms_uint16_t
Definition: typedefs.h:13
edm::EventSetup
Definition: EventSetup.h:58
L1GTEvmDigiToRaw::m_l1GtBMToken
const edm::ESGetToken< L1GtBoardMaps, L1GtBoardMapsRcd > m_l1GtBMToken
EventSetup Token for L1GtBoardMaps.
Definition: L1GTEvmDigiToRaw.h:83
L1GTEvmDigiToRaw::m_bstLengthBytes
int m_bstLengthBytes
length of BST record (in bytes)
Definition: L1GTEvmDigiToRaw.h:100
L1GtBoardMaps.h
edm::ESGetToken< L1GtBoardMaps, L1GtBoardMapsRcd >
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:76
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:93
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:86
L1GTEvmDigiToRaw
Definition: L1GTEvmDigiToRaw.h:45
L1GtBoardMapsRcd.h
L1GTEvmDigiToRaw::packTCS
void packTCS(const edm::EventSetup &evSetup, unsigned char *ptrGt, L1TcsWord &tcsBlock)
pack the TCS block
Definition: L1GTEvmDigiToRaw.cc:471