CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
L1ExtraDQM Class Reference

#include <L1ExtraDQM.h>

Inheritance diagram for L1ExtraDQM:
edm::EDAnalyzer

Classes

class  L1ExtraMonElement
 

Public Member Functions

 L1ExtraDQM (const edm::ParameterSet &)
 
virtual ~L1ExtraDQM ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
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 analyzeL1ExtraMuon (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraNoIsoEG (const edm::Event &, const edm::EventSetup &)
 
void analyzeL1ExtraTauJet (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
void beginRun (const edm::Run &, const edm::EventSetup &)
 
virtual void endJob ()
 
void endRun (const edm::Run &, const edm::EventSetup &)
 

Private Attributes

int m_currentRun
 
DQMStorem_dbe
 internal members More...
 
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::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
 
L1RetrieveL1Extra m_retrieveL1Extra
 input parameters More...
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Description: online DQM module for L1Extra trigger objects.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 74 of file L1ExtraDQM.h.

Constructor & Destructor Documentation

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

Definition at line 31 of file L1ExtraDQM.cc.

References edm::ParameterSet::getUntrackedParameter(), m_dbe, m_dirName, 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_nrBxInEventGct, m_nrBxInEventGmt, cppFunctionSkipper::operator, DQMStore::setCurrentFolder(), and DQMStore::setVerbose().

31  :
32  //
33  m_retrieveL1Extra(paramSet.getParameter<edm::ParameterSet>("L1ExtraInputTags")),
34  m_dirName(paramSet.getUntrackedParameter("DirName", std::string(
35  "L1T/L1ExtraDQM"))),
36  //
37  m_nrBxInEventGmt(paramSet.getParameter<int>("NrBxInEventGmt")),
38  m_nrBxInEventGct(paramSet.getParameter<int>("NrBxInEventGct")),
39  //
40  m_dbe(0), m_resetModule(true), m_currentRun(-99),
41  //
42  m_nrEvJob(0),
43  m_nrEvRun(0)
44 
45  {
46 
47 
48  //
49  if ((m_nrBxInEventGmt > 0) && ((m_nrBxInEventGmt % 2) == 0)) {
51 
52  edm::LogInfo("L1ExtraDQM")
53  << "\nWARNING: Number of bunch crossing to be monitored for GMT rounded to: "
55  << "\n The number must be an odd number!\n"
56  << std::endl;
57  }
58 
59  if ((m_nrBxInEventGct > 0) && ((m_nrBxInEventGct % 2) == 0)) {
61 
62  edm::LogInfo("L1ExtraDQM")
63  << "\nWARNING: Number of bunch crossing to be monitored for GCT rounded to: "
65  << "\n The number must be an odd number!\n"
66  << std::endl;
67  }
68 
69  //
82 
84  if (m_dbe == 0) {
85  edm::LogInfo("L1ExtraDQM") << "\n Unable to get DQMStore service.";
86  } else {
87 
88  if (paramSet.getUntrackedParameter<bool> ("DQMStore", false)) {
89  m_dbe->setVerbose(0);
90  }
91 
93 
94  }
95 
96 }
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:230
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::string m_dirName
directory name for L1Extra plots
Definition: L1ExtraDQM.h:183
int m_currentRun
Definition: L1ExtraDQM.h:194
int m_nrEvJob
Definition: L1ExtraDQM.h:197
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
Definition: L1ExtraDQM.h:224
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
Definition: L1ExtraDQM.h:218
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
Definition: L1ExtraDQM.h:216
std::vector< L1ExtraMonElement< l1extra::L1MuonParticleCollection > * > m_meAnalysisL1ExtraMuon
pointers to L1ExtraMonElement for each sub-analysis
Definition: L1ExtraDQM.h:206
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
Definition: L1ExtraDQM.h:227
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
Definition: L1ExtraDQM.h:209
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
Definition: L1ExtraDQM.h:236
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
Definition: L1ExtraDQM.h:211
void setVerbose(unsigned level)
Definition: DQMStore.cc:393
bool m_resetModule
Definition: L1ExtraDQM.h:193
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
Definition: L1ExtraDQM.h:214
DQMStore * m_dbe
internal members
Definition: L1ExtraDQM.h:191
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
Definition: L1ExtraDQM.h:221
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
Definition: L1ExtraDQM.h:233
int m_nrEvRun
Definition: L1ExtraDQM.h:198
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
L1ExtraDQM::~L1ExtraDQM ( )
virtual

Definition at line 99 of file L1ExtraDQM.cc.

99  {
100 
101  // empty
102 
103 }

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 811 of file L1ExtraDQM.cc.

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

812  {
813 
814  ++m_nrEvJob;
815  ++m_nrEvRun;
816 
817  //
818  m_retrieveL1Extra.retrieveL1ExtraObjects(iEvent, evSetup);
819  //
820  analyzeL1ExtraMuon(iEvent, evSetup);
821  analyzeL1ExtraIsoEG(iEvent, evSetup);
822  analyzeL1ExtraNoIsoEG(iEvent, evSetup);
823  analyzeL1ExtraCenJet(iEvent, evSetup);
824  analyzeL1ExtraForJet(iEvent, evSetup);
825  analyzeL1ExtraTauJet(iEvent, evSetup);
826  analyzeL1ExtraETT(iEvent, evSetup);
827  analyzeL1ExtraETM(iEvent, evSetup);
828  analyzeL1ExtraHTT(iEvent, evSetup);
829  analyzeL1ExtraHTM(iEvent, evSetup);
830  analyzeL1ExtraHfBitCounts(iEvent, evSetup);
831  analyzeL1ExtraHfRingEtSums(iEvent, evSetup);
832 }
int m_nrEvJob
Definition: L1ExtraDQM.h:197
void analyzeL1ExtraETT(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:263
void analyzeL1ExtraIsoEG(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:132
void analyzeL1ExtraETM(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:282
void analyzeL1ExtraCenJet(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:184
void analyzeL1ExtraForJet(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:211
void analyzeL1ExtraTauJet(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:237
void analyzeL1ExtraMuon(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:105
void analyzeL1ExtraHTM(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:323
void analyzeL1ExtraHTT(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:305
void analyzeL1ExtraHfRingEtSums(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:367
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
void analyzeL1ExtraNoIsoEG(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:158
void analyzeL1ExtraHfBitCounts(const edm::Event &, const edm::EventSetup &)
Definition: L1ExtraDQM.cc:345
int m_nrEvRun
Definition: L1ExtraDQM.h:198
void retrieveL1ExtraObjects(const edm::Event &, const edm::EventSetup &)
void L1ExtraDQM::analyzeL1ExtraCenJet ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 184 of file L1ExtraDQM.cc.

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

Referenced by analyze().

185  {
186 
187  bool bookEta = true;
188  bool bookPhi = true;
189 
190  bool isL1Coll = true;
191 
192  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
193 
194  // convert to actual convention used in the hardware
195  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
196  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
197  - m_nrBxInEventGct;
198 
199  (m_meAnalysisL1ExtraCenJet.at(iBxInEvent))->fillNrObjects(
201  m_retrieveL1Extra.validL1ExtraCenJet(), isL1Coll, bxInEvent);
202  (m_meAnalysisL1ExtraCenJet.at(iBxInEvent))->fillEtPhiEta(
204  m_retrieveL1Extra.validL1ExtraCenJet(), bookPhi, bookEta,
205  isL1Coll, bxInEvent);
206  }
207 
208 }
const bool validL1ExtraCenJet() const
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
Definition: L1ExtraDQM.h:214
const l1extra::L1JetParticleCollection * l1ExtraCenJet() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
void L1ExtraDQM::analyzeL1ExtraETM ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 282 of file L1ExtraDQM.cc.

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

Referenced by analyze().

283  {
284 
285  bool bookPhi = true;
286  bool bookEta = false;
287 
288  bool isL1Coll = true;
289 
290  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
291 
292  // convert to actual convention used in the hardware
293  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
294  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
295  - m_nrBxInEventGct;
296 
297  (m_meAnalysisL1ExtraETM.at(iBxInEvent))->fillEtPhiEta(m_retrieveL1Extra.l1ExtraETM(),
298  m_retrieveL1Extra.validL1ExtraETM(), bookPhi, bookEta,
299  isL1Coll, bxInEvent);
300 
301  }
302 
303 }
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
Definition: L1ExtraDQM.h:224
const l1extra::L1EtMissParticleCollection * l1ExtraETM() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
const bool validL1ExtraETM() const
void L1ExtraDQM::analyzeL1ExtraETT ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 263 of file L1ExtraDQM.cc.

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

Referenced by analyze().

264  {
265 
266  bool isL1Coll = true;
267 
268  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
269 
270  // convert to actual convention used in the hardware
271  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
272  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
273  - m_nrBxInEventGct;
274 
275  (m_meAnalysisL1ExtraETT.at(iBxInEvent))->fillEtTotal(m_retrieveL1Extra.l1ExtraETT(),
276  m_retrieveL1Extra.validL1ExtraETT(), isL1Coll, bxInEvent);
277 
278  }
279 
280 }
const bool validL1ExtraETT() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
Definition: L1ExtraDQM.h:221
const l1extra::L1EtMissParticleCollection * l1ExtraETT() const
void L1ExtraDQM::analyzeL1ExtraForJet ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 211 of file L1ExtraDQM.cc.

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

Referenced by analyze().

212  {
213 
214  bool bookPhi = true;
215  bool bookEta = true;
216 
217  bool isL1Coll = true;
218 
219  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
220 
221  // convert to actual convention used in the hardware
222  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
223  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
224  - m_nrBxInEventGct;
225 
226  (m_meAnalysisL1ExtraForJet.at(iBxInEvent))->fillNrObjects(
228  m_retrieveL1Extra.validL1ExtraForJet(), isL1Coll, bxInEvent);
229  (m_meAnalysisL1ExtraForJet.at(iBxInEvent))->fillEtPhiEta(
231  m_retrieveL1Extra.validL1ExtraForJet(), bookPhi, bookEta,
232  isL1Coll, bxInEvent);
233  }
234 
235 }
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
Definition: L1ExtraDQM.h:216
const bool validL1ExtraForJet() const
const l1extra::L1JetParticleCollection * l1ExtraForJet() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
void L1ExtraDQM::analyzeL1ExtraHfBitCounts ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 345 of file L1ExtraDQM.cc.

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

Referenced by analyze().

346  {
347 
348  bool isL1Coll = true;
349 
350  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
351 
352  // convert to actual convention used in the hardware
353  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
354  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
355  - m_nrBxInEventGct;
356 
357  for (int iCount = 0; iCount < l1extra::L1HFRings::kNumRings; ++iCount) {
358  (m_meAnalysisL1ExtraHfBitCounts.at(iBxInEvent))->fillHfBitCounts(
361  isL1Coll, bxInEvent);
362  }
363  }
364 
365 }
const bool validL1ExtraHfBitCounts() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
Definition: L1ExtraDQM.h:233
const l1extra::L1HFRingsCollection * l1ExtraHfBitCounts() const
void L1ExtraDQM::analyzeL1ExtraHfRingEtSums ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 367 of file L1ExtraDQM.cc.

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

Referenced by analyze().

368  {
369 
370  bool isL1Coll = true;
371 
372  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
373 
374  // convert to actual convention used in the hardware
375  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
376  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
377  - m_nrBxInEventGct;
378 
379  for (int iCount = 0; iCount < l1extra::L1HFRings::kNumRings; ++iCount) {
380  (m_meAnalysisL1ExtraHfRingEtSums.at(iBxInEvent))->fillHfRingEtSums(
383  isL1Coll, bxInEvent);
384  }
385  }
386 
387 }
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
Definition: L1ExtraDQM.h:236
const l1extra::L1HFRingsCollection * l1ExtraHfRingEtSums() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
const bool validL1ExtraHfRingEtSums() const
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
void L1ExtraDQM::analyzeL1ExtraHTM ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 323 of file L1ExtraDQM.cc.

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

Referenced by analyze().

324  {
325 
326  bool bookPhi = true;
327  bool bookEta = false;
328 
329  bool isL1Coll = true;
330 
331  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
332 
333  // convert to actual convention used in the hardware
334  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
335  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
336  - m_nrBxInEventGct;
337 
338  (m_meAnalysisL1ExtraHTM.at(iBxInEvent))->fillEtPhiEta(m_retrieveL1Extra.l1ExtraHTM(),
339  m_retrieveL1Extra.validL1ExtraHTM(), bookPhi, bookEta,
340  isL1Coll, bxInEvent);
341  }
342 
343 }
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTM
Definition: L1ExtraDQM.h:230
const bool validL1ExtraHTM() const
const l1extra::L1EtMissParticleCollection * l1ExtraHTM() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
void L1ExtraDQM::analyzeL1ExtraHTT ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 305 of file L1ExtraDQM.cc.

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

Referenced by analyze().

306  {
307 
308  bool isL1Coll = true;
309 
310  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
311 
312  // convert to actual convention used in the hardware
313  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
314  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
315  - m_nrBxInEventGct;
316 
317  (m_meAnalysisL1ExtraHTT.at(iBxInEvent))->fillEtTotal(m_retrieveL1Extra.l1ExtraHTT(),
318  m_retrieveL1Extra.validL1ExtraHTT(), isL1Coll, bxInEvent);
319 
320  }
321 }
const bool validL1ExtraHTT() const
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
Definition: L1ExtraDQM.h:227
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
const l1extra::L1EtMissParticleCollection * l1ExtraHTT() const
void L1ExtraDQM::analyzeL1ExtraIsoEG ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 132 of file L1ExtraDQM.cc.

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

Referenced by analyze().

133  {
134 
135  bool bookEta = true;
136  bool bookPhi = true;
137 
138  bool isL1Coll = true;
139 
140  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
141 
142  // convert to actual convention used in the hardware
143  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
144  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
145  - m_nrBxInEventGct;
146 
147  (m_meAnalysisL1ExtraIsoEG.at(iBxInEvent))->fillNrObjects(
149  m_retrieveL1Extra.validL1ExtraIsoEG(), isL1Coll, bxInEvent);
150  (m_meAnalysisL1ExtraIsoEG.at(iBxInEvent))->fillPtPhiEta(
152  m_retrieveL1Extra.validL1ExtraIsoEG(), bookPhi, bookEta,
153  isL1Coll, bxInEvent);
154  }
155 
156 }
const bool validL1ExtraIsoEG() const
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
Definition: L1ExtraDQM.h:209
const l1extra::L1EmParticleCollection * l1ExtraIsoEG() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
void L1ExtraDQM::analyzeL1ExtraMuon ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 105 of file L1ExtraDQM.cc.

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

Referenced by analyze().

106  {
107 
108  bool bookEta = true;
109  bool bookPhi = true;
110 
111  bool isL1Coll = true;
112 
113  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGmt; ++iBxInEvent) {
114 
115  // convert to actual convention used in the hardware
116  // (from [o, m_nrBxInEventGmt] -> [-X, 0, +X]
117  int bxInEvent = iBxInEvent + (m_nrBxInEventGmt + 1) / 2
118  - m_nrBxInEventGmt;
119 
120  (m_meAnalysisL1ExtraMuon.at(iBxInEvent))->fillNrObjects(
122  m_retrieveL1Extra.validL1ExtraMuon(), isL1Coll, bxInEvent);
123  (m_meAnalysisL1ExtraMuon.at(iBxInEvent))->fillPtPhiEta(
125  m_retrieveL1Extra.validL1ExtraMuon(), bookPhi, bookEta,
126  isL1Coll, bxInEvent);
127 
128  }
129 
130 }
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:206
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
void L1ExtraDQM::analyzeL1ExtraNoIsoEG ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 158 of file L1ExtraDQM.cc.

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

Referenced by analyze().

159  {
160 
161  bool bookEta = true;
162  bool bookPhi = true;
163 
164  bool isL1Coll = true;
165 
166  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
167 
168  // convert to actual convention used in the hardware
169  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
170  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
171  - m_nrBxInEventGct;
172 
173  (m_meAnalysisL1ExtraNoIsoEG.at(iBxInEvent))->fillNrObjects(
175  m_retrieveL1Extra.validL1ExtraNoIsoEG(), isL1Coll, bxInEvent);
176  (m_meAnalysisL1ExtraNoIsoEG.at(iBxInEvent))->fillPtPhiEta(
178  m_retrieveL1Extra.validL1ExtraNoIsoEG(), bookPhi, bookEta,
179  isL1Coll, bxInEvent);
180  }
181 
182 }
const l1extra::L1EmParticleCollection * l1ExtraNoIsoEG() const
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
Definition: L1ExtraDQM.h:211
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
const bool validL1ExtraNoIsoEG() const
void L1ExtraDQM::analyzeL1ExtraTauJet ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
private

Definition at line 237 of file L1ExtraDQM.cc.

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

Referenced by analyze().

238  {
239 
240  bool bookPhi = true;
241  bool bookEta = true;
242 
243  bool isL1Coll = true;
244 
245  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
246 
247  // convert to actual convention used in the hardware
248  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
249  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
250  - m_nrBxInEventGct;
251 
252  (m_meAnalysisL1ExtraTauJet.at(iBxInEvent))->fillNrObjects(
254  m_retrieveL1Extra.validL1ExtraTauJet(), isL1Coll, bxInEvent);
255  (m_meAnalysisL1ExtraTauJet.at(iBxInEvent))->fillEtPhiEta(
257  m_retrieveL1Extra.validL1ExtraTauJet(), bookPhi, bookEta,
258  isL1Coll, bxInEvent);
259  }
260 
261 }
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
Definition: L1ExtraDQM.h:218
const bool validL1ExtraTauJet() const
const l1extra::L1JetParticleCollection * l1ExtraTauJet() const
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
Definition: L1ExtraDQM.h:180
void L1ExtraDQM::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 390 of file L1ExtraDQM.cc.

390  {
391 
392 
393 }
void L1ExtraDQM::beginRun ( const edm::Run iRun,
const edm::EventSetup evSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 396 of file L1ExtraDQM.cc.

References bookHistograms(), CenJet, DQMStore::dirExists(), ETM, ETT, ForJet, HfBitCounts, HfRingEtSums, HTM, HTT, IsoEG, m_dbe, m_dirName, 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_nrBxInEventGct, m_nrBxInEventGmt, m_nrEvRun, Mu, NoIsoEG, cppFunctionSkipper::operator, DQMStore::rmdir(), DQMStore::setCurrentFolder(), and TauJet.

396  {
397 
398  m_nrEvRun = 0;
399 
400  DQMStore* dbe = 0;
401  dbe = edm::Service<DQMStore>().operator->();
402 
403  // clean up directory
404  if (dbe) {
405  dbe->setCurrentFolder(m_dirName);
406  if (dbe->dirExists(m_dirName)) {
407  dbe->rmdir(m_dirName);
408  }
409  dbe->setCurrentFolder(m_dirName);
410  }
411 
412  std::vector<L1GtObject> l1Obj;
413 
414  // define standard sets of histograms
415 
416  //
417  l1Obj.clear();
418  l1Obj.push_back(Mu);
419  int nrMonElements = 5;
420 
421  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGmt; ++iBxInEvent) {
422 
424  l1extra::L1MuonParticleCollection>(evSetup, nrMonElements));
425 
426  // convert to actual convention used in the hardware
427  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
428  // write it in hex [..., E, F, 0, 1, 2, ...]
429  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
431  int bxInEventHex = (bxInEvent+ 16) % 16;
432 
433  std::stringstream ss;
434  std::string bxInEventHexString;
435  ss << std::uppercase << std::hex << bxInEventHex;
436  ss >> bxInEventHexString;
437 
438  if (m_dbe) {
439  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
440  + bxInEventHexString);
441  }
442 
443  (m_meAnalysisL1ExtraMuon.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
444  "L1_Mu", l1Obj);
445 
446  }
447 
448  //
449  l1Obj.clear();
450  l1Obj.push_back(IsoEG);
451  nrMonElements = 4;
452 
453  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
454 
456  l1extra::L1EmParticleCollection>(evSetup, nrMonElements));
457 
458  // convert to actual convention used in the hardware
459  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
460  // write it in hex [..., E, F, 0, 1, 2, ...]
461  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
462  - m_nrBxInEventGct;
463  int bxInEventHex = (bxInEvent+ 16) % 16;
464 
465  std::stringstream ss;
466  std::string bxInEventHexString;
467  ss << std::uppercase << std::hex << bxInEventHex;
468  ss >> bxInEventHexString;
469 
470  if (m_dbe) {
471  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
472  + bxInEventHexString);
473  }
474 
475  (m_meAnalysisL1ExtraIsoEG.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
476  "L1_IsoEG", l1Obj);
477  }
478 
479  //
480  l1Obj.clear();
481  l1Obj.push_back(NoIsoEG);
482  nrMonElements = 4;
483 
484  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
485 
487  l1extra::L1EmParticleCollection>(evSetup, nrMonElements));
488 
489  // convert to actual convention used in the hardware
490  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
491  // write it in hex [..., E, F, 0, 1, 2, ...]
492  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
493  - m_nrBxInEventGct;
494  int bxInEventHex = (bxInEvent+ 16) % 16;
495 
496  std::stringstream ss;
497  std::string bxInEventHexString;
498  ss << std::uppercase << std::hex << bxInEventHex;
499  ss >> bxInEventHexString;
500 
501  if (m_dbe) {
502  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
503  + bxInEventHexString);
504  }
505 
506  (m_meAnalysisL1ExtraNoIsoEG.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
507  "L1_NoIsoEG", l1Obj);
508  }
509 
510  //
511  l1Obj.clear();
512  l1Obj.push_back(CenJet);
513  nrMonElements = 4;
514 
515  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
516 
518  l1extra::L1JetParticleCollection>(evSetup, nrMonElements));
519 
520  // convert to actual convention used in the hardware
521  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
522  // write it in hex [..., E, F, 0, 1, 2, ...]
523  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
524  - m_nrBxInEventGct;
525  int bxInEventHex = (bxInEvent+ 16) % 16;
526 
527  std::stringstream ss;
528  std::string bxInEventHexString;
529  ss << std::uppercase << std::hex << bxInEventHex;
530  ss >> bxInEventHexString;
531 
532  if (m_dbe) {
533  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
534  + bxInEventHexString);
535  }
536 
537  (m_meAnalysisL1ExtraCenJet.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
538  "L1_CenJet", l1Obj);
539  }
540 
541  //
542  l1Obj.clear();
543  l1Obj.push_back(ForJet);
544 
545  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
546 
548  l1extra::L1JetParticleCollection>(evSetup, nrMonElements));
549 
550  // convert to actual convention used in the hardware
551  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
552  // write it in hex [..., E, F, 0, 1, 2, ...]
553  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
554  - m_nrBxInEventGct;
555  int bxInEventHex = (bxInEvent+ 16) % 16;
556 
557  std::stringstream ss;
558  std::string bxInEventHexString;
559  ss << std::uppercase << std::hex << bxInEventHex;
560  ss >> bxInEventHexString;
561 
562  if (m_dbe) {
563  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
564  + bxInEventHexString);
565  }
566 
567  (m_meAnalysisL1ExtraForJet.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
568  "L1_ForJet", l1Obj);
569  }
570 
571  //
572  l1Obj.clear();
573  l1Obj.push_back(TauJet);
574 
575  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
576 
578  l1extra::L1JetParticleCollection>(evSetup, nrMonElements));
579 
580  // convert to actual convention used in the hardware
581  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
582  // write it in hex [..., E, F, 0, 1, 2, ...]
583  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
584  - m_nrBxInEventGct;
585  int bxInEventHex = (bxInEvent+ 16) % 16;
586 
587  std::stringstream ss;
588  std::string bxInEventHexString;
589  ss << std::uppercase << std::hex << bxInEventHex;
590  ss >> bxInEventHexString;
591 
592  if (m_dbe) {
593  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
594  + bxInEventHexString);
595  }
596 
597  (m_meAnalysisL1ExtraTauJet.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
598  "L1_TauJet", l1Obj);
599  }
600 
601  //
602  l1Obj.clear();
603  l1Obj.push_back(ETT);
604  nrMonElements = 1;
605 
606  bool bookPhi = false;
607  bool bookEta = false;
608 
609  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
610 
612  l1extra::L1EtMissParticleCollection>(evSetup, nrMonElements));
613 
614  // convert to actual convention used in the hardware
615  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
616  // write it in hex [..., E, F, 0, 1, 2, ...]
617  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
618  - 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  if (m_dbe) {
627  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
628  + bxInEventHexString);
629  }
630 
631  (m_meAnalysisL1ExtraETT.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
632  "L1_ETT", l1Obj, bookPhi, bookEta);
633  }
634 
635  //
636  l1Obj.clear();
637  l1Obj.push_back(ETM);
638  nrMonElements = 2;
639 
640  bookPhi = true;
641  bookEta = false;
642 
643  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
644 
646  l1extra::L1EtMissParticleCollection>(evSetup, nrMonElements));
647 
648  // convert to actual convention used in the hardware
649  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
650  // write it in hex [..., E, F, 0, 1, 2, ...]
651  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
652  - m_nrBxInEventGct;
653  int bxInEventHex = (bxInEvent+ 16) % 16;
654 
655  std::stringstream ss;
656  std::string bxInEventHexString;
657  ss << std::uppercase << std::hex << bxInEventHex;
658  ss >> bxInEventHexString;
659 
660  if (m_dbe) {
661  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
662  + bxInEventHexString);
663  }
664 
665  (m_meAnalysisL1ExtraETM.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
666  "L1_ETM", l1Obj, bookPhi, bookEta);
667  }
668 
669  //
670  l1Obj.clear();
671  l1Obj.push_back(HTT);
672  nrMonElements = 1;
673 
674  bookPhi = false;
675  bookEta = false;
676 
677  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
678 
680  l1extra::L1EtMissParticleCollection>(evSetup, nrMonElements));
681 
682  // convert to actual convention used in the hardware
683  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
684  // write it in hex [..., E, F, 0, 1, 2, ...]
685  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
686  - m_nrBxInEventGct;
687  int bxInEventHex = (bxInEvent+ 16) % 16;
688 
689  std::stringstream ss;
690  std::string bxInEventHexString;
691  ss << std::uppercase << std::hex << bxInEventHex;
692  ss >> bxInEventHexString;
693 
694  if (m_dbe) {
695  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
696  + bxInEventHexString);
697  }
698 
699  (m_meAnalysisL1ExtraHTT.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
700  "L1_HTT", l1Obj, bookPhi, bookEta);
701  }
702 
703  //
704  l1Obj.clear();
705  l1Obj.push_back(HTM);
706  nrMonElements = 2;
707 
708  bookPhi = true;
709  bookEta = false;
710 
711  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
712 
714  l1extra::L1EtMissParticleCollection>(evSetup, nrMonElements));
715 
716  // convert to actual convention used in the hardware
717  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
718  // write it in hex [..., E, F, 0, 1, 2, ...]
719  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
720  - m_nrBxInEventGct;
721  int bxInEventHex = (bxInEvent+ 16) % 16;
722 
723  std::stringstream ss;
724  std::string bxInEventHexString;
725  ss << std::uppercase << std::hex << bxInEventHex;
726  ss >> bxInEventHexString;
727 
728  if (m_dbe) {
729  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
730  + bxInEventHexString);
731  }
732 
733  (m_meAnalysisL1ExtraHTM.at(iBxInEvent))->bookHistograms(evSetup, m_dbe,
734  "L1_HTM", l1Obj, bookPhi, bookEta);
735  }
736 
737  //
738  l1Obj.clear();
739  l1Obj.push_back(HfBitCounts);
740  nrMonElements = 1;
741 
742  bookPhi = false;
743  bookEta = false;
744 
745  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
746 
749  evSetup, nrMonElements));
750 
751  // convert to actual convention used in the hardware
752  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
753  // write it in hex [..., E, F, 0, 1, 2, ...]
754  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
755  - m_nrBxInEventGct;
756  int bxInEventHex = (bxInEvent+ 16) % 16;
757 
758  std::stringstream ss;
759  std::string bxInEventHexString;
760  ss << std::uppercase << std::hex << bxInEventHex;
761  ss >> bxInEventHexString;
762 
763  if (m_dbe) {
764  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
765  + bxInEventHexString);
766  }
767 
768  (m_meAnalysisL1ExtraHfBitCounts.at(iBxInEvent))->bookHistograms(evSetup,
769  m_dbe, "L1_HfBitCounts", l1Obj, bookPhi, bookEta);
770  }
771 
772  //
773  l1Obj.clear();
774  l1Obj.push_back(HfRingEtSums);
775  nrMonElements = 1;
776 
777  bookPhi = false;
778  bookEta = false;
779 
780  for (int iBxInEvent = 0; iBxInEvent < m_nrBxInEventGct; ++iBxInEvent) {
781 
784  evSetup, nrMonElements));
785 
786  // convert to actual convention used in the hardware
787  // (from [o, m_nrBxInEventGct] -> [-X, 0, +X]
788  // write it in hex [..., E, F, 0, 1, 2, ...]
789  int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
790  - m_nrBxInEventGct;
791  int bxInEventHex = (bxInEvent+ 16) % 16;
792 
793  std::stringstream ss;
794  std::string bxInEventHexString;
795  ss << std::uppercase << std::hex << bxInEventHex;
796  ss >> bxInEventHexString;
797 
798  if (m_dbe) {
799  dbe->setCurrentFolder(m_dirName + "/BxInEvent_"
800  + bxInEventHexString);
801  }
802 
803  (m_meAnalysisL1ExtraHfRingEtSums.at(iBxInEvent))->bookHistograms(evSetup,
804  m_dbe, "L1_HfRingEtSums", l1Obj, bookPhi, bookEta);
805  }
806 
807 }
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:230
std::string m_dirName
directory name for L1Extra plots
Definition: L1ExtraDQM.h:183
Definition: L1GtObject.h:41
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
Definition: L1ExtraDQM.h:224
Definition: L1GtObject.h:38
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
Definition: L1ExtraDQM.h:218
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
Definition: L1ExtraDQM.h:216
std::vector< L1JetParticle > L1JetParticleCollection
void bookHistograms(fwlite::EventContainer &eventCont)
Definition: L1GtObject.h:40
std::vector< L1ExtraMonElement< l1extra::L1MuonParticleCollection > * > m_meAnalysisL1ExtraMuon
pointers to L1ExtraMonElement for each sub-analysis
Definition: L1ExtraDQM.h:206
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
Definition: L1ExtraDQM.h:227
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
Definition: L1ExtraDQM.h:209
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
Definition: L1ExtraDQM.h:236
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
Definition: L1ExtraDQM.h:211
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
Definition: L1ExtraDQM.h:214
Definition: L1GtObject.h:32
DQMStore * m_dbe
internal members
Definition: L1ExtraDQM.h:191
int m_nrBxInEventGct
Definition: L1ExtraDQM.h:187
Definition: L1GtObject.h:39
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
Definition: L1ExtraDQM.h:221
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
Definition: L1ExtraDQM.h:233
std::vector< L1EtMissParticle > L1EtMissParticleCollection
std::vector< L1EmParticle > L1EmParticleCollection
std::vector< L1MuonParticle > L1MuonParticleCollection
int m_nrEvRun
Definition: L1ExtraDQM.h:198
void L1ExtraDQM::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 959 of file L1ExtraDQM.cc.

References m_nrEvJob.

959  {
960 
961  edm::LogInfo("L1ExtraDQM")
962  << "\n\nTotal number of events analyzed in this job: " << m_nrEvJob
963  << "\n" << std::endl;
964 
965  return;
966 }
int m_nrEvJob
Definition: L1ExtraDQM.h:197
void L1ExtraDQM::endRun ( const edm::Run run,
const edm::EventSetup evSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 835 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.

835  {
836 
837  // delete if event setup has changed only FIXME
838 
839  for (std::vector<L1ExtraMonElement<l1extra::L1MuonParticleCollection>*>::iterator
840  iterME = m_meAnalysisL1ExtraMuon.begin(); iterME
841  != m_meAnalysisL1ExtraMuon.end(); ++iterME) {
842 
843  delete *iterME;
844 
845  }
846  m_meAnalysisL1ExtraMuon.clear();
847 
848 
849  for (std::vector<L1ExtraMonElement<l1extra::L1EmParticleCollection>*>::iterator
850  iterME = m_meAnalysisL1ExtraIsoEG.begin(); iterME
851  != m_meAnalysisL1ExtraIsoEG.end(); ++iterME) {
852 
853  delete *iterME;
854 
855  }
856  m_meAnalysisL1ExtraIsoEG.clear();
857 
858 
859  for (std::vector<L1ExtraMonElement<l1extra::L1EmParticleCollection>*>::iterator
860  iterME = m_meAnalysisL1ExtraNoIsoEG.begin(); iterME
861  != m_meAnalysisL1ExtraNoIsoEG.end(); ++iterME) {
862 
863  delete *iterME;
864 
865  }
867 
868 
869  for (std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*>::iterator
870  iterME = m_meAnalysisL1ExtraCenJet.begin(); iterME
871  != m_meAnalysisL1ExtraCenJet.end(); ++iterME) {
872 
873  delete *iterME;
874 
875  }
877 
878  for (std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*>::iterator
879  iterME = m_meAnalysisL1ExtraForJet.begin(); iterME
880  != m_meAnalysisL1ExtraForJet.end(); ++iterME) {
881 
882  delete *iterME;
883 
884  }
886 
887  for (std::vector<L1ExtraMonElement<l1extra::L1JetParticleCollection>*>::iterator
888  iterME = m_meAnalysisL1ExtraTauJet.begin(); iterME
889  != m_meAnalysisL1ExtraTauJet.end(); ++iterME) {
890 
891  delete *iterME;
892 
893  }
895 
896 
897  for (std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*>::iterator
898  iterME = m_meAnalysisL1ExtraETT.begin(); iterME
899  != m_meAnalysisL1ExtraETT.end(); ++iterME) {
900 
901  delete *iterME;
902 
903  }
904  m_meAnalysisL1ExtraETT.clear();
905 
906  for (std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*>::iterator
907  iterME = m_meAnalysisL1ExtraETM.begin(); iterME
908  != m_meAnalysisL1ExtraETM.end(); ++iterME) {
909 
910  delete *iterME;
911 
912  }
913  m_meAnalysisL1ExtraETM.clear();
914 
915  for (std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*>::iterator
916  iterME = m_meAnalysisL1ExtraHTT.begin(); iterME
917  != m_meAnalysisL1ExtraHTT.end(); ++iterME) {
918 
919  delete *iterME;
920 
921  }
922  m_meAnalysisL1ExtraHTT.clear();
923 
924  for (std::vector<L1ExtraMonElement<l1extra::L1EtMissParticleCollection>*>::iterator
925  iterME = m_meAnalysisL1ExtraHTM.begin(); iterME
926  != m_meAnalysisL1ExtraHTM.end(); ++iterME) {
927 
928  delete *iterME;
929 
930  }
931  m_meAnalysisL1ExtraHTM.clear();
932 
933 
934  for (std::vector<L1ExtraMonElement<l1extra::L1HFRingsCollection>*>::iterator
935  iterME = m_meAnalysisL1ExtraHfBitCounts.begin(); iterME
936  != m_meAnalysisL1ExtraHfBitCounts.end(); ++iterME) {
937 
938  delete *iterME;
939 
940  }
942 
943  for (std::vector<L1ExtraMonElement<l1extra::L1HFRingsCollection>*>::iterator
944  iterME = m_meAnalysisL1ExtraHfRingEtSums.begin(); iterME
945  != m_meAnalysisL1ExtraHfRingEtSums.end(); ++iterME) {
946 
947  delete *iterME;
948 
949  }
951 
952  LogDebug("L1ExtraDQM") << "\n\n endRun: " << run.id()
953  << "\n Number of events analyzed in this run: " << m_nrEvRun
954  << "\n Total number of events analyzed in this job: " << m_nrEvJob
955  << "\n" << std::endl;
956 
957 }
#define LogDebug(id)
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTM
Definition: L1ExtraDQM.h:230
RunID const & id() const
Definition: RunBase.h:41
int m_nrEvJob
Definition: L1ExtraDQM.h:197
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETM
Definition: L1ExtraDQM.h:224
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraTauJet
Definition: L1ExtraDQM.h:218
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraForJet
Definition: L1ExtraDQM.h:216
std::vector< L1ExtraMonElement< l1extra::L1MuonParticleCollection > * > m_meAnalysisL1ExtraMuon
pointers to L1ExtraMonElement for each sub-analysis
Definition: L1ExtraDQM.h:206
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraHTT
Definition: L1ExtraDQM.h:227
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraIsoEG
Definition: L1ExtraDQM.h:209
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfRingEtSums
Definition: L1ExtraDQM.h:236
std::vector< L1ExtraMonElement< l1extra::L1EmParticleCollection > * > m_meAnalysisL1ExtraNoIsoEG
Definition: L1ExtraDQM.h:211
std::vector< L1ExtraMonElement< l1extra::L1JetParticleCollection > * > m_meAnalysisL1ExtraCenJet
Definition: L1ExtraDQM.h:214
std::vector< L1ExtraMonElement< l1extra::L1EtMissParticleCollection > * > m_meAnalysisL1ExtraETT
Definition: L1ExtraDQM.h:221
std::vector< L1ExtraMonElement< l1extra::L1HFRingsCollection > * > m_meAnalysisL1ExtraHfBitCounts
Definition: L1ExtraDQM.h:233
int m_nrEvRun
Definition: L1ExtraDQM.h:198

Member Data Documentation

int L1ExtraDQM::m_currentRun
private

Definition at line 194 of file L1ExtraDQM.h.

DQMStore* L1ExtraDQM::m_dbe
private

internal members

Definition at line 191 of file L1ExtraDQM.h.

Referenced by beginRun(), and L1ExtraDQM().

std::string L1ExtraDQM::m_dirName
private

directory name for L1Extra plots

Definition at line 183 of file L1ExtraDQM.h.

Referenced by beginRun(), and L1ExtraDQM().

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

Definition at line 214 of file L1ExtraDQM.h.

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

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

Definition at line 224 of file L1ExtraDQM.h.

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

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

Definition at line 221 of file L1ExtraDQM.h.

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

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

Definition at line 216 of file L1ExtraDQM.h.

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

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

Definition at line 233 of file L1ExtraDQM.h.

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

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

Definition at line 236 of file L1ExtraDQM.h.

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

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

Definition at line 230 of file L1ExtraDQM.h.

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

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

Definition at line 227 of file L1ExtraDQM.h.

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

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

Definition at line 209 of file L1ExtraDQM.h.

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

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

pointers to L1ExtraMonElement for each sub-analysis

Definition at line 206 of file L1ExtraDQM.h.

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

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

Definition at line 211 of file L1ExtraDQM.h.

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

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

Definition at line 218 of file L1ExtraDQM.h.

Referenced by analyzeL1ExtraTauJet(), beginRun(), 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(), beginRun(), and L1ExtraDQM().

int L1ExtraDQM::m_nrEvJob
private

Definition at line 197 of file L1ExtraDQM.h.

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

int L1ExtraDQM::m_nrEvRun
private

Definition at line 198 of file L1ExtraDQM.h.

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

bool L1ExtraDQM::m_resetModule
private

Definition at line 193 of file L1ExtraDQM.h.

L1RetrieveL1Extra L1ExtraDQM::m_retrieveL1Extra
private