CMS 3D CMS Logo

L1GtDataEmulAnalyzer.h
Go to the documentation of this file.
1 #ifndef GlobalTriggerAnalyzer_L1GtDataEmulAnalyzer_h
2 #define GlobalTriggerAnalyzer_L1GtDataEmulAnalyzer_h
3 
19 // system include files
20 #include <memory>
21 #include <string>
22 
23 // user include files
26 
29 
32 
33 // forward declarations
34 class L1GtfeWord;
35 class L1GtFdlWord;
36 class L1GtPsbWord;
37 class L1TcsWord;
38 class L1GtTriggerMenu;
39 class L1GtTriggerMask;
40 
41 class TH1F;
42 class TH1D;
43 class TH2D;
44 class TTree;
45 
46 // class declaration
47 
49 public:
50  explicit L1GtDataEmulAnalyzer(const edm::ParameterSet&);
51  ~L1GtDataEmulAnalyzer() override;
52 
53 private:
54  void beginJob() override;
55 
57  virtual void compareGTFE(const edm::Event&, const edm::EventSetup&, const L1GtfeWord&, const L1GtfeWord&);
58 
60  virtual void compareFDL(const edm::Event&, const edm::EventSetup&, const L1GtFdlWord&, const L1GtFdlWord&, const int);
61 
63  virtual void comparePSB(const edm::Event&, const edm::EventSetup&, const L1GtPsbWord&, const L1GtPsbWord&);
64 
66  virtual void compareTCS(const edm::Event&, const edm::EventSetup&, const L1TcsWord&, const L1TcsWord&);
67 
69  virtual void compareDaqRecord(const edm::Event&, const edm::EventSetup&);
70 
72  virtual void compareEvmRecord(const edm::Event&, const edm::EventSetup&);
73 
76  virtual void compareGt_Gct(const edm::Event&, const edm::EventSetup&);
77 
79  void analyze(const edm::Event&, const edm::EventSetup&) override;
80 
82  void bookHistograms();
83 
85  void endJob() override;
86 
87 private:
90 
93 
96 
97 private:
100  std::ostringstream m_myCoutStream;
101 
105 
106  // cached stuff
107 
110  unsigned long long m_l1GtMenuCacheID;
111 
114  unsigned long long m_l1GtTmAlgoCacheID;
115 
117  unsigned long long m_l1GtTmTechCacheID;
118 
119  std::vector<unsigned int> m_triggerMaskAlgoTrig;
120  std::vector<unsigned int> m_triggerMaskTechTrig;
121 
122 private:
124 
127 
128  static const int TotalBxInEvent = 5;
129 
132 
135 
138 
141 
144 
147 
150 
152 
156 
160 
162 };
163 
164 #endif /*GlobalTriggerAnalyzer_L1GtDataEmulAnalyzer_h*/
L1GtDataEmulAnalyzer::m_fdlEmulTechDecision
TH1F * m_fdlEmulTechDecision[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:143
L1GtDataEmulAnalyzer::m_l1GtTmAlgoCacheID
unsigned long long m_l1GtTmAlgoCacheID
Definition: L1GtDataEmulAnalyzer.h:114
L1GtDataEmulAnalyzer::m_fdlDataEmulAlgoDecision
TH1F * m_fdlDataEmulAlgoDecision[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:139
L1GtDataEmulAnalyzer::m_fdlEmulAlgoDecision_Err
TH1F * m_fdlEmulAlgoDecision_Err[2]
Definition: L1GtDataEmulAnalyzer.h:154
L1GtDataEmulAnalyzer::beginJob
void beginJob() override
Definition: L1GtDataEmulAnalyzer.cc:86
L1TcsWord
Definition: L1TcsWord.h:29
L1GtDataEmulAnalyzer::m_fdlDataEmulTechDecisionMask
TH1F * m_fdlDataEmulTechDecisionMask[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:149
L1GtDataEmulAnalyzer::compareGt_Gct
virtual void compareGt_Gct(const edm::Event &, const edm::EventSetup &)
Definition: L1GtDataEmulAnalyzer.cc:1072
L1GtDataEmulAnalyzer::bookHistograms
void bookHistograms()
book all histograms for the module
Definition: L1GtDataEmulAnalyzer.cc:1089
EDAnalyzer.h
L1GtfeWord
Definition: L1GtfeWord.h:30
L1GtDataEmulAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
analyze each event
Definition: L1GtDataEmulAnalyzer.cc:1077
L1GtPsbWord
Definition: L1GtPsbWord.h:29
L1GtDataEmulAnalyzer::compareTCS
virtual void compareTCS(const edm::Event &, const edm::EventSetup &, const L1TcsWord &, const L1TcsWord &)
compare the TCS board
Definition: L1GtDataEmulAnalyzer.cc:935
L1GtDataEmulAnalyzer::m_fdlEmulTechDecisionMask
TH1F * m_fdlEmulTechDecisionMask[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:146
L1GtDataEmulAnalyzer::compareDaqRecord
virtual void compareDaqRecord(const edm::Event &, const edm::EventSetup &)
L1 GT DAQ record comparison.
Definition: L1GtDataEmulAnalyzer.cc:943
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
MakerMacros.h
L1GtDataEmulAnalyzer
Definition: L1GtDataEmulAnalyzer.h:48
L1GtDataEmulAnalyzer::m_l1GtTmTechCacheID
unsigned long long m_l1GtTmTechCacheID
Definition: L1GtDataEmulAnalyzer.h:117
L1GtDataEmulAnalyzer::m_nrDataEventError
int m_nrDataEventError
counters
Definition: L1GtDataEmulAnalyzer.h:103
L1GtTriggerMask
Definition: L1GtTriggerMask.h:33
L1GtDataEmulAnalyzer::m_fdlEmulAlgoDecision
TH1F * m_fdlEmulAlgoDecision[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:134
L1GtDataEmulAnalyzer::m_fdlDataTechDecisionMask
TH1F * m_fdlDataTechDecisionMask[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:145
L1GtDataEmulAnalyzer::endJob
void endJob() override
end of job
Definition: L1GtDataEmulAnalyzer.cc:1364
L1GtDataEmulAnalyzer::m_fdlDataAlgoDecision_Err
TH1F * m_fdlDataAlgoDecision_Err[2]
Definition: L1GtDataEmulAnalyzer.h:153
L1GtDataEmulAnalyzer::m_nrEmulEventError
int m_nrEmulEventError
Definition: L1GtDataEmulAnalyzer.h:104
L1GtDataEmulAnalyzer::m_fdlDataEmulAlgoDecisionMask
TH1F * m_fdlDataEmulAlgoDecisionMask[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:140
edm::ParameterSet
Definition: ParameterSet.h:47
L1GtDataEmulAnalyzer::m_l1GtMenu
const L1GtTriggerMenu * m_l1GtMenu
trigger menu
Definition: L1GtDataEmulAnalyzer.h:109
L1GtDataEmulAnalyzer::compareGTFE
virtual void compareGTFE(const edm::Event &, const edm::EventSetup &, const L1GtfeWord &, const L1GtfeWord &)
compare the GTFE board
Definition: L1GtDataEmulAnalyzer.cc:91
L1GtTriggerMenu
Definition: L1GtTriggerMenu.h:48
Event.h
L1GtDataEmulAnalyzer::m_fdlDataEmul
TH1F * m_fdlDataEmul[TotalBxInEvent][2]
FDL (0 for DAQ, 1 for EVM record)
Definition: L1GtDataEmulAnalyzer.h:131
L1GtDataEmulAnalyzer::m_fdlDataEmul_Err
TH1F * m_fdlDataEmul_Err[2]
Definition: L1GtDataEmulAnalyzer.h:151
L1GtDataEmulAnalyzer::m_l1GtEmulInputTag
edm::InputTag m_l1GtEmulInputTag
input tag for the L1 GT emulator DAQ/EVM record
Definition: L1GtDataEmulAnalyzer.h:92
L1GtDataEmulAnalyzer::m_triggerMaskTechTrig
std::vector< unsigned int > m_triggerMaskTechTrig
Definition: L1GtDataEmulAnalyzer.h:120
L1GtFdlWord
Definition: L1GtFdlWord.h:29
L1GtDataEmulAnalyzer::comparePSB
virtual void comparePSB(const edm::Event &, const edm::EventSetup &, const L1GtPsbWord &, const L1GtPsbWord &)
compare the PSB board
Definition: L1GtDataEmulAnalyzer.cc:778
L1GtDataEmulAnalyzer::~L1GtDataEmulAnalyzer
~L1GtDataEmulAnalyzer() override
Definition: L1GtDataEmulAnalyzer.cc:79
L1GtDataEmulAnalyzer::m_fdlDataAlgoDecisionMask
TH1F * m_fdlDataAlgoDecisionMask[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:136
edm::EventSetup
Definition: EventSetup.h:57
InputTag.h
L1GtDataEmulAnalyzer::m_gtfeDataEmul
TH1F * m_gtfeDataEmul
histograms
Definition: L1GtDataEmulAnalyzer.h:126
L1GtDataEmulAnalyzer::m_fdlEmulTechDecision_Err
TH1F * m_fdlEmulTechDecision_Err[2]
Definition: L1GtDataEmulAnalyzer.h:158
L1GtDataEmulAnalyzer::m_fdlDataTechDecision
TH1F * m_fdlDataTechDecision[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:142
L1GtDataEmulAnalyzer::m_fdlDataAlgoDecision
TH1F * m_fdlDataAlgoDecision[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:133
L1GtDataEmulAnalyzer::m_fdlDataEmulTechDecision_Err
TH1F * m_fdlDataEmulTechDecision_Err[2]
Definition: L1GtDataEmulAnalyzer.h:159
L1GtDataEmulAnalyzer::m_l1GtMenuCacheID
unsigned long long m_l1GtMenuCacheID
Definition: L1GtDataEmulAnalyzer.h:110
Frameworkfwd.h
L1GtDataEmulAnalyzer::m_myCoutStream
std::ostringstream m_myCoutStream
Definition: L1GtDataEmulAnalyzer.h:100
L1GtDataEmulAnalyzer::m_fdlDataEmulTechDecision
TH1F * m_fdlDataEmulTechDecision[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:148
L1GtDataEmulAnalyzer::m_fdlDataEmulAlgoDecision_Err
TH1F * m_fdlDataEmulAlgoDecision_Err[2]
Definition: L1GtDataEmulAnalyzer.h:155
L1GtDataEmulAnalyzer::m_l1GtTmAlgo
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks
Definition: L1GtDataEmulAnalyzer.h:113
L1GtDataEmulAnalyzer::m_fdlDataTechDecision_Err
TH1F * m_fdlDataTechDecision_Err[2]
Definition: L1GtDataEmulAnalyzer.h:157
L1GtDataEmulAnalyzer::m_triggerMaskAlgoTrig
std::vector< unsigned int > m_triggerMaskAlgoTrig
Definition: L1GtDataEmulAnalyzer.h:119
L1GtDataEmulAnalyzer::m_l1GtDataInputTag
edm::InputTag m_l1GtDataInputTag
input tag for the L1 GT hardware DAQ/EVM record
Definition: L1GtDataEmulAnalyzer.h:89
L1GtDataEmulAnalyzer::TotalBxInEvent
static const int TotalBxInEvent
Definition: L1GtDataEmulAnalyzer.h:128
L1GtDataEmulAnalyzer::compareEvmRecord
virtual void compareEvmRecord(const edm::Event &, const edm::EventSetup &)
L1 GT EVM record comparison.
Definition: L1GtDataEmulAnalyzer.cc:1066
L1GtDataEmulAnalyzer::m_fdlEmulAlgoDecisionMask
TH1F * m_fdlEmulAlgoDecisionMask[TotalBxInEvent][2]
Definition: L1GtDataEmulAnalyzer.h:137
ParameterSet.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
L1GtDataEmulAnalyzer::m_l1GtTmTech
const L1GtTriggerMask * m_l1GtTmTech
Definition: L1GtDataEmulAnalyzer.h:116
L1GtDataEmulAnalyzer::L1GtDataEmulAnalyzer
L1GtDataEmulAnalyzer(const edm::ParameterSet &)
Definition: L1GtDataEmulAnalyzer.cc:49
L1GtDataEmulAnalyzer::compareFDL
virtual void compareFDL(const edm::Event &, const edm::EventSetup &, const L1GtFdlWord &, const L1GtFdlWord &, const int)
compare the FDL board
Definition: L1GtDataEmulAnalyzer.cc:227
L1GtDataEmulAnalyzer::m_l1GctDataInputTag
edm::InputTag m_l1GctDataInputTag
input tag for the L1 GCT hardware record
Definition: L1GtDataEmulAnalyzer.h:95