CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Protected Member Functions | Private Attributes
L1ExtraDQM Class Reference

#include <L1ExtraDQM.h>

Inheritance diagram for L1ExtraDQM:
one::DQMEDAnalyzer< T > one::dqmimplementation::DQMBaseClass< T... >

Classes

class  L1ExtraMonElement
 

Public Member Functions

 L1ExtraDQM (const edm::ParameterSet &)
 
 ~L1ExtraDQM () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 

Protected Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void analyzeL1ExtraCenJet (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraETM (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraETT (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraForJet (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraHfBitCounts (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraHfRingEtSums (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraHTM (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraHTT (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraIsoEG (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraIsoTauJet (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraMuon (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraNoIsoEG (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraTauJet (const edm::Event &, const edm::EventSetup &)
 
void bookHistograms (DQMStore::IBooker &ibooker, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &) override
 
void endRun (const edm::Run &run, const edm::EventSetup &evSetup) override
 

Private Attributes

edm::InputTag L1ExtraIsoTauJetSource
 
int m_currentRun
 
std::string m_dirName
 directory name for L1Extra plots More...
 
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
 
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
 
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
 
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
 
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
 
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
 
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTM
 
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
 
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
 
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraIsoTauJet
 
std::vector< L1ExtraMonElement< l1extra::L1MuonParticleCollection > * > m_meAnalysisL1ExtraMuon
 pointers to L1ExtraMonElement for each sub-analysis More...
 
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
 
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
 
int m_nrBxInEventGct
 
int m_nrBxInEventGmt
 number of bunch crosses in event to be monitored More...
 
int m_nrEvJob
 
int m_nrEvRun
 
bool m_resetModule
 internal members More...
 
L1RetrieveL1Extra m_retrieveL1Extra
 input parameters More...
 
bool m_stage1_layer2_
 
edm::EDGetTokenT< l1extra::L1JetParticleCollectionm_tagL1ExtraIsoTauJetTok
 

Detailed Description

Description: online DQM module for L1Extra trigger objects.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$

Description: online DQM module for L1Extra trigger objects.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 76 of file L1ExtraDQM.h.

Constructor & Destructor Documentation

L1ExtraDQM::L1ExtraDQM ( const edm::ParameterSet paramSet)
explicit

Definition at line 26 of file L1ExtraDQM.cc.

References edm::ParameterSet::getParameter(), m_meAnalysisL1ExtraCenJet, m_meAnalysisL1ExtraETM, m_meAnalysisL1ExtraETT, m_meAnalysisL1ExtraForJet, m_meAnalysisL1ExtraHfBitCounts, m_meAnalysisL1ExtraHfRingEtSums, m_meAnalysisL1ExtraHTM, m_meAnalysisL1ExtraHTT, m_meAnalysisL1ExtraIsoEG, m_meAnalysisL1ExtraIsoTauJet, m_meAnalysisL1ExtraMuon, m_meAnalysisL1ExtraNoIsoEG, m_meAnalysisL1ExtraTauJet, m_nrBxInEventGct, m_nrBxInEventGmt, m_stage1_layer2_, and m_tagL1ExtraIsoTauJetTok.

26  :
27  //
28  m_retrieveL1Extra(paramSet.getParameter<edm::ParameterSet>("L1ExtraInputTags"),consumesCollector()),
29  L1ExtraIsoTauJetSource(paramSet.getParameter<edm::InputTag>("L1ExtraIsoTauJetSource_")),
30  m_dirName(paramSet.getParameter<std::string>("DirName")),
31  m_stage1_layer2_(paramSet.getParameter<bool>("stage1_layer2_")),
32  //
33  m_nrBxInEventGmt(paramSet.getParameter<int>("NrBxInEventGmt")),
34  m_nrBxInEventGct(paramSet.getParameter<int>("NrBxInEventGct")),
35  //
36  m_resetModule(true), m_currentRun(-99),
37  //
38  m_nrEvJob(0),
39  m_nrEvRun(0)
40 
41  {
42 
43  //
44  if ((m_nrBxInEventGmt > 0) && ((m_nrBxInEventGmt % 2) == 0)) {
46 
47  edm::LogInfo("L1ExtraDQM")
48  << "\nWARNING: Number of bunch crossing to be monitored for GMT rounded to: "
50  << "\n The number must be an odd number!\n"
51  << std::endl;
52  }
53 
54  if ((m_nrBxInEventGct > 0) && ((m_nrBxInEventGct % 2) == 0)) {
56 
57  edm::LogInfo("L1ExtraDQM")
58  << "\nWARNING: Number of bunch crossing to be monitored for GCT rounded to: "
60  << "\n The number must be an odd number!\n"
61  << std::endl;
62  }
63 
64  if (m_stage1_layer2_ == true){
65  m_tagL1ExtraIsoTauJetTok = consumes<l1extra::L1JetParticleCollection>(paramSet.getParameter<edm::InputTag>("L1ExtraIsoTauJetSource_"));
66  }
67  //
74  if (m_stage1_layer2_ ==true){
76  }
83 
84 }
int m_nrBxInEventGmt
number of bunch crosses in event to be monitored
Definition: L1ExtraDQM.h:186
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTM
Definition: L1ExtraDQM.h:231
T getParameter(std::string const &) const
std::string m_dirName
directory name for L1Extra plots
Definition: L1ExtraDQM.h:182
edm::EDGetTokenT< l1extra::L1JetParticleCollection > m_tagL1ExtraIsoTauJetTok
Definition: L1ExtraDQM.h:201
int m_currentRun
Definition: L1ExtraDQM.h:192
int m_nrEvJob
Definition: L1ExtraDQM.h:195
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
Definition: L1ExtraDQM.h:225
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
Definition: L1ExtraDQM.h:217
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
Definition: L1ExtraDQM.h:215
edm::InputTag L1ExtraIsoTauJetSource
Definition: L1ExtraDQM.h:180
std::vector< L1ExtraMonElement< l1extra::L1MuonParticleCollection > * > m_meAnalysisL1ExtraMuon
pointers to L1ExtraMonElement for each sub-analysis
Definition: L1ExtraDQM.h:205
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
Definition: L1ExtraDQM.h:228
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
Definition: L1ExtraDQM.h:208
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
Definition: L1ExtraDQM.h:237
bool m_stage1_layer2_
Definition: L1ExtraDQM.h:183
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
Definition: L1ExtraDQM.h:210
bool m_resetModule
internal members
Definition: L1ExtraDQM.h:191
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraIsoTauJet
Definition: L1ExtraDQM.h:219
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
Definition: L1ExtraDQM.h:213
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
Definition: L1ExtraDQM.h:222
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
Definition: L1ExtraDQM.h:234
int m_nrEvRun
Definition: L1ExtraDQM.h:196
L1ExtraDQM::~L1ExtraDQM ( )
override

Definition at line 87 of file L1ExtraDQM.cc.

87  {
88 
89  // empty
90 
91 }

Member Function Documentation

void L1ExtraDQM::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
overrideprotected

Definition at line 720 of file L1ExtraDQM.cc.

References analyzeL1ExtraCenJet(), analyzeL1ExtraETM(), analyzeL1ExtraETT(), analyzeL1ExtraForJet(), analyzeL1ExtraHfBitCounts(), analyzeL1ExtraHfRingEtSums(), analyzeL1ExtraHTM(), analyzeL1ExtraHTT(), analyzeL1ExtraIsoEG(), analyzeL1ExtraIsoTauJet(), analyzeL1ExtraMuon(), analyzeL1ExtraNoIsoEG(), analyzeL1ExtraTauJet(), m_nrEvJob, m_nrEvRun, m_retrieveL1Extra, m_stage1_layer2_, and L1RetrieveL1Extra::retrieveL1ExtraObjects().

720  {
721 
722  ++m_nrEvJob;
723  ++m_nrEvRun;
724  //
725  m_retrieveL1Extra.retrieveL1ExtraObjects(iEvent, evSetup);
726  //
727  analyzeL1ExtraMuon(iEvent, evSetup);
728  analyzeL1ExtraIsoEG(iEvent, evSetup);
729  analyzeL1ExtraNoIsoEG(iEvent, evSetup);
730  analyzeL1ExtraCenJet(iEvent, evSetup);
731  analyzeL1ExtraForJet(iEvent, evSetup);
732  analyzeL1ExtraTauJet(iEvent, evSetup);
733  analyzeL1ExtraETT(iEvent, evSetup);
734  analyzeL1ExtraETM(iEvent, evSetup);
735  analyzeL1ExtraHTT(iEvent, evSetup);
736  analyzeL1ExtraHTM(iEvent, evSetup);
737  analyzeL1ExtraHfBitCounts(iEvent, evSetup);
738  analyzeL1ExtraHfRingEtSums(iEvent, evSetup);
739 
740  if (m_stage1_layer2_ == true){
741  analyzeL1ExtraIsoTauJet(iEvent, evSetup);
742  }
743 }
int m_nrEvJob
Definition: L1ExtraDQM.h:195
void analyzeL1ExtraETT(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:274
void analyzeL1ExtraIsoEG(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:118
void analyzeL1ExtraETM(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:291
void analyzeL1ExtraCenJet(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:166
void analyzeL1ExtraForJet(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:191
void analyzeL1ExtraTauJet(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:215
void analyzeL1ExtraIsoTauJet(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:239
void analyzeL1ExtraMuon(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:93
bool m_stage1_layer2_
Definition: L1ExtraDQM.h:183
void analyzeL1ExtraHTM(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:328
void analyzeL1ExtraHTT(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:312
void analyzeL1ExtraHfRingEtSums(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:368
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
void analyzeL1ExtraNoIsoEG(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:142
void analyzeL1ExtraHfBitCounts(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:348
int m_nrEvRun
Definition: L1ExtraDQM.h:196
void retrieveL1ExtraObjects(const edm::Event &, const edm::EventSetup &)
void L1ExtraDQM::analyzeL1ExtraCenJet ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 166 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraCenJet(), m_meAnalysisL1ExtraCenJet, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraCenJet().

Referenced by analyze().

167  {
168 
169  bool bookEta = true;
170  bool bookPhi = true;
171 
172  bool isL1Coll = true;
173 
174  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
175 
176  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
177  - m_nrBxInEventGct;
178 
179  (m_meAnalysisL1ExtraCenJet.at(iBxInEvent))->fillNrObjects(
181  m_retrieveL1Extra.validL1ExtraCenJet(), isL1Coll, bxInEvent);
182  (m_meAnalysisL1ExtraCenJet.at(iBxInEvent))->fillEtPhiEta(
184  m_retrieveL1Extra.validL1ExtraCenJet(), bookPhi, bookEta,
185  isL1Coll, bxInEvent);
186  }
187 
188 }
const bool validL1ExtraCenJet() const
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
Definition: L1ExtraDQM.h:213
const l1extra::L1JetParticleCollection * l1ExtraCenJet() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
void L1ExtraDQM::analyzeL1ExtraETM ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 291 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraETM(), m_meAnalysisL1ExtraETM, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraETM().

Referenced by analyze().

292  {
293 
294  bool bookPhi = true;
295  bool bookEta = false;
296 
297  bool isL1Coll = true;
298 
299  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
300 
301  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
302  - m_nrBxInEventGct;
303 
304  (m_meAnalysisL1ExtraETM.at(iBxInEvent))->fillEtPhiEta(m_retrieveL1Extra.l1ExtraETM(),
305  m_retrieveL1Extra.validL1ExtraETM(), bookPhi, bookEta,
306  isL1Coll, bxInEvent);
307 
308  }
309 
310 }
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
Definition: L1ExtraDQM.h:225
const l1extra::L1EtMissParticleCollection * l1ExtraETM() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
const bool validL1ExtraETM() const
void L1ExtraDQM::analyzeL1ExtraETT ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 274 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraETT(), m_meAnalysisL1ExtraETT, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraETT().

Referenced by analyze().

275  {
276 
277  bool isL1Coll = true;
278 
279  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
280 
281  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
282  - m_nrBxInEventGct;
283 
284  (m_meAnalysisL1ExtraETT.at(iBxInEvent))->fillEtTotal(m_retrieveL1Extra.l1ExtraETT(),
285  m_retrieveL1Extra.validL1ExtraETT(), isL1Coll, bxInEvent);
286 
287  }
288 
289 }
const bool validL1ExtraETT() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
Definition: L1ExtraDQM.h:222
const l1extra::L1EtMissParticleCollection * l1ExtraETT() const
void L1ExtraDQM::analyzeL1ExtraForJet ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 191 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraForJet(), m_meAnalysisL1ExtraForJet, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraForJet().

Referenced by analyze().

192  {
193 
194  bool bookPhi = true;
195  bool bookEta = true;
196 
197  bool isL1Coll = true;
198 
199  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
200 
201  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
202  - m_nrBxInEventGct;
203 
204  (m_meAnalysisL1ExtraForJet.at(iBxInEvent))->fillNrObjects(
206  m_retrieveL1Extra.validL1ExtraForJet(), isL1Coll, bxInEvent);
207  (m_meAnalysisL1ExtraForJet.at(iBxInEvent))->fillEtPhiEta(
209  m_retrieveL1Extra.validL1ExtraForJet(), bookPhi, bookEta,
210  isL1Coll, bxInEvent);
211  }
212 
213 }
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
Definition: L1ExtraDQM.h:215
const bool validL1ExtraForJet() const
const l1extra::L1JetParticleCollection * l1ExtraForJet() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
void L1ExtraDQM::analyzeL1ExtraHfBitCounts ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 348 of file L1ExtraDQM.cc.

References l1extra::L1HFRings::kNumRings, L1RetrieveL1Extra::l1ExtraHfBitCounts(), m_meAnalysisL1ExtraHfBitCounts, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraHfBitCounts().

Referenced by analyze().

349  {
350 
351  bool isL1Coll = true;
352 
353  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
354 
355  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
356  - m_nrBxInEventGct;
357 
358  for (int iCount = 0; iCount < l1extra::L1HFRings::kNumRings; ++iCount) {
359  (m_meAnalysisL1ExtraHfBitCounts.at(iBxInEvent))->fillHfBitCounts(
362  isL1Coll, bxInEvent);
363  }
364  }
365 
366 }
const bool validL1ExtraHfBitCounts() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
Definition: L1ExtraDQM.h:234
const l1extra::L1HFRingsCollection * l1ExtraHfBitCounts() const
void L1ExtraDQM::analyzeL1ExtraHfRingEtSums ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 368 of file L1ExtraDQM.cc.

References l1extra::L1HFRings::kNumRings, L1RetrieveL1Extra::l1ExtraHfRingEtSums(), m_meAnalysisL1ExtraHfRingEtSums, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraHfRingEtSums().

Referenced by analyze().

369  {
370 
371  bool isL1Coll = true;
372 
373  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
374 
375  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
376  - m_nrBxInEventGct;
377 
378  for (int iCount = 0; iCount < l1extra::L1HFRings::kNumRings; ++iCount) {
379  (m_meAnalysisL1ExtraHfRingEtSums.at(iBxInEvent))->fillHfRingEtSums(
382  isL1Coll, bxInEvent);
383  }
384  }
385 }
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
Definition: L1ExtraDQM.h:237
const l1extra::L1HFRingsCollection * l1ExtraHfRingEtSums() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
const bool validL1ExtraHfRingEtSums() const
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
void L1ExtraDQM::analyzeL1ExtraHTM ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 328 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraHTM(), m_meAnalysisL1ExtraHTM, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraHTM().

Referenced by analyze().

329  {
330 
331  bool bookPhi = true;
332  bool bookEta = false;
333 
334  bool isL1Coll = true;
335 
336  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
337 
338  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
339  - m_nrBxInEventGct;
340 
341  (m_meAnalysisL1ExtraHTM.at(iBxInEvent))->fillEtPhiEta(m_retrieveL1Extra.l1ExtraHTM(),
342  m_retrieveL1Extra.validL1ExtraHTM(), bookPhi, bookEta,
343  isL1Coll, bxInEvent);
344  }
345 
346 }
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTM
Definition: L1ExtraDQM.h:231
const bool validL1ExtraHTM() const
const l1extra::L1EtMissParticleCollection * l1ExtraHTM() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
void L1ExtraDQM::analyzeL1ExtraHTT ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 312 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraHTT(), m_meAnalysisL1ExtraHTT, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraHTT().

Referenced by analyze().

313  {
314 
315  bool isL1Coll = true;
316 
317  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
318 
319  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
320  - m_nrBxInEventGct;
321 
322  (m_meAnalysisL1ExtraHTT.at(iBxInEvent))->fillEtTotal(m_retrieveL1Extra.l1ExtraHTT(),
323  m_retrieveL1Extra.validL1ExtraHTT(), isL1Coll, bxInEvent);
324 
325  }
326 }
const bool validL1ExtraHTT() const
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
Definition: L1ExtraDQM.h:228
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
const l1extra::L1EtMissParticleCollection * l1ExtraHTT() const
void L1ExtraDQM::analyzeL1ExtraIsoEG ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 118 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraIsoEG(), m_meAnalysisL1ExtraIsoEG, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraIsoEG().

Referenced by analyze().

119  {
120 
121  bool bookEta = true;
122  bool bookPhi = true;
123 
124  bool isL1Coll = true;
125 
126  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
127 
128  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
129  - m_nrBxInEventGct;
130 
131  (m_meAnalysisL1ExtraIsoEG.at(iBxInEvent))->fillNrObjects(
133  m_retrieveL1Extra.validL1ExtraIsoEG(), isL1Coll, bxInEvent);
134  (m_meAnalysisL1ExtraIsoEG.at(iBxInEvent))->fillPtPhiEta(
136  m_retrieveL1Extra.validL1ExtraIsoEG(), bookPhi, bookEta,
137  isL1Coll, bxInEvent);
138  }
139 
140 }
const bool validL1ExtraIsoEG() const
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
Definition: L1ExtraDQM.h:208
const l1extra::L1EmParticleCollection * l1ExtraIsoEG() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
void L1ExtraDQM::analyzeL1ExtraIsoTauJet ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 239 of file L1ExtraDQM.cc.

References edm::Event::getByToken(), edm::HandleBase::isValid(), LogDebug, m_meAnalysisL1ExtraIsoTauJet, m_nrBxInEventGct, m_tagL1ExtraIsoTauJetTok, and edm::Handle< T >::product().

Referenced by analyze().

239  {
240 
241  bool bookPhi = true;
242  bool bookEta = true;
243 
244  bool isL1Coll = true;
245 
246  bool m_validL1ExtraIsoTauJet;
247 
249  iEvent.getByToken(m_tagL1ExtraIsoTauJetTok, collL1ExtraIsoTauJet);
250 
251  const l1extra::L1JetParticleCollection* m_l1ExtraIsoTauJet;
252 
253  if (collL1ExtraIsoTauJet.isValid()) {
254  m_validL1ExtraIsoTauJet = true;
255  m_l1ExtraIsoTauJet = collL1ExtraIsoTauJet.product();
256  } else {
257  LogDebug("L1RetrieveL1Extra")
258  << "\n l1extra::L1JetParticleCollection with input tag \n "
259  << "m_tagL1ExtraIsoTauJet" << "\n not found in the event.\n"
260  << "\n Return pointer 0 and false validity tag."
261  << std::endl;
262 
263  m_validL1ExtraIsoTauJet = false;
264  m_l1ExtraIsoTauJet = nullptr;
265  }
266 
267  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
268  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
269  (m_meAnalysisL1ExtraIsoTauJet.at(iBxInEvent))->fillNrObjects(m_l1ExtraIsoTauJet,m_validL1ExtraIsoTauJet, isL1Coll, bxInEvent);
270  (m_meAnalysisL1ExtraIsoTauJet.at(iBxInEvent))->fillEtPhiEta(m_l1ExtraIsoTauJet,m_validL1ExtraIsoTauJet, bookPhi, bookEta,isL1Coll, bxInEvent);
271  }
272 }
#define LogDebug(id)
edm::EDGetTokenT< l1extra::L1JetParticleCollection > m_tagL1ExtraIsoTauJetTok
Definition: L1ExtraDQM.h:201
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
std::vector< L1JetParticle > L1JetParticleCollection
bool isValid() const
Definition: HandleBase.h:74
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraIsoTauJet
Definition: L1ExtraDQM.h:219
T const * product() const
Definition: Handle.h:74
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
void L1ExtraDQM::analyzeL1ExtraMuon ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 93 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraMuon(), m_meAnalysisL1ExtraMuon, m_nrBxInEventGmt, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraMuon().

Referenced by analyze().

94  {
95 
96  bool bookEta = true;
97  bool bookPhi = true;
98 
99  bool isL1Coll = true;
100 
101  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGmt; ++iBxInEvent) {
102 
103  int bxInEvent = iBxInEvent + (m_nrBxInEventGmt + 1) / 2
104  - m_nrBxInEventGmt;
105 
106  (m_meAnalysisL1ExtraMuon.at(iBxInEvent))->fillNrObjects(
108  m_retrieveL1Extra.validL1ExtraMuon(), isL1Coll, bxInEvent);
109  (m_meAnalysisL1ExtraMuon.at(iBxInEvent))->fillPtPhiEta(
111  m_retrieveL1Extra.validL1ExtraMuon(), bookPhi, bookEta,
112  isL1Coll, bxInEvent);
113 
114  }
115 
116 }
int m_nrBxInEventGmt
number of bunch crosses in event to be monitored
Definition: L1ExtraDQM.h:186
const l1extra::L1MuonParticleCollection * l1ExtraMuon() const
return retrieved L1Extra collections
const bool validL1ExtraMuon() const
validity for retrieval of L1Extra products (false: product not found)
std::vector< L1ExtraMonElement< l1extra::L1MuonParticleCollection > * > m_meAnalysisL1ExtraMuon
pointers to L1ExtraMonElement for each sub-analysis
Definition: L1ExtraDQM.h:205
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
void L1ExtraDQM::analyzeL1ExtraNoIsoEG ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 142 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraNoIsoEG(), m_meAnalysisL1ExtraNoIsoEG, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraNoIsoEG().

Referenced by analyze().

143  {
144 
145  bool bookEta = true;
146  bool bookPhi = true;
147 
148  bool isL1Coll = true;
149 
150  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
151 
152  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
153  - m_nrBxInEventGct;
154 
155  (m_meAnalysisL1ExtraNoIsoEG.at(iBxInEvent))->fillNrObjects(
157  m_retrieveL1Extra.validL1ExtraNoIsoEG(), isL1Coll, bxInEvent);
158  (m_meAnalysisL1ExtraNoIsoEG.at(iBxInEvent))->fillPtPhiEta(
160  m_retrieveL1Extra.validL1ExtraNoIsoEG(), bookPhi, bookEta,
161  isL1Coll, bxInEvent);
162  }
163 
164 }
const l1extra::L1EmParticleCollection * l1ExtraNoIsoEG() const
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
Definition: L1ExtraDQM.h:210
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
const bool validL1ExtraNoIsoEG() const
void L1ExtraDQM::analyzeL1ExtraTauJet ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
protected

Definition at line 215 of file L1ExtraDQM.cc.

References L1RetrieveL1Extra::l1ExtraTauJet(), m_meAnalysisL1ExtraTauJet, m_nrBxInEventGct, m_retrieveL1Extra, and L1RetrieveL1Extra::validL1ExtraTauJet().

Referenced by analyze().

216  {
217 
218  bool bookPhi = true;
219  bool bookEta = true;
220 
221  bool isL1Coll = true;
222 
223  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
224 
225  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
226  - m_nrBxInEventGct;
227 
228  (m_meAnalysisL1ExtraTauJet.at(iBxInEvent))->fillNrObjects(
230  m_retrieveL1Extra.validL1ExtraTauJet(), isL1Coll, bxInEvent);
231  (m_meAnalysisL1ExtraTauJet.at(iBxInEvent))->fillEtPhiEta(
233  m_retrieveL1Extra.validL1ExtraTauJet(), bookPhi, bookEta,
234  isL1Coll, bxInEvent);
235  }
236 
237 }
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
Definition: L1ExtraDQM.h:217
const bool validL1ExtraTauJet() const
const l1extra::L1JetParticleCollection * l1ExtraTauJet() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:179
void L1ExtraDQM::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &  evSetup 
)
overrideprotected

Definition at line 393 of file L1ExtraDQM.cc.

References CenJet, ETM, ETT, ForJet, HfBitCounts, HfRingEtSums, HTM, HTT, IsoEG, m_dirName, m_meAnalysisL1ExtraCenJet, m_meAnalysisL1ExtraETM, m_meAnalysisL1ExtraETT, m_meAnalysisL1ExtraForJet, m_meAnalysisL1ExtraHfBitCounts, m_meAnalysisL1ExtraHfRingEtSums, m_meAnalysisL1ExtraHTM, m_meAnalysisL1ExtraHTT, m_meAnalysisL1ExtraIsoEG, m_meAnalysisL1ExtraIsoTauJet, m_meAnalysisL1ExtraMuon, m_meAnalysisL1ExtraNoIsoEG, m_meAnalysisL1ExtraTauJet, m_nrBxInEventGct, m_nrBxInEventGmt, m_nrEvRun, m_stage1_layer2_, Mu, NoIsoEG, DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and TauJet.

393  {
394 
395  m_nrEvRun = 0;
396 
397  std::vector<L1GtObject> l1Obj;
398  //const edm::EventSetup& evSetup;
399 
400  // define standard sets of histograms
401 
402  //
403  l1Obj.clear();
404  l1Obj.push_back(Mu);
405  int nrMonElements = 5;
406 
407  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGmt; ++iBxInEvent) {
408 
410 
411  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
412  int bxInEventHex = (bxInEvent+ 16) % 16;
413 
414  std::stringstream ss;
415  std::string bxInEventHexString;
416  ss << std::uppercase << std::hex << bxInEventHex;
417  ss >> bxInEventHexString;
418 
419  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
420 
421  (m_meAnalysisL1ExtraMuon.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_Mu", l1Obj);
422 
423  }
424 
425  //
426  l1Obj.clear();
427  l1Obj.push_back(IsoEG);
428  nrMonElements = 4;
429 
430  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
431 
433 
434  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
435  int bxInEventHex = (bxInEvent+ 16) % 16;
436 
437  std::stringstream ss;
438  std::string bxInEventHexString;
439  ss << std::uppercase << std::hex << bxInEventHex;
440  ss >> bxInEventHexString;
441 
442  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
443 
444  (m_meAnalysisL1ExtraIsoEG.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_IsoEG", l1Obj);
445  }
446 
447  //
448  l1Obj.clear();
449  l1Obj.push_back(NoIsoEG);
450  nrMonElements = 4;
451 
452  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
453 
455 
456  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
457  int bxInEventHex = (bxInEvent+ 16) % 16;
458 
459  std::stringstream ss;
460  std::string bxInEventHexString;
461  ss << std::uppercase << std::hex << bxInEventHex;
462  ss >> bxInEventHexString;
463 
464  //if (m_dbe) {
465  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
466  //}
467 
468  (m_meAnalysisL1ExtraNoIsoEG.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_NoIsoEG", l1Obj);
469  }
470 
471  //
472  l1Obj.clear();
473  l1Obj.push_back(CenJet);
474  nrMonElements = 4;
475 
476  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
477 
479 
480  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
481  int bxInEventHex = (bxInEvent+ 16) % 16;
482 
483  std::stringstream ss;
484  std::string bxInEventHexString;
485  ss << std::uppercase << std::hex << bxInEventHex;
486  ss >> bxInEventHexString;
487 
488  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
489 
490  (m_meAnalysisL1ExtraCenJet.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_CenJet", l1Obj);
491  }
492 
493  //
494  l1Obj.clear();
495  l1Obj.push_back(ForJet);
496 
497  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
498 
500 
501  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
502  int bxInEventHex = (bxInEvent+ 16) % 16;
503 
504  std::stringstream ss;
505  std::string bxInEventHexString;
506  ss << std::uppercase << std::hex << bxInEventHex;
507  ss >> bxInEventHexString;
508 
509  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
510 
511  (m_meAnalysisL1ExtraForJet.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_ForJet", l1Obj);
512  }
513 
514  //
515  l1Obj.clear();
516  l1Obj.push_back(TauJet);
517 
518  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
519 
521 
522  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
523  int bxInEventHex = (bxInEvent+ 16) % 16;
524 
525  std::stringstream ss;
526  std::string bxInEventHexString;
527  ss << std::uppercase << std::hex << bxInEventHex;
528  ss >> bxInEventHexString;
529 
530  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
531 
532  (m_meAnalysisL1ExtraTauJet.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_TauJet", l1Obj);
533  }
534 
535  if (m_stage1_layer2_ == true) {
536 
537  l1Obj.clear();
538  l1Obj.push_back(TauJet);
539  nrMonElements = 4;
540 
541  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
542 
544 
545  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
546  int bxInEventHex = (bxInEvent+ 16) % 16;
547 
548  std::stringstream ss;
549  std::string bxInEventHexString;
550  ss << std::uppercase << std::hex << bxInEventHex;
551  ss >> bxInEventHexString;
552 
553  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
554 
555  (m_meAnalysisL1ExtraIsoTauJet.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_IsoTauJet", l1Obj);
556  }
557  }
558 
559  //
560  l1Obj.clear();
561  l1Obj.push_back(ETT);
562  nrMonElements = 1;
563 
564  bool bookPhi = false;
565  bool bookEta = false;
566 
567  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
568 
570 
571  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
572  int bxInEventHex = (bxInEvent+ 16) % 16;
573 
574  std::stringstream ss;
575  std::string bxInEventHexString;
576  ss << std::uppercase << std::hex << bxInEventHex;
577  ss >> bxInEventHexString;
578 
579  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
580 
581  (m_meAnalysisL1ExtraETT.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_ETT", l1Obj, bookPhi, bookEta);
582  }
583 
584  //
585  l1Obj.clear();
586  l1Obj.push_back(ETM);
587  nrMonElements = 2;
588 
589  bookPhi = true;
590  bookEta = false;
591 
592  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
594  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
595  int bxInEventHex = (bxInEvent+ 16) % 16;
596 
597  std::stringstream ss;
598  std::string bxInEventHexString;
599  ss << std::uppercase << std::hex << bxInEventHex;
600  ss >> bxInEventHexString;
601 
602  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
603 
604  (m_meAnalysisL1ExtraETM.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_ETM", l1Obj, bookPhi, bookEta);
605  }
606 
607  //
608  l1Obj.clear();
609  l1Obj.push_back(HTT);
610  nrMonElements = 1;
611 
612  bookPhi = false;
613  bookEta = false;
614 
615  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
616 
618  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
619  int bxInEventHex = (bxInEvent+ 16) % 16;
620 
621  std::stringstream ss;
622  std::string bxInEventHexString;
623  ss << std::uppercase << std::hex << bxInEventHex;
624  ss >> bxInEventHexString;
625 
626  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
627 
628  (m_meAnalysisL1ExtraHTT.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_HTT", l1Obj, bookPhi, bookEta);
629  }
630 
631  //
632  l1Obj.clear();
633  l1Obj.push_back(HTM);
634  nrMonElements = 2;
635 
636  bookPhi = true;
637  bookEta = false;
638 
639  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
640 
642  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
643  int bxInEventHex = (bxInEvent+ 16) % 16;
644 
645  std::stringstream ss;
646  std::string bxInEventHexString;
647  ss << std::uppercase << std::hex << bxInEventHex;
648  ss >> bxInEventHexString;
649 
650  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
651 
652  if (m_stage1_layer2_ == false){
653  (m_meAnalysisL1ExtraHTM.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_HTM", l1Obj, bookPhi, bookEta);
654  } else {
655  (m_meAnalysisL1ExtraHTM.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_HTMHTT", l1Obj, bookPhi, bookEta);
656  }
657  }
658 
659  //
660  l1Obj.clear();
661  l1Obj.push_back(HfBitCounts);
662  nrMonElements = 1;
663 
664  bookPhi = false;
665  bookEta = false;
666 
667  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
668 
671  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2 - m_nrBxInEventGct;
672  int bxInEventHex = (bxInEvent+ 16) % 16;
673 
674  std::stringstream ss;
675  std::string bxInEventHexString;
676  ss << std::uppercase << std::hex << bxInEventHex;
677  ss >> bxInEventHexString;
678 
679  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
680 
681  (m_meAnalysisL1ExtraHfBitCounts.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_HfBitCounts", l1Obj, bookPhi, bookEta);
682  }
683 
684  //
685  l1Obj.clear();
686  l1Obj.push_back(HfRingEtSums);
687  nrMonElements = 1;
688 
689  bookPhi = false;
690  bookEta = false;
691 
692  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
693 
696  evSetup, nrMonElements));
697  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
698  - m_nrBxInEventGct;
699  int bxInEventHex = (bxInEvent+ 16) % 16;
700 
701  std::stringstream ss;
702  std::string bxInEventHexString;
703  ss << std::uppercase << std::hex << bxInEventHex;
704  ss >> bxInEventHexString;
705 
706  ibooker.setCurrentFolder(m_dirName + "/BxInEvent_" + bxInEventHexString);
707 
708  if (m_stage1_layer2_ == false) {
709  (m_meAnalysisL1ExtraHfRingEtSums.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_HfRingEtSums", l1Obj, bookPhi, bookEta);
710  }
711  if (m_stage1_layer2_ == true) {
712  (m_meAnalysisL1ExtraHfRingEtSums.at(iBxInEvent))->bookhistograms(evSetup, ibooker, "L1_IsoTau_replace_Hf", l1Obj, bookPhi, bookEta);
713  }
714  }
715 
716 }
int m_nrBxInEventGmt
number of bunch crosses in event to be monitored
Definition: L1ExtraDQM.h:186
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTM
Definition: L1ExtraDQM.h:231
std::string m_dirName
directory name for L1Extra plots
Definition: L1ExtraDQM.h:182
Definition: L1GtObject.h:39
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
Definition: L1ExtraDQM.h:225
Definition: L1GtObject.h:36
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
Definition: L1ExtraDQM.h:217
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
Definition: L1ExtraDQM.h:215
Definition: L1GtObject.h:38
std::vector< L1ExtraMonElement< l1extra::L1MuonParticleCollection > * > m_meAnalysisL1ExtraMuon
pointers to L1ExtraMonElement for each sub-analysis
Definition: L1ExtraDQM.h:205
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
Definition: L1ExtraDQM.h:228
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
Definition: L1ExtraDQM.h:208
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
Definition: L1ExtraDQM.h:237
bool m_stage1_layer2_
Definition: L1ExtraDQM.h:183
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
Definition: L1ExtraDQM.h:210
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraIsoTauJet
Definition: L1ExtraDQM.h:219
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
Definition: L1ExtraDQM.h:213
Definition: L1GtObject.h:30
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
Definition: L1GtObject.h:37
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
Definition: L1ExtraDQM.h:222
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
Definition: L1ExtraDQM.h:234
int m_nrEvRun
Definition: L1ExtraDQM.h:196
void L1ExtraDQM::dqmBeginRun ( const edm::Run ,
const edm::EventSetup  
)
overrideprotected

Definition at line 388 of file L1ExtraDQM.cc.

388  {
389 
390 }
void L1ExtraDQM::endRun ( const edm::Run run,
const edm::EventSetup evSetup 
)
overrideprotected

Definition at line 746 of file L1ExtraDQM.cc.

References edm::RunBase::id(), LogDebug, m_meAnalysisL1ExtraCenJet, m_meAnalysisL1ExtraETM, m_meAnalysisL1ExtraETT, m_meAnalysisL1ExtraForJet, m_meAnalysisL1ExtraHfBitCounts, m_meAnalysisL1ExtraHfRingEtSums, m_meAnalysisL1ExtraHTM, m_meAnalysisL1ExtraHTT, m_meAnalysisL1ExtraIsoEG, m_meAnalysisL1ExtraMuon, m_meAnalysisL1ExtraNoIsoEG, m_meAnalysisL1ExtraTauJet, m_nrEvJob, and m_nrEvRun.

746  {
747 
748  // delete if event setup has changed only FIXME
749 
750  for (std::vector<L1ExtraMonElement<l1extra::L1MuonParticleCollection>*>::iterator
751  iterME = m_meAnalysisL1ExtraMuon.begin(); iterME
752  != m_meAnalysisL1ExtraMuon.end(); ++iterME) {
753 
754  delete *iterME;
755 
756  }
757  m_meAnalysisL1ExtraMuon.clear();
758 
759 
760  for (std::vector<L1ExtraMonElement<l1extra::L1EmParticleCollection>*>::iterator
761  iterME = m_meAnalysisL1ExtraIsoEG.begin(); iterME
762  != m_meAnalysisL1ExtraIsoEG.end(); ++iterME) {
763 
764  delete *iterME;
765 
766  }
767  m_meAnalysisL1ExtraIsoEG.clear();
768 
769 
770  for (std::vector<L1ExtraMonElement<l1extra::L1EmParticleCollection>*>::iterator
771  iterME = m_meAnalysisL1ExtraNoIsoEG.begin(); iterME
772  != m_meAnalysisL1ExtraNoIsoEG.end(); ++iterME) {
773 
774  delete *iterME;
775 
776  }
778 
779 
780  for (std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*>::iterator
781  iterME = m_meAnalysisL1ExtraCenJet.begin(); iterME
782  != m_meAnalysisL1ExtraCenJet.end(); ++iterME) {
783 
784  delete *iterME;
785 
786  }
788 
789  for (std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*>::iterator
790  iterME = m_meAnalysisL1ExtraForJet.begin(); iterME
791  != m_meAnalysisL1ExtraForJet.end(); ++iterME) {
792 
793  delete *iterME;
794 
795  }
797 
798  for (std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*>::iterator
799  iterME = m_meAnalysisL1ExtraTauJet.begin(); iterME
800  != m_meAnalysisL1ExtraTauJet.end(); ++iterME) {
801 
802  delete *iterME;
803 
804  }
806 
807 
808  for (std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*>::iterator
809  iterME = m_meAnalysisL1ExtraETT.begin(); iterME
810  != m_meAnalysisL1ExtraETT.end(); ++iterME) {
811 
812  delete *iterME;
813 
814  }
815  m_meAnalysisL1ExtraETT.clear();
816 
817  for (std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*>::iterator
818  iterME = m_meAnalysisL1ExtraETM.begin(); iterME
819  != m_meAnalysisL1ExtraETM.end(); ++iterME) {
820 
821  delete *iterME;
822 
823  }
824  m_meAnalysisL1ExtraETM.clear();
825 
826  for (std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*>::iterator
827  iterME = m_meAnalysisL1ExtraHTT.begin(); iterME
828  != m_meAnalysisL1ExtraHTT.end(); ++iterME) {
829 
830  delete *iterME;
831 
832  }
833  m_meAnalysisL1ExtraHTT.clear();
834 
835  for (std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*>::iterator
836  iterME = m_meAnalysisL1ExtraHTM.begin(); iterME
837  != m_meAnalysisL1ExtraHTM.end(); ++iterME) {
838 
839  delete *iterME;
840 
841  }
842  m_meAnalysisL1ExtraHTM.clear();
843 
844 
845  for (std::vector<L1ExtraMonElement<l1extra::L1HFRingsCollection>*>::iterator
846  iterME = m_meAnalysisL1ExtraHfBitCounts.begin(); iterME
847  != m_meAnalysisL1ExtraHfBitCounts.end(); ++iterME) {
848 
849  delete *iterME;
850 
851  }
853 
854  for (std::vector<L1ExtraMonElement<l1extra::L1HFRingsCollection>*>::iterator
855  iterME = m_meAnalysisL1ExtraHfRingEtSums.begin(); iterME
856  != m_meAnalysisL1ExtraHfRingEtSums.end(); ++iterME) {
857 
858  delete *iterME;
859 
860  }
862 
863  LogDebug("L1ExtraDQM") << "\n\n endRun: " << run.id()
864  << "\n Number of events analyzed in this run: " << m_nrEvRun
865  << "\n Total number of events analyzed in this job: " << m_nrEvJob
866  << "\n" << std::endl;
867 
868 }
#define LogDebug(id)
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTM
Definition: L1ExtraDQM.h:231
RunID const & id() const
Definition: RunBase.h:39
int m_nrEvJob
Definition: L1ExtraDQM.h:195
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
Definition: L1ExtraDQM.h:225
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
Definition: L1ExtraDQM.h:217
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
Definition: L1ExtraDQM.h:215
std::vector< L1ExtraMonElement< l1extra::L1MuonParticleCollection > * > m_meAnalysisL1ExtraMuon
pointers to L1ExtraMonElement for each sub-analysis
Definition: L1ExtraDQM.h:205
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
Definition: L1ExtraDQM.h:228
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
Definition: L1ExtraDQM.h:208
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
Definition: L1ExtraDQM.h:237
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
Definition: L1ExtraDQM.h:210
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
Definition: L1ExtraDQM.h:213
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
Definition: L1ExtraDQM.h:222
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
Definition: L1ExtraDQM.h:234
int m_nrEvRun
Definition: L1ExtraDQM.h:196

Member Data Documentation

edm::InputTag L1ExtraDQM::L1ExtraIsoTauJetSource
private

Definition at line 180 of file L1ExtraDQM.h.

int L1ExtraDQM::m_currentRun
private

Definition at line 192 of file L1ExtraDQM.h.

std::string L1ExtraDQM::m_dirName
private

directory name for L1Extra plots

Definition at line 182 of file L1ExtraDQM.h.

Referenced by bookHistograms().

std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraCenJet
private

Definition at line 213 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraCenJet(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraETM
private

Definition at line 225 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraETM(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraETT
private

Definition at line 222 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraETT(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraForJet
private

Definition at line 215 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraForJet(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1HFRingsCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraHfBitCounts
private

Definition at line 234 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraHfBitCounts(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1HFRingsCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraHfRingEtSums
private

Definition at line 237 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraHfRingEtSums(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraHTM
private

Definition at line 231 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraHTM(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraHTT
private

Definition at line 228 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraHTT(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1EmParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraIsoEG
private

Definition at line 208 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraIsoEG(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraIsoTauJet
private

Definition at line 219 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraIsoTauJet(), bookHistograms(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1MuonParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraMuon
private

pointers to L1ExtraMonElement for each sub-analysis

Definition at line 205 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraMuon(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1EmParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraNoIsoEG
private

Definition at line 210 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraNoIsoEG(), bookHistograms(), endRun(), and L1ExtraDQM().

std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*> L1ExtraDQM::m_meAnalysisL1ExtraTauJet
private

Definition at line 217 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraTauJet(), bookHistograms(), endRun(), and L1ExtraDQM().

int L1ExtraDQM::m_nrBxInEventGct
private
int L1ExtraDQM::m_nrBxInEventGmt
private

number of bunch crosses in event to be monitored

Definition at line 186 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraMuon(), bookHistograms(), and L1ExtraDQM().

int L1ExtraDQM::m_nrEvJob
private

Definition at line 195 of file L1ExtraDQM.h.

Referenced by analyze(), and endRun().

int L1ExtraDQM::m_nrEvRun
private

Definition at line 196 of file L1ExtraDQM.h.

Referenced by analyze(), bookHistograms(), and endRun().

bool L1ExtraDQM::m_resetModule
private

internal members

Definition at line 191 of file L1ExtraDQM.h.

L1RetrieveL1Extra L1ExtraDQM::m_retrieveL1Extra
private
bool L1ExtraDQM::m_stage1_layer2_
private

Definition at line 183 of file L1ExtraDQM.h.

Referenced by analyze(), bookHistograms(), and L1ExtraDQM().

edm::EDGetTokenT<l1extra::L1JetParticleCollection> L1ExtraDQM::m_tagL1ExtraIsoTauJetTok
private

Definition at line 201 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraIsoTauJet(), and L1ExtraDQM().