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 edm::EDConsumerBase

Public Member Functions

 L1ExtraRecoDQM (const edm::ParameterSet &)
 
virtual ~L1ExtraRecoDQM ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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
 
- 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::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Description: online DQM module for L1Extra versus Reco trigger objects.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 72 of file L1ExtraRecoDQM.h.

Constructor & Destructor Documentation

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

Definition at line 28 of file L1ExtraRecoDQM.cc.

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

28  :
29  //
32  "L1ExtraInputTags")),
33  m_dirName(
34  paramSet.getUntrackedParameter("DirName",
35  std::string("L1T/L1ExtraRecoDQM"))),
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), m_nrEvRun(0)
43 
44 {
45 
46  //
47  if ((m_nrBxInEventGmt > 0) && ((m_nrBxInEventGmt % 2) == 0)) {
49 
50  edm::LogInfo("L1ExtraRecoDQM")
51  << "\nWARNING: Number of bunch crossing to be monitored for GMT rounded to: "
53  << "\n The number must be an odd number!\n"
54  << std::endl;
55  }
56 
57  if ((m_nrBxInEventGct > 0) && ((m_nrBxInEventGct % 2) == 0)) {
59 
60  edm::LogInfo("L1ExtraRecoDQM")
61  << "\nWARNING: Number of bunch crossing to be monitored for GCT rounded to: "
63  << "\n The number must be an odd number!\n"
64  << std::endl;
65  }
66 
68  if (m_dbe == 0) {
69  edm::LogInfo("L1ExtraRecoDQM") << "\n Unable to get DQMStore service.";
70  } else {
71 
72  if (paramSet.getUntrackedParameter<bool> ("DQMStore", false)) {
73  m_dbe->setVerbose(0);
74  }
75 
77 
78  }
79 
80 }
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:549
std::string m_dirName
directory name for L1Extra plots
DQMStore * m_dbe
internal members
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:585
L1ExtraRecoDQM::~L1ExtraRecoDQM ( )
virtual

Definition at line 83 of file L1ExtraRecoDQM.cc.

83  {
84 
85  // empty
86 
87 }

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 123 of file L1ExtraRecoDQM.cc.

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

124  {
125 
126  ++m_nrEvJob;
127  ++m_nrEvRun;
128 
129  //
130  m_retrieveL1Extra.retrieveL1ExtraObjects(iEvent, evSetup);
131 
132 }
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 90 of file L1ExtraRecoDQM.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 113 of file L1ExtraRecoDQM.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 94 of file L1ExtraRecoDQM.cc.

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

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

Reimplemented from edm::EDAnalyzer.

Definition at line 148 of file L1ExtraRecoDQM.cc.

References m_nrEvJob.

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

end section

Reimplemented from edm::EDAnalyzer.

Definition at line 135 of file L1ExtraRecoDQM.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 142 of file L1ExtraRecoDQM.cc.

142  {
143 
144  //
145 
146 }

Member Data Documentation

int L1ExtraRecoDQM::m_currentRun
private

Definition at line 116 of file L1ExtraRecoDQM.h.

DQMStore* L1ExtraRecoDQM::m_dbe
private

internal members

Definition at line 113 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

std::string L1ExtraRecoDQM::m_dirName
private

directory name for L1Extra plots

Definition at line 105 of file L1ExtraRecoDQM.h.

Referenced by beginRun(), and L1ExtraRecoDQM().

int L1ExtraRecoDQM::m_nrBxInEventGct
private

Definition at line 109 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

int L1ExtraRecoDQM::m_nrBxInEventGmt
private

number of bunch crosses in event to be monitored

Definition at line 108 of file L1ExtraRecoDQM.h.

Referenced by L1ExtraRecoDQM().

int L1ExtraRecoDQM::m_nrEvJob
private

Definition at line 119 of file L1ExtraRecoDQM.h.

Referenced by analyze(), and endJob().

int L1ExtraRecoDQM::m_nrEvRun
private

Definition at line 120 of file L1ExtraRecoDQM.h.

Referenced by analyze(), and beginRun().

bool L1ExtraRecoDQM::m_resetModule
private

Definition at line 115 of file L1ExtraRecoDQM.h.

L1RetrieveL1Extra L1ExtraRecoDQM::m_retrieveL1Extra
private

input parameters

Definition at line 102 of file L1ExtraRecoDQM.h.

Referenced by analyze().