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 
21 // system include files
22 #include <memory>
23 
24 #include <boost/cstdint.hpp>
25 
26 // user include files
29 
32 
35 
36 // forward declarations
40 
41 class L1GtfeWord;
42 class L1GtFdlWord;
43 class L1GtPsbWord;
44 
45 // class declaration
47 {
48 
49 public:
50 
52  explicit L1GTDigiToRaw(const edm::ParameterSet&);
53 
55  virtual ~L1GTDigiToRaw();
56 
57 private:
58 
60  virtual void beginJob();
61 
63  virtual void produce(edm::Event&, const edm::EventSetup&);
64 
66 
68  void packHeader(unsigned char*, edm::Event&);
69 
73  void packGTFE(const edm::EventSetup&, unsigned char*, L1GtfeWord&,
74  boost::uint16_t activeBoardsGtValue);
75 
77  void packFDL(const edm::EventSetup&, unsigned char*, L1GtFdlWord&);
78 
81  void packPSB(const edm::EventSetup&, unsigned char*, L1GtPsbWord&);
82 
84  unsigned int packGmtCollection(
85  unsigned char* ptrGt,
86  L1MuGMTReadoutCollection const* digis);
87 
89  unsigned int packGMT(L1MuGMTReadoutRecord const&, unsigned char*);
90  unsigned int flipPtQ(unsigned int);
91 
93  void packTrailer(unsigned char*, unsigned char*, int);
94 
96  virtual void endJob();
97 
98 private:
99 
103 
106 
109 
111  boost::uint16_t m_activeBoardsMaskGt;
112 
115 
119 
123 
124 private:
125 
129 
130 };
131 
132 #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 -------——
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
virtual void endJob()
end of job stuff
virtual ~L1GTDigiToRaw()
destructor
void packGTFE(const edm::EventSetup &, unsigned char *, L1GtfeWord &, boost::uint16_t activeBoardsGtValue)
boost::uint16_t m_activeBoardsMaskGt
mask for active boards
unsigned int packGmtCollection(unsigned char *ptrGt, L1MuGMTReadoutCollection const *digis)
pack the GMT collection using packGMT (GMT record packing)
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)