CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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*/
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
void analyze(const edm::Event &, const edm::EventSetup &) override
analyze each event
L1GtDataEmulAnalyzer(const edm::ParameterSet &)
TH1F * m_fdlEmulAlgoDecisionMask[TotalBxInEvent][2]
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]
void endJob() override
end of job
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