CMS 3D CMS Logo

L1GtTrigReport.h
Go to the documentation of this file.
1 #ifndef GlobalTriggerAnalyzer_L1GtTrigReport_h
2 #define GlobalTriggerAnalyzer_L1GtTrigReport_h
3 
18 // system include files
19 #include <memory>
20 #include <string>
21 #include <vector>
22 #include <list>
23 
24 // user include files
27 
29 
31 
35 
36 // forward declarations
42 class L1GtTriggerMask;
47 class L1GtTriggerMenu;
48 class L1GtTriggerMenuRcd;
49 
50 // class declaration
51 
53 public:
55  explicit L1GtTrigReport(const edm::ParameterSet&);
56 
58  ~L1GtTrigReport() override;
59 
60 private:
61  void beginJob() override;
62 
64  void analyze(const edm::Event&, const edm::EventSetup&) override;
65 
67  void endJob() override;
68 
69 private:
71 
74  unsigned long long m_l1GtStableParCacheID;
75 
77  unsigned int m_numberPhysTriggers;
78 
81 
83  unsigned int m_numberDaqPartitions;
85 
88  unsigned long long m_l1GtPfAlgoCacheID;
89 
91  unsigned long long m_l1GtPfTechCacheID;
92 
93  const std::vector<std::vector<int> >* m_prescaleFactorsAlgoTrig;
94  const std::vector<std::vector<int> >* m_prescaleFactorsTechTrig;
95 
98  unsigned long long m_l1GtTmAlgoCacheID;
99 
101  unsigned long long m_l1GtTmTechCacheID;
102 
104  unsigned long long m_l1GtTmVetoAlgoCacheID;
105 
107  unsigned long long m_l1GtTmVetoTechCacheID;
108 
109  std::vector<unsigned int> m_triggerMaskAlgoTrig;
110  std::vector<unsigned int> m_triggerMaskTechTrig;
111 
112  std::vector<unsigned int> m_triggerMaskVetoAlgoTrig;
113  std::vector<unsigned int> m_triggerMaskVetoTechTrig;
114 
115  // trigger menu
117  unsigned long long m_l1GtMenuCacheID;
118 
119 private:
122 
125 
128 
137 
139  const int m_printVerbosity;
140 
142  const int m_printOutput;
143 
145 
148 
150  std::vector<int> m_globalNrErrors;
151 
153  std::vector<int> m_globalNrAccepts;
154 
156  std::list<L1GtTrigReportEntry*> m_entryList;
157 
159  std::list<L1GtTrigReportEntry*> m_entryListTechTrig;
160 
161  typedef std::list<L1GtTrigReportEntry*>::const_iterator CItEntry;
162  typedef std::list<L1GtTrigReportEntry*>::iterator ItEntry;
163 
165  const unsigned int m_physicsDaqPartition;
166 };
167 
168 #endif /*GlobalTriggerAnalyzer_L1GtTrigReport_h*/
L1GtTrigReport::m_numberDaqPartitions
unsigned int m_numberDaqPartitions
number of DAQ partitions
Definition: L1GtTrigReport.h:83
L1GtTrigReport::m_globalNrAccepts
std::vector< int > m_globalNrAccepts
global number of events accepted by any of the L1 algorithm in any menu
Definition: L1GtTrigReport.h:153
EDAnalyzer.h
L1GtPrescaleFactors
Definition: L1GtPrescaleFactors.h:32
L1GtTrigReport::m_pfTechToken
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd > m_pfTechToken
Definition: L1GtTrigReport.h:131
L1GtTrigReport::m_stableParToken
const edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd > m_stableParToken
Definition: L1GtTrigReport.h:129
L1GtTrigReport::m_totalEvents
int m_totalEvents
counters
Definition: L1GtTrigReport.h:147
L1GtTrigReport::m_l1GtTmVetoTech
const L1GtTriggerMask * m_l1GtTmVetoTech
Definition: L1GtTrigReport.h:106
L1GtTrigReport::m_l1GtStablePar
const L1GtStableParameters * m_l1GtStablePar
cached stuff
Definition: L1GtTrigReport.h:73
edm::EDGetTokenT< L1GlobalTriggerRecord >
L1GtTrigReport::m_triggerMaskTechTrig
std::vector< unsigned int > m_triggerMaskTechTrig
Definition: L1GtTrigReport.h:110
L1GtTrigReport::m_l1GtPfTech
const L1GtPrescaleFactors * m_l1GtPfTech
Definition: L1GtTrigReport.h:90
L1GtTrigReport::m_numberTechnicalTriggers
unsigned int m_numberTechnicalTriggers
number of technical triggers
Definition: L1GtTrigReport.h:80
L1GtTrigReport::m_menuToken
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > m_menuToken
Definition: L1GtTrigReport.h:136
L1GtTrigReport::L1GtTrigReport
L1GtTrigReport(const edm::ParameterSet &)
constructor
Definition: L1GtTrigReport.cc:68
L1GtTrigReport::ItEntry
std::list< L1GtTrigReportEntry * >::iterator ItEntry
Definition: L1GtTrigReport.h:162
L1GtTriggerMaskVetoTechTrigRcd
Definition: L1GtTriggerMaskVetoTechTrigRcd.h:39
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
L1GtPrescaleFactorsTechTrigRcd
Definition: L1GtPrescaleFactorsTechTrigRcd.h:38
L1GtTrigReport::m_l1GtTmVetoAlgo
const L1GtTriggerMask * m_l1GtTmVetoAlgo
Definition: L1GtTrigReport.h:103
L1GtTrigReport::m_l1GtTmVetoTechCacheID
unsigned long long m_l1GtTmVetoTechCacheID
Definition: L1GtTrigReport.h:107
L1GtTrigReport::m_l1GtRecordInputToken2
const edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_l1GtRecordInputToken2
Definition: L1GtTrigReport.h:127
L1GtTrigReport::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
analyze each event
Definition: L1GtTrigReport.cc:171
L1GtTrigReport::m_entryList
std::list< L1GtTrigReportEntry * > m_entryList
list of individual entries in the report for physics algorithms
Definition: L1GtTrigReport.h:156
L1GtTrigReport::m_printVerbosity
const int m_printVerbosity
print verbosity
Definition: L1GtTrigReport.h:139
L1GlobalTriggerRecord.h
L1GtTrigReport::m_printOutput
const int m_printOutput
print output
Definition: L1GtTrigReport.h:142
L1GtTrigReport::m_tmVetoTechToken
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskVetoTechTrigRcd > m_tmVetoTechToken
Definition: L1GtTrigReport.h:135
L1GtTrigReport::m_l1GtRecordInputToken1
const edm::EDGetTokenT< L1GlobalTriggerRecord > m_l1GtRecordInputToken1
Definition: L1GtTrigReport.h:126
L1GtTrigReport::m_tmVetoAlgoToken
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskVetoAlgoTrigRcd > m_tmVetoAlgoToken
Definition: L1GtTrigReport.h:134
L1GtTrigReport::m_entryListTechTrig
std::list< L1GtTrigReportEntry * > m_entryListTechTrig
list of individual entries in the report for technical triggers
Definition: L1GtTrigReport.h:159
L1GtTriggerMaskTechTrigRcd
Definition: L1GtTriggerMaskTechTrigRcd.h:39
L1GtTriggerMenuRcd
Definition: L1GtTriggerMenuRcd.h:32
L1GtTrigReport::m_l1GtPfAlgoCacheID
unsigned long long m_l1GtPfAlgoCacheID
Definition: L1GtTrigReport.h:88
L1GtTrigReport::~L1GtTrigReport
~L1GtTrigReport() override
destructor
Definition: L1GtTrigReport.cc:143
L1GtTrigReport::beginJob
void beginJob() override
Definition: L1GtTrigReport.cc:166
L1GtTriggerMaskAlgoTrigRcd
Definition: L1GtTriggerMaskAlgoTrigRcd.h:39
L1GtTrigReport::m_l1GtPfAlgo
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
Definition: L1GtTrigReport.h:87
L1GtTrigReport::m_useL1GlobalTriggerRecord
const bool m_useL1GlobalTriggerRecord
boolean flag to select the input record
Definition: L1GtTrigReport.h:121
L1GtTriggerMask
Definition: L1GtTriggerMask.h:33
L1GtTrigReport::m_numberDaqPartitionsMax
unsigned int m_numberDaqPartitionsMax
Definition: L1GtTrigReport.h:84
L1GtTrigReport::m_l1GtTmTechCacheID
unsigned long long m_l1GtTmTechCacheID
Definition: L1GtTrigReport.h:101
L1GtStableParameters
Definition: L1GtStableParameters.h:33
L1GtTrigReportEntry.h
L1GtTrigReport::m_l1GtTmAlgoCacheID
unsigned long long m_l1GtTmAlgoCacheID
Definition: L1GtTrigReport.h:98
L1GtTrigReport::m_numberPhysTriggers
unsigned int m_numberPhysTriggers
number of physics triggers
Definition: L1GtTrigReport.h:77
L1GtTrigReport::m_l1GtStableParCacheID
unsigned long long m_l1GtStableParCacheID
Definition: L1GtTrigReport.h:74
L1GtTrigReport::m_globalNrErrors
std::vector< int > m_globalNrErrors
global number of events with error (EDProduct[s] not found)
Definition: L1GtTrigReport.h:150
edm::ParameterSet
Definition: ParameterSet.h:47
L1GtTriggerMenu
Definition: L1GtTriggerMenu.h:48
L1GtTrigReport::m_l1GtTmVetoAlgoCacheID
unsigned long long m_l1GtTmVetoAlgoCacheID
Definition: L1GtTrigReport.h:104
Event.h
L1GtTrigReport::endJob
void endJob() override
end of job
Definition: L1GtTrigReport.cc:612
L1GtTrigReport::m_physicsDaqPartition
const unsigned int m_physicsDaqPartition
index of physics DAQ partition
Definition: L1GtTrigReport.h:165
L1GtTrigReport::m_triggerMaskVetoAlgoTrig
std::vector< unsigned int > m_triggerMaskVetoAlgoTrig
Definition: L1GtTrigReport.h:112
L1GtTrigReport::m_triggerMaskVetoTechTrig
std::vector< unsigned int > m_triggerMaskVetoTechTrig
Definition: L1GtTrigReport.h:113
L1GtTrigReport::m_tmTechToken
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd > m_tmTechToken
Definition: L1GtTrigReport.h:133
L1GtTrigReport::m_triggerMaskAlgoTrig
std::vector< unsigned int > m_triggerMaskAlgoTrig
Definition: L1GtTrigReport.h:109
L1GtTrigReport::m_l1GtMenu
const L1GtTriggerMenu * m_l1GtMenu
Definition: L1GtTrigReport.h:116
edm::EventSetup
Definition: EventSetup.h:58
L1GtTrigReport::m_pfAlgoToken
const edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd > m_pfAlgoToken
Definition: L1GtTrigReport.h:130
L1GtStableParametersRcd
Definition: L1GtStableParametersRcd.h:39
edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd >
L1GtTriggerMaskVetoAlgoTrigRcd
Definition: L1GtTriggerMaskVetoAlgoTrigRcd.h:39
L1GtTrigReport::m_l1GtTmAlgo
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks & veto masks
Definition: L1GtTrigReport.h:97
L1GtTrigReport::m_tmAlgoToken
const edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd > m_tmAlgoToken
Definition: L1GtTrigReport.h:132
L1GtTrigReport
Definition: L1GtTrigReport.h:52
Frameworkfwd.h
L1GtTrigReport::m_l1GtRecordInputTag
const edm::InputTag m_l1GtRecordInputTag
input tag for GT record (L1 GT DAQ record or L1 GT "lite" record):
Definition: L1GtTrigReport.h:124
L1GtTrigReport::m_l1GtPfTechCacheID
unsigned long long m_l1GtPfTechCacheID
Definition: L1GtTrigReport.h:91
L1GtTrigReport::m_l1GtTmTech
const L1GtTriggerMask * m_l1GtTmTech
Definition: L1GtTrigReport.h:100
L1GtTrigReport::m_prescaleFactorsAlgoTrig
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
Definition: L1GtTrigReport.h:93
L1GtTrigReport::m_prescaleFactorsTechTrig
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
Definition: L1GtTrigReport.h:94
ParameterSet.h
L1GtPrescaleFactorsAlgoTrigRcd
Definition: L1GtPrescaleFactorsAlgoTrigRcd.h:38
edm::Event
Definition: Event.h:73
L1GtTrigReport::m_l1GtMenuCacheID
unsigned long long m_l1GtMenuCacheID
Definition: L1GtTrigReport.h:117
edm::InputTag
Definition: InputTag.h:15
L1GlobalTriggerReadoutRecord.h
L1GtTrigReport::CItEntry
std::list< L1GtTrigReportEntry * >::const_iterator CItEntry
Definition: L1GtTrigReport.h:161