CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GlobalTriggerRawToDigi.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerRawToDigi_h
2 #define EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerRawToDigi_h
3 
21 // system include files
22 #include <memory>
23 #include <iostream>
24 
25 // user include files
28 
31 
35 
36 // forward declarations
37 class L1GtfeWord;
38 class L1GtFdlWord;
39 class L1GtPsbWord;
40 
42 
43 class FEDHeader;
44 class FEDTrailer;
45 
46 class L1MuTriggerScales;
47 class L1MuTriggerPtScale;
48 
49 
50 // class declaration
52 {
53 
54 public:
55 
58 
60  virtual ~L1GlobalTriggerRawToDigi();
61 
62 private:
63 
64  virtual void beginJob();
65 
66  virtual void produce(edm::Event&, const edm::EventSetup&);
67 
69 
71  void unpackHeader(const unsigned char*, FEDHeader&);
72 
77  void unpackPSB(const edm::EventSetup&, const unsigned char*, L1GtPsbWord&);
78 
80  void unpackGMT(const unsigned char*, std::auto_ptr<L1MuGMTReadoutCollection>&,edm::Event&);
81 
83  void unpackTrailer(const unsigned char*, FEDTrailer&);
84 
85 
88 
89 
91  void dumpFedRawData(const unsigned char*, int, std::ostream&);
92 
94  virtual void endJob();
95 
96 private:
97 
101 
104 
108 
111 
112  // number of bunch crossing to be unpacked
114 
118 
122 
124  //
127 
130 
133 
134 
138 
139 private:
140 
144 
145 
146 };
147 
148 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GlobalTriggerRawToDigi_h
const L1MuTriggerScales * m_TriggerScales
muon trigger scales to convert unpacked data into physical quantities
void unpackHeader(const unsigned char *, FEDHeader &)
block unpackers
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
virtual void produce(edm::Event &, const edm::EventSetup &)
int m_recordLength0
total Bx&#39;s in the event, obtained from GTFE block
void unpackPSB(const edm::EventSetup &, const unsigned char *, L1GtPsbWord &)
const L1MuTriggerPtScale * m_TriggerPtScale
int m_recordLength1
corresponding to alternative 1 in altNrBxBoard()
edm::InputTag m_daqGtInputTag
input tags for GT DAQ record
unsigned short cms_uint16_t
Definition: typedefs.h:13
L1GlobalTriggerRawToDigi(const edm::ParameterSet &)
constructor(s)
void unpackGMT(const unsigned char *, std::auto_ptr< L1MuGMTReadoutCollection > &, edm::Event &)
unpack the GMT record
int m_totalBxInEvent
number of Bx for a board, obtained from GTFE block (record length &amp; alternative)
void unpackTrailer(const unsigned char *, FEDTrailer &)
unpack trailer word
virtual ~L1GlobalTriggerRawToDigi()
destructor
void produceEmptyProducts(edm::Event &)
produce empty products in case of problems
void dumpFedRawData(const unsigned char *, int, std::ostream &)
dump FED raw data