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
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
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) 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::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
 
- 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 71 of file L1TEfficiency_Harvesting.h.

Constructor & Destructor Documentation

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

Definition at line 128 of file L1TEfficiency_Harvesting.cc.

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

128  {
129 
130  // Initializing Variables
131  if (m_verbose) {
132  cout << "[L1TEfficiency_Harvesting:] ____________ Storage inicialization ____________ " << endl;
133  cout << "[L1TEfficiency_Harvesting:] Setting up dbe folder: L1T/Efficiency" << endl;
134  }
135 
136  DQMStore* dbe = Service <DQMStore>().operator->();
137  dbe->setVerbose(0);
138 
139  // Initializing Variables
140  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Pointer for DQM Store: " << dbe << endl;}
141 
142  vector<ParameterSet> plotCfgs = ps.getUntrackedParameter<vector<ParameterSet>>("plotCfgs");
143 
144  vector<ParameterSet>::const_iterator plotCfgIt = plotCfgs.begin();
145  vector<ParameterSet>::const_iterator plotCfgEnd = plotCfgs.end();
146 
147  for (; plotCfgIt!=plotCfgEnd; ++plotCfgIt) {
148 
149  string dir = plotCfgIt->getUntrackedParameter<string>("dqmBaseDir");
150  vector<string> plots = plotCfgIt->getUntrackedParameter<vector<string>>("plots");
151 
152  vector<string>::const_iterator plotIt = plots.begin();
153  vector<string>::const_iterator plotEnd = plots.end();
154 
155  for (; plotIt!=plotEnd; ++plotIt)
156  m_plotHandlers.push_back(L1TEfficiencyPlotHandler(dir,(*plotIt),dbe));
157 
158  }
159 
160 }
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 164 of file L1TEfficiency_Harvesting.cc.

164 { 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 227 of file L1TEfficiency_Harvesting.cc.

227  {
228 
229 
230 }
void L1TEfficiency_Harvesting::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 168 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

168  {
169 
170  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called beginJob." << endl;}
171 
172 }
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 207 of file L1TEfficiency_Harvesting.cc.

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

207  {
208 
209  if(m_verbose){
210  cout << "[L1TEfficiency_Harvesting:] Called beginLuminosityBlock at LS="
211  << lumiBlock.id().luminosityBlock() << endl;
212  }
213 }
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 183 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 176 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

176  {
177 
178  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endJob." << endl;}
179 
180 }
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 217 of file L1TEfficiency_Harvesting.cc.

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

217  {
218 
219  if(m_verbose){
220  cout << "[L1TEfficiency_Harvesting:] Called endLuminosityBlock at LS="
221  << lumiBlock.id().luminosityBlock() << endl;
222  }
223 }
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 191 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

191  {
192 
193  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endRun." << endl;}
194 
195  vector<L1TEfficiencyPlotHandler>::iterator plotHandlerIt = m_plotHandlers.begin();
196  vector<L1TEfficiencyPlotHandler>::iterator plotHandlerEnd = m_plotHandlers.end();
197 
198  for(; plotHandlerIt!=plotHandlerEnd; ++plotHandlerIt) {
199  plotHandlerIt->book(m_verbose);
200  plotHandlerIt->computeEfficiency(m_verbose);
201  }
202 
203 }
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 100 of file L1TEfficiency_Harvesting.h.

bool L1TEfficiency_Harvesting::m_verbose
private

Definition at line 98 of file L1TEfficiency_Harvesting.h.