CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtDataEmulAnalyzer.h
Go to the documentation of this file.
1 #ifndef GlobalTriggerAnalyzer_L1GtDataEmulAnalyzer_h
2 #define GlobalTriggerAnalyzer_L1GtDataEmulAnalyzer_h
3 
21 // system include files
22 #include <memory>
23 #include <string>
24 
25 // user include files
28 
31 
34 
35 // forward declarations
36 class L1GtfeWord;
37 class L1GtFdlWord;
38 class L1GtPsbWord;
39 class L1TcsWord;
40 class L1GtTriggerMenu;
41 class L1GtTriggerMask;
42 
43 class TH1F;
44 class TH1D;
45 class TH2D;
46 class TTree;
47 
48 // class declaration
49 
51 {
52 
53 public:
54  explicit L1GtDataEmulAnalyzer(const edm::ParameterSet&);
56 
57 private:
58 
59  virtual void beginJob();
60 
62  virtual void compareGTFE(const edm::Event&, const edm::EventSetup&,
63  const L1GtfeWord&, const L1GtfeWord&);
64 
66  virtual void compareFDL(const edm::Event&, const edm::EventSetup&,
67  const L1GtFdlWord&, const L1GtFdlWord&, const int);
68 
70  virtual void comparePSB(const edm::Event&, const edm::EventSetup&,
71  const L1GtPsbWord&, const L1GtPsbWord&);
72 
74  virtual void compareTCS(const edm::Event&, const edm::EventSetup&,
75  const L1TcsWord&, const L1TcsWord&);
76 
78  virtual void compareDaqRecord(const edm::Event&, const edm::EventSetup&);
79 
81  virtual void compareEvmRecord(const edm::Event&, const edm::EventSetup&);
82 
85  virtual void compareGt_Gct(const edm::Event&, const edm::EventSetup&);
86 
88  virtual void analyze(const edm::Event&, const edm::EventSetup&);
89 
91  void bookHistograms();
92 
94  virtual void endJob();
95 
96 private:
97 
100 
103 
106 
107 private:
108 
111  std::ostringstream m_myCoutStream;
112 
116 
117  // cached stuff
118 
121  unsigned long long m_l1GtMenuCacheID;
122 
125  unsigned long long m_l1GtTmAlgoCacheID;
126 
128  unsigned long long m_l1GtTmTechCacheID;
129 
130  std::vector<unsigned int> m_triggerMaskAlgoTrig;
131  std::vector<unsigned int> m_triggerMaskTechTrig;
132 
133 private:
134 
136 
139 
140  static const int TotalBxInEvent = 5;
141 
144 
147 
150 
153 
156 
159 
162 
164 
168 
172 
174 
175 
176 };
177 
178 #endif /*GlobalTriggerAnalyzer_L1GtDataEmulAnalyzer_h*/
TH1F * m_gtfeDataEmul
histograms
TH1F * m_fdlEmulTechDecision[TotalBxInEvent][2]
virtual void compareTCS(const edm::Event &, const edm::EventSetup &, const L1TcsWord &, const L1TcsWord &)
compare the TCS board
TH1F * m_fdlDataEmul[TotalBxInEvent][2]
FDL (0 for DAQ, 1 for EVM record)
TH1F * m_fdlEmulAlgoDecision[TotalBxInEvent][2]
std::vector< unsigned int > m_triggerMaskTechTrig
virtual void compareDaqRecord(const edm::Event &, const edm::EventSetup &)
L1 GT DAQ record comparison.
TH1F * m_fdlDataEmulAlgoDecisionMask[TotalBxInEvent][2]
unsigned long long m_l1GtTmTechCacheID
virtual void compareGTFE(const edm::Event &, const edm::EventSetup &, const L1GtfeWord &, const L1GtfeWord &)
compare the GTFE board
L1GtDataEmulAnalyzer(const edm::ParameterSet &)
TH1F * m_fdlEmulAlgoDecisionMask[TotalBxInEvent][2]
virtual void analyze(const edm::Event &, const edm::EventSetup &)
analyze each event
virtual void endJob()
end of job
TH1F * m_fdlDataEmulTechDecisionMask[TotalBxInEvent][2]
edm::InputTag m_l1GtEmulInputTag
input tag for the L1 GT emulator DAQ/EVM record
void bookHistograms()
book all histograms for the module
std::ostringstream m_myCoutStream
TH1F * m_fdlDataAlgoDecisionMask[TotalBxInEvent][2]
TH1F * m_fdlEmulTechDecisionMask[TotalBxInEvent][2]
const L1GtTriggerMenu * m_l1GtMenu
trigger menu
std::vector< unsigned int > m_triggerMaskAlgoTrig
TH1F * m_fdlDataEmulTechDecision[TotalBxInEvent][2]
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks
TH1F * m_fdlDataAlgoDecision[TotalBxInEvent][2]
static const int TotalBxInEvent
TH1F * m_fdlDataEmulAlgoDecision[TotalBxInEvent][2]
virtual void compareGt_Gct(const edm::Event &, const edm::EventSetup &)
edm::InputTag m_l1GtDataInputTag
input tag for the L1 GT hardware DAQ/EVM record
unsigned long long m_l1GtMenuCacheID
TH1F * m_fdlDataTechDecisionMask[TotalBxInEvent][2]
virtual void compareFDL(const edm::Event &, const edm::EventSetup &, const L1GtFdlWord &, const L1GtFdlWord &, const int)
compare the FDL board
virtual void compareEvmRecord(const edm::Event &, const edm::EventSetup &)
L1 GT EVM record comparison.
const L1GtTriggerMask * m_l1GtTmTech
TH1F * m_fdlDataTechDecision[TotalBxInEvent][2]
unsigned long long m_l1GtTmAlgoCacheID
edm::InputTag m_l1GctDataInputTag
input tag for the L1 GCT hardware record
virtual void comparePSB(const edm::Event &, const edm::EventSetup &, const L1GtPsbWord &, const L1GtPsbWord &)
compare the PSB board