CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
32 
33 // forward declarations
37 
38 class L1GtfeWord;
39 class L1GtFdlWord;
40 class L1GtPsbWord;
41 
42 // class declaration
44 {
45 
46 public:
47 
49  explicit L1GTDigiToRaw(const edm::ParameterSet&);
50 
52  virtual ~L1GTDigiToRaw();
53 
54 private:
55 
57  virtual void beginJob();
58 
60  virtual void produce(edm::Event&, const edm::EventSetup&);
61 
63 
65  void packHeader(unsigned char*, edm::Event&);
66 
70  void packGTFE(const edm::EventSetup&, unsigned char*, L1GtfeWord&,
71  cms_uint16_t activeBoardsGtValue);
72 
74  void packFDL(const edm::EventSetup&, unsigned char*, L1GtFdlWord&);
75 
78  void packPSB(const edm::EventSetup&, unsigned char*, L1GtPsbWord&);
79 
81  unsigned int packGmtCollection(
82  unsigned char* ptrGt,
83  L1MuGMTReadoutCollection const* digis);
84 
86  unsigned int packGMT(L1MuGMTReadoutRecord const&, unsigned char*);
87  unsigned int flipPtQ(unsigned int);
88 
90  void packTrailer(unsigned char*, unsigned char*, int);
91 
93  virtual void endJob();
94 
95 private:
96 
100 
103 
106 
109 
112 
116 
120 
121 private:
122 
126 
127 };
128 
129 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GTDigiToRaw_h
void packFDL(const edm::EventSetup &, unsigned char *, L1GtFdlWord &)
pack FDL blocks for various bunch crosses
virtual void beginJob()
beginning of job stuff
void packHeader(unsigned char *, edm::Event &)
block packers -------——
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
edm::InputTag m_daqGtInputTag
input tag for GT DAQ record
edm::InputTag m_muGmtInputTag
input tag for GMT record
void packPSB(const edm::EventSetup &, unsigned char *, L1GtPsbWord &)
unsigned int packGMT(L1MuGMTReadoutRecord const &, unsigned char *)
pack a GMT record
void packTrailer(unsigned char *, unsigned char *, int)
pack trailer word
unsigned short cms_uint16_t
Definition: typedefs.h:13
virtual void endJob()
end of job stuff
virtual ~L1GTDigiToRaw()
destructor
unsigned int packGmtCollection(unsigned char *ptrGt, L1MuGMTReadoutCollection const *digis)
pack the GMT collection using packGMT (GMT record packing)
void packGTFE(const edm::EventSetup &, unsigned char *, L1GtfeWord &, cms_uint16_t activeBoardsGtValue)
unsigned int flipPtQ(unsigned int)
int m_verbosity
verbosity level
virtual void produce(edm::Event &, const edm::EventSetup &)
loop over events
int m_totalBxInEvent
total Bx&#39;s in the event, obtained from GTFE block
L1GTDigiToRaw(const edm::ParameterSet &)
constructor(s)