CMS 3D CMS Logo

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

#include <L1TEfficiency_Harvesting.h>

Inheritance diagram for L1TEfficiency_Harvesting:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 L1TEfficiency_Harvesting (const edm::ParameterSet &ps)
 
virtual ~L1TEfficiency_Harvesting ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 
void beginJob ()
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
 
void beginRun (const edm::Run &run, const edm::EventSetup &iSetup)
 
void endJob ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
 
void endRun (const edm::Run &run, const edm::EventSetup &iSetup)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- 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)
 

Private Attributes

std::vector
< L1TEfficiencyPlotHandler
m_plotHandlers
 
bool m_verbose
 

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 &)
 

Detailed Description

Definition at line 73 of file L1TEfficiency_Harvesting.h.

Constructor & Destructor Documentation

L1TEfficiency_Harvesting::L1TEfficiency_Harvesting ( const edm::ParameterSet ps)

Definition at line 130 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout, dir, edm::ParameterSet::getUntrackedParameter(), cppFunctionSkipper::operator, RecoTauValidation_cfi::plots, and DQMStore::setVerbose().

130  {
131 
132  // Initializing Variables
133  if (m_verbose) {
134  cout << "[L1TEfficiency_Harvesting:] ____________ Storage inicialization ____________ " << endl;
135  cout << "[L1TEfficiency_Harvesting:] Setting up dbe folder: L1T/Efficiency" << endl;
136  }
137 
138  DQMStore* dbe = Service <DQMStore>().operator->();
139  dbe->setVerbose(0);
140 
141  // Initializing Variables
142  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Pointer for DQM Store: " << dbe << endl;}
143 
144  vector<ParameterSet> plotCfgs = ps.getUntrackedParameter<vector<ParameterSet>>("plotCfgs");
145 
146  vector<ParameterSet>::const_iterator plotCfgIt = plotCfgs.begin();
147  vector<ParameterSet>::const_iterator plotCfgEnd = plotCfgs.end();
148 
149  for (; plotCfgIt!=plotCfgEnd; ++plotCfgIt) {
150 
151  string dir = plotCfgIt->getUntrackedParameter<string>("dqmBaseDir");
152  vector<string> plots = plotCfgIt->getUntrackedParameter<vector<string>>("plots");
153 
154  vector<string>::const_iterator plotIt = plots.begin();
155  vector<string>::const_iterator plotEnd = plots.end();
156 
157  for (; plotIt!=plotEnd; ++plotIt)
158  m_plotHandlers.push_back(L1TEfficiencyPlotHandler(dir,(*plotIt),dbe));
159 
160  }
161 
162 }
T getUntrackedParameter(std::string const &, T const &) const
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
tuple cout
Definition: gather_cfg.py:121
dbl *** dir
Definition: mlp_gen.cc:35
L1TEfficiency_Harvesting::~L1TEfficiency_Harvesting ( )
virtual

Definition at line 166 of file L1TEfficiency_Harvesting.cc.

166 { m_plotHandlers.clear(); }
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers

Member Function Documentation

void L1TEfficiency_Harvesting::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Implements edm::EDAnalyzer.

Definition at line 229 of file L1TEfficiency_Harvesting.cc.

229  {
230 
231 
232 }
void L1TEfficiency_Harvesting::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 170 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

170  {
171 
172  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called beginJob." << endl;}
173 
174 }
tuple cout
Definition: gather_cfg.py:121
void L1TEfficiency_Harvesting::beginLuminosityBlock ( edm::LuminosityBlock const &  lumiBlock,
edm::EventSetup const &  c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 209 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout, edm::LuminosityBlockBase::id(), and edm::LuminosityBlockID::luminosityBlock().

209  {
210 
211  if(m_verbose){
212  cout << "[L1TEfficiency_Harvesting:] Called beginLuminosityBlock at LS="
213  << lumiBlock.id().luminosityBlock() << endl;
214  }
215 }
tuple cout
Definition: gather_cfg.py:121
void L1TEfficiency_Harvesting::beginRun ( const edm::Run run,
const edm::EventSetup iSetup 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 185 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

185  {
186 
187  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called beginRun." << endl;}
188 
189 }
tuple cout
Definition: gather_cfg.py:121
void L1TEfficiency_Harvesting::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 178 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

178  {
179 
180  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endJob." << endl;}
181 
182 }
tuple cout
Definition: gather_cfg.py:121
void L1TEfficiency_Harvesting::endLuminosityBlock ( edm::LuminosityBlock const &  lumiBlock,
edm::EventSetup const &  c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 219 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout, edm::LuminosityBlockBase::id(), and edm::LuminosityBlockID::luminosityBlock().

219  {
220 
221  if(m_verbose){
222  cout << "[L1TEfficiency_Harvesting:] Called endLuminosityBlock at LS="
223  << lumiBlock.id().luminosityBlock() << endl;
224  }
225 }
tuple cout
Definition: gather_cfg.py:121
void L1TEfficiency_Harvesting::endRun ( const edm::Run run,
const edm::EventSetup iSetup 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 193 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

193  {
194 
195  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endRun." << endl;}
196 
197  vector<L1TEfficiencyPlotHandler>::iterator plotHandlerIt = m_plotHandlers.begin();
198  vector<L1TEfficiencyPlotHandler>::iterator plotHandlerEnd = m_plotHandlers.end();
199 
200  for(; plotHandlerIt!=plotHandlerEnd; ++plotHandlerIt) {
201  plotHandlerIt->book(m_verbose);
202  plotHandlerIt->computeEfficiency(m_verbose);
203  }
204 
205 }
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

std::vector<L1TEfficiencyPlotHandler> L1TEfficiency_Harvesting::m_plotHandlers
private

Definition at line 102 of file L1TEfficiency_Harvesting.h.

bool L1TEfficiency_Harvesting::m_verbose
private

Definition at line 100 of file L1TEfficiency_Harvesting.h.