CMS 3D CMS Logo

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:
DQMEDHarvester edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 L1TEfficiency_Harvesting (const edm::ParameterSet &ps)
 
virtual ~L1TEfficiency_Harvesting ()
 
- Public Member Functions inherited from DQMEDHarvester
virtual void analyze (edm::Event const &, edm::EventSetup const &) final
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDHarvester (void)
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endJob () final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

virtual void dqmEndJob (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override
 
virtual void dqmEndLuminosityBlock (DQMStore::IGetter &igetter, edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
 
- 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< L1TEfficiencyPlotHandlerm_plotHandlers
 
bool m_verbose
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

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 228 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout, dir, edm::ParameterSet::getUntrackedParameter(), and plot_utils::plots.

228  {
229  // Initializing Variables
230  if (m_verbose) {
231  cout << "[L1TEfficiency_Harvesting:] ____________ Storage inicialization ____________ " << endl;
232  cout << "[L1TEfficiency_Harvesting:] Setting up dbe folder: L1T/Efficiency" << endl;
233  }
234  vector<ParameterSet> plotCfgs = ps.getUntrackedParameter<vector<ParameterSet>>("plotCfgs");
235  vector<ParameterSet>::const_iterator plotCfgIt = plotCfgs.begin();
236  vector<ParameterSet>::const_iterator plotCfgEnd = plotCfgs.end();
237 
238  for (; plotCfgIt!=plotCfgEnd; ++plotCfgIt) {
239  string dir = plotCfgIt->getUntrackedParameter<string>("dqmBaseDir");
240  vector<string> plots = plotCfgIt->getUntrackedParameter<vector<string>>("plots");
241  vector<string>::const_iterator plotIt = plots.begin();
242  vector<string>::const_iterator plotEnd = plots.end();
243 
244  for (; plotIt!=plotEnd; ++plotIt) m_plotHandlers.push_back(L1TEfficiencyPlotHandler(dir,(*plotIt)));
245  }
246 }
T getUntrackedParameter(std::string const &, T const &) const
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
dbl *** dir
Definition: mlp_gen.cc:35
L1TEfficiency_Harvesting::~L1TEfficiency_Harvesting ( )
virtual

Definition at line 249 of file L1TEfficiency_Harvesting.cc.

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

Member Function Documentation

void L1TEfficiency_Harvesting::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overrideprotectedvirtual

Implements DQMEDHarvester.

Definition at line 252 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

252  {
253  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endRun." << endl;}
254 
255  vector<L1TEfficiencyPlotHandler>::iterator plotHandlerIt = m_plotHandlers.begin();
256  vector<L1TEfficiencyPlotHandler>::iterator plotHandlerEnd = m_plotHandlers.end();
257 
258  for(; plotHandlerIt!=plotHandlerEnd; ++plotHandlerIt) {
259  plotHandlerIt->book(ibooker, igetter);
260  plotHandlerIt->computeEfficiency(ibooker, igetter);
261  }
262 }
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
void L1TEfficiency_Harvesting::dqmEndLuminosityBlock ( DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiBlock,
edm::EventSetup const &  c 
)
protectedvirtual

Definition at line 265 of file L1TEfficiency_Harvesting.cc.

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

265  {
266  if(m_verbose) cout << "[L1TEfficiency_Harvesting:] Called endLuminosityBlock at LS=" << lumiBlock.id().luminosityBlock() << endl;
267 }

Member Data Documentation

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

Definition at line 89 of file L1TEfficiency_Harvesting.h.

bool L1TEfficiency_Harvesting::m_verbose
private

Definition at line 87 of file L1TEfficiency_Harvesting.h.