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::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 L1TEfficiency_Harvesting (const edm::ParameterSet &ps)
 
virtual ~L1TEfficiency_Harvesting ()
 
- Public Member Functions inherited from DQMEDHarvester
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &) override
 
 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
 
void endLuminosityBlockProduce (edm::LuminosityBlock &, edm::EventSetup const &) override final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &) override
 
virtual void produce (edm::Event &, edm::EventSetup const &) override final
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources, edm::EndLuminosityBlockProducer >
 EDProducer ()=default
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- 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 & itemsToGetFrom (BranchType iType) 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::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
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 dir, edm::ParameterSet::getUntrackedParameter(), m_plotHandlers, m_verbose, and plot_utils::plots.

228  :
229  m_verbose(ps.getUntrackedParameter<bool>("verbose"))
230 {
231  // Initializing Variables
232  if (m_verbose) {
233  edm::LogInfo("L1TEfficiency_Harvesting") << "____________ Storage initialization ____________ ";
234  edm::LogInfo("L1TEfficiency_Harvesting") << "Setting up dbe folder: L1T/Efficiency";
235  }
236  vector<ParameterSet> plotCfgs = ps.getUntrackedParameter<vector<ParameterSet>>("plotCfgs");
237  vector<ParameterSet>::const_iterator plotCfgIt = plotCfgs.begin();
238  vector<ParameterSet>::const_iterator plotCfgEnd = plotCfgs.end();
239 
240  for (; plotCfgIt!=plotCfgEnd; ++plotCfgIt) {
241  string dir = plotCfgIt->getUntrackedParameter<string>("dqmBaseDir");
242  vector<string> plots = plotCfgIt->getUntrackedParameter<vector<string>>("plots");
243  vector<string>::const_iterator plotIt = plots.begin();
244  vector<string>::const_iterator plotEnd = plots.end();
245 
246  for (; plotIt!=plotEnd; ++plotIt) m_plotHandlers.push_back(L1TEfficiencyPlotHandler(dir,(*plotIt)));
247  }
248 }
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 251 of file L1TEfficiency_Harvesting.cc.

References m_plotHandlers.

251 { 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 254 of file L1TEfficiency_Harvesting.cc.

References m_plotHandlers, and m_verbose.

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

Definition at line 269 of file L1TEfficiency_Harvesting.cc.

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

269  {
270  if (m_verbose) {
271  edm::LogInfo("L1TEfficiency_Harvesting") << "Called endLuminosityBlock at LS=" << lumiBlock.id().luminosityBlock();
272  }
273 }

Member Data Documentation

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