CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GTEvmDigiToRaw.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1GlobalTriggerRawToDigi_L1GTEvmDigiToRaw_h
2 #define EventFilter_L1GlobalTriggerRawToDigi_L1GTEvmDigiToRaw_h
3 
20 // system include files
21 #include <memory>
22 
23 // user include files
26 
29 
33 
34 // forward declarations
36 
37 class L1GtfeWord;
38 class L1GtfeExtWord;
39 class L1TcsWord;
40 class L1GtFdlWord;
41 
42 // class declaration
44 {
45 
46 public:
47 
49  explicit L1GTEvmDigiToRaw(const edm::ParameterSet&);
50 
52  virtual ~L1GTEvmDigiToRaw();
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*, L1GtfeExtWord&,
71  cms_uint16_t activeBoardsGtValue);
72 
74  void packTCS(const edm::EventSetup& evSetup, unsigned char* ptrGt,
75  L1TcsWord& tcsBlock);
76 
78  void packFDL(const edm::EventSetup&, unsigned char*, L1GtFdlWord&);
79 
81  void packTrailer(unsigned char*, unsigned char*, int);
82 
84  virtual void endJob();
85 
86 private:
87 
91 
94 
97 
100 
104 
108 
111 
112 private:
113 
117 
118 };
119 
120 #endif // EventFilter_L1GlobalTriggerRawToDigi_L1GTEvmDigiToRaw_h
virtual void endJob()
end of job stuff
void packHeader(unsigned char *, edm::Event &)
block packers -------——
int m_totalBxInEvent
total Bx&#39;s in the event, obtained from GTFE block
cms_uint16_t m_activeBoardsMaskGt
mask for active boards
int m_bstLengthBytes
length of BST record (in bytes)
edm::InputTag m_evmGtInputTag
input tag for GT EVM record
virtual void produce(edm::Event &, const edm::EventSetup &)
loop over events
void packTrailer(unsigned char *, unsigned char *, int)
pack trailer word
unsigned short cms_uint16_t
Definition: typedefs.h:13
void packGTFE(const edm::EventSetup &, unsigned char *, L1GtfeExtWord &, cms_uint16_t activeBoardsGtValue)
int m_verbosity
verbosity level
virtual ~L1GTEvmDigiToRaw()
destructor
void packTCS(const edm::EventSetup &evSetup, unsigned char *ptrGt, L1TcsWord &tcsBlock)
pack the TCS block
void packFDL(const edm::EventSetup &, unsigned char *, L1GtFdlWord &)
pack FDL blocks for various bunch crosses
L1GTEvmDigiToRaw(const edm::ParameterSet &)
constructor(s)
virtual void beginJob()
beginning of job stuff