CMS 3D CMS Logo

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

#include <L1ExtraRecoDQM.h>

Inheritance diagram for L1ExtraRecoDQM:
edm::EDAnalyzer

Public Member Functions

 L1ExtraRecoDQM (const edm::ParameterSet &)
 
virtual ~L1ExtraRecoDQM ()
 
- 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 &)
 
virtual void beginJob ()
 
virtual void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void beginRun (const edm::Run &, const edm::EventSetup &)
 
virtual void endJob ()
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 end section More...
 
virtual 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...
 
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 versus Reco trigger objects.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna
Date:
2011/12/05 10:20:56
Revision:
1.2

Definition at line 74 of file L1ExtraRecoDQM.h.

Constructor & Destructor Documentation

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

Definition at line 30 of file L1ExtraRecoDQM.cc.

References edm::ParameterSet::getUntrackedParameter(), m_dbe, m_dirName, m_nrBxInEventGct, m_nrBxInEventGmt, cppFunctionSkipper::operator, DQMStore::setCurrentFolder(), and DQMStore::setVerbose().

30  :
31  //
34  "L1ExtraInputTags")),
35  m_dirName(
36  paramSet.getUntrackedParameter("DirName",
37  std::string("L1T/L1ExtraRecoDQM"))),
38  //
39  m_nrBxInEventGmt(paramSet.getParameter<int> ("NrBxInEventGmt")),
40  m_nrBxInEventGct(paramSet.getParameter<int> ("NrBxInEventGct")),
41  //
42  m_dbe(0), m_resetModule(true), m_currentRun(-99),
43  //
44  m_nrEvJob(0), m_nrEvRun(0)
45 
46 {
47 
48  //
49  if ((m_nrBxInEventGmt > 0) && ((m_nrBxInEventGmt % 2) == 0)) {
51 
52  edm::LogInfo("L1ExtraRecoDQM")
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("L1ExtraRecoDQM")
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 
70  if (m_dbe == 0) {
71  edm::LogInfo("L1ExtraRecoDQM") << "\n Unable to get DQMStore service.";
72  } else {
73 
74  if (paramSet.getUntrackedParameter<bool> ("DQMStore", false)) {
75  m_dbe->setVerbose(0);
76  }
77 
79 
80  }
81 
82 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int m_nrBxInEventGmt
number of bunch crosses in event to be monitored
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
void setVerbose(unsigned level)
Definition: DQMStore.cc:393
std::string m_dirName
directory name for L1Extra plots
DQMStore * m_dbe
internal members
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
L1ExtraRecoDQM::~L1ExtraRecoDQM ( )
virtual

Definition at line 85 of file L1ExtraRecoDQM.cc.

85  {
86 
87  // empty
88 
89 }

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 125 of file L1ExtraRecoDQM.cc.

References m_nrEvJob, m_nrEvRun, m_retrieveL1Extra, and L1RetrieveL1Extra::retrieveL1ExtraObjects().

126  {
127 
128  ++m_nrEvJob;
129  ++m_nrEvRun;
130 
131  //
132  m_retrieveL1Extra.retrieveL1ExtraObjects(iEvent, evSetup);
133 
134 }
L1RetrieveL1Extra m_retrieveL1Extra
input parameters
void retrieveL1ExtraObjects(const edm::Event &, const edm::EventSetup &)
void L1ExtraRecoDQM::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 92 of file L1ExtraRecoDQM.cc.

92  {
93 
94 }
void L1ExtraRecoDQM::beginLuminosityBlock ( const edm::LuminosityBlock iLumi,
const edm::EventSetup evSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 115 of file L1ExtraRecoDQM.cc.

116  {
117 
118  //
119 
120 
121 }
void L1ExtraRecoDQM::beginRun ( const edm::Run iRun,
const edm::EventSetup evSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 96 of file L1ExtraRecoDQM.cc.

References DQMStore::dirExists(), m_dirName, m_nrEvRun, cppFunctionSkipper::operator, DQMStore::rmdir(), and DQMStore::setCurrentFolder().

97  {
98 
99  m_nrEvRun = 0;
100 
101  DQMStore* dbe = 0;
102  dbe = edm::Service<DQMStore>().operator->();
103 
104  // clean up directory
105  if (dbe) {
106  dbe->setCurrentFolder(m_dirName);
107  if (dbe->dirExists(m_dirName)) {
108  dbe->rmdir(m_dirName);
109  }
110  dbe->setCurrentFolder(m_dirName);
111  }
112 
113 }
std::string m_dirName
directory name for L1Extra plots
void L1ExtraRecoDQM::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 150 of file L1ExtraRecoDQM.cc.

References m_nrEvJob.

150  {
151 
152  edm::LogInfo("L1ExtraRecoDQM")
153  << "\n\nTotal number of events analyzed in this job: " << m_nrEvJob
154  << "\n" << std::endl;
155 
156  return;
157 }
void L1ExtraRecoDQM::endLuminosityBlock ( const edm::LuminosityBlock iLumi,
const edm::EventSetup evSetup 
)
privatevirtual

end section

Reimplemented from edm::EDAnalyzer.

Definition at line 137 of file L1ExtraRecoDQM.cc.

138  {
139 
140  // empty
141 
142 }
void L1ExtraRecoDQM::endRun ( const edm::Run run,
const edm::EventSetup evSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 144 of file L1ExtraRecoDQM.cc.

144  {
145 
146  //
147 
148 }

Member Data Documentation

int L1ExtraRecoDQM::m_currentRun
private

Definition at line 118 of file L1ExtraRecoDQM.h.

DQMStore* L1ExtraRecoDQM::m_dbe
private

internal members

Definition at line 115 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

std::string L1ExtraRecoDQM::m_dirName
private

directory name for L1Extra plots

Definition at line 107 of file L1ExtraRecoDQM.h.

Referenced by beginRun(), and L1ExtraRecoDQM().

int L1ExtraRecoDQM::m_nrBxInEventGct
private

Definition at line 111 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

int L1ExtraRecoDQM::m_nrBxInEventGmt
private

number of bunch crosses in event to be monitored

Definition at line 110 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

int L1ExtraRecoDQM::m_nrEvJob
private

Definition at line 121 of file L1ExtraRecoDQM.h.

Referenced by analyze(), and endJob().

int L1ExtraRecoDQM::m_nrEvRun
private

Definition at line 122 of file L1ExtraRecoDQM.h.

Referenced by analyze(), and beginRun().

bool L1ExtraRecoDQM::m_resetModule
private

Definition at line 117 of file L1ExtraRecoDQM.h.

L1RetrieveL1Extra L1ExtraRecoDQM::m_retrieveL1Extra
private

input parameters

Definition at line 104 of file L1ExtraRecoDQM.h.

Referenced by analyze().