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 
33 
37 
38 // forward declarations
42 
43 class L1GtfeWord;
44 class L1GtFdlWord;
45 class L1GtPsbWord;
46 
47 // class declaration
49 public:
51  explicit L1GTDigiToRaw(const edm::ParameterSet&);
52 
53 private:
55  void produce(edm::Event&, const edm::EventSetup&) override;
56 
58 
60  void packHeader(unsigned char*, edm::Event&);
61 
65  void packGTFE(const edm::EventSetup&, unsigned char*, L1GtfeWord&, cms_uint16_t activeBoardsGtValue);
66 
68  void packFDL(const edm::EventSetup&, unsigned char*, L1GtFdlWord&);
69 
72  void packPSB(const edm::EventSetup&, unsigned char*, L1GtPsbWord&);
73 
75  unsigned int packGmtCollection(unsigned char* ptrGt, L1MuGMTReadoutCollection const* digis);
76 
78  unsigned int packGMT(L1MuGMTReadoutRecord const&, unsigned char*);
79  unsigned int flipPtQ(unsigned int);
80 
82  void packTrailer(unsigned char*, unsigned char*, int);
83 
84 private:
88 
91 
96 
99 
102 
105 
109 
113 
114 private:
118 };
119 
120 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GTDigiToRaw_h
L1GTDigiToRaw::packGTFE
void packGTFE(const edm::EventSetup &, unsigned char *, L1GtfeWord &, cms_uint16_t activeBoardsGtValue)
Definition: L1GTDigiToRaw.cc:481
L1GTDigiToRaw::flipPtQ
unsigned int flipPtQ(unsigned int)
Definition: L1GTDigiToRaw.cc:739
L1GTDigiToRaw::m_minBxInEvent
int m_minBxInEvent
Definition: L1GTDigiToRaw.h:108
L1GTDigiToRaw::packHeader
void packHeader(unsigned char *, edm::Event &)
block packers ----------—
Definition: L1GTDigiToRaw.cc:440
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord >
FEDRawDataCollection
Definition: FEDRawDataCollection.h:18
L1GTDigiToRaw::packPSB
void packPSB(const edm::EventSetup &, unsigned char *, L1GtPsbWord &)
Definition: L1GTDigiToRaw.cc:583
EDProducer.h
L1GTDigiToRaw::m_activeBoardsMaskGt
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
Definition: L1GTDigiToRaw.h:101
L1GtfeWord
Definition: L1GtfeWord.h:30
L1GtPsbWord
Definition: L1GtPsbWord.h:29
ESGetToken.h
L1GTDigiToRaw::m_verbosity
int m_verbosity
verbosity level
Definition: L1GTDigiToRaw.h:116
MakerMacros.h
L1MuGMTReadoutRecord
Definition: L1MuGMTReadoutRecord.h:44
L1GTDigiToRaw::packGmtCollection
unsigned int packGmtCollection(unsigned char *ptrGt, L1MuGMTReadoutCollection const *digis)
pack the GMT collection using packGMT (GMT record packing)
Definition: L1GTDigiToRaw.cc:627
typedefs.h
L1GTDigiToRaw::m_daqGtInputToken
const edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_daqGtInputToken
input tag for GT DAQ record
Definition: L1GTDigiToRaw.h:90
L1GTDigiToRaw::L1GTDigiToRaw
L1GTDigiToRaw(const edm::ParameterSet &)
constructor(s)
Definition: L1GTDigiToRaw.cc:54
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
L1GTDigiToRaw::packGMT
unsigned int packGMT(L1MuGMTReadoutRecord const &, unsigned char *)
pack a GMT record
Definition: L1GTDigiToRaw.cc:645
L1GtFdlWord
Definition: L1GtFdlWord.h:29
L1GTDigiToRaw::m_muGmtInputToken
const edm::EDGetTokenT< L1MuGMTReadoutCollection > m_muGmtInputToken
input tag for GMT record
Definition: L1GTDigiToRaw.h:93
L1GTDigiToRaw::m_muGmtInputTag
const edm::InputTag m_muGmtInputTag
Definition: L1GTDigiToRaw.h:95
L1GTDigiToRaw::packTrailer
void packTrailer(unsigned char *, unsigned char *, int)
pack trailer word
Definition: L1GTDigiToRaw.cc:742
L1GTDigiToRaw::m_totalBxInEvent
int m_totalBxInEvent
total Bx's in the event, obtained from GTFE block
Definition: L1GTDigiToRaw.h:104
edm::stream::EDProducer
Definition: EDProducer.h:38
cms_uint16_t
unsigned short cms_uint16_t
Definition: typedefs.h:13
edm::EventSetup
Definition: EventSetup.h:57
L1GTDigiToRaw::m_isDebugEnabled
bool m_isDebugEnabled
Definition: L1GTDigiToRaw.h:117
L1GtBoardMaps.h
edm::ESGetToken< L1GtBoardMaps, L1GtBoardMapsRcd >
InputTag.h
L1MuGMTReadoutCollection
Definition: L1MuGMTReadoutCollection.h:39
L1GTDigiToRaw::m_maxBxInEvent
int m_maxBxInEvent
Definition: L1GTDigiToRaw.h:112
L1GTDigiToRaw::m_daqGtFedId
int m_daqGtFedId
Definition: L1GTDigiToRaw.h:87
Frameworkfwd.h
L1GTDigiToRaw
Definition: L1GTDigiToRaw.h:48
L1GTDigiToRaw::m_l1GtBMToken
const edm::ESGetToken< L1GtBoardMaps, L1GtBoardMapsRcd > m_l1GtBMToken
EventSetup Token for L1GtBoardMaps.
Definition: L1GTDigiToRaw.h:98
L1GTDigiToRaw::produce
void produce(edm::Event &, const edm::EventSetup &) override
loop over events
Definition: L1GTDigiToRaw.cc:88
ParameterSet.h
edm::Event
Definition: Event.h:73
L1GTDigiToRaw::packFDL
void packFDL(const edm::EventSetup &, unsigned char *, L1GtFdlWord &)
pack FDL blocks for various bunch crosses
Definition: L1GTDigiToRaw.cc:527
edm::InputTag
Definition: InputTag.h:15
L1GlobalTriggerReadoutRecord.h
L1GtBoardMapsRcd.h
L1GTDigiToRaw::m_daqGtInputTag
const edm::InputTag m_daqGtInputTag
Definition: L1GTDigiToRaw.h:94