CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
dqmoffline::l1t::L1TEfficiencyHarvesting Class Reference

#include <L1TEfficiencyHarvesting.h>

Inheritance diagram for dqmoffline::l1t::L1TEfficiencyHarvesting:
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

 L1TEfficiencyHarvesting (const edm::ParameterSet &ps)
 
 ~L1TEfficiencyHarvesting () override
 
- Public Member Functions inherited from DQMEDHarvester
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override 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 () override final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, 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
 
virtual ~DQMEDHarvester ()=default
 
- 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
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 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

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

L1TEfficiencyPlotHandlerCollection plotHandlers_
 
bool 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 73 of file L1TEfficiencyHarvesting.h.

Constructor & Destructor Documentation

dqmoffline::l1t::L1TEfficiencyHarvesting::L1TEfficiencyHarvesting ( const edm::ParameterSet ps)

Definition at line 124 of file L1TEfficiencyHarvesting.cc.

References edm::ParameterSet::getUntrackedParameter(), plotFactory::plot, plotHandlers_, plot_utils::plots, and verbose_.

124  :
125  verbose_(ps.getUntrackedParameter<bool>("verbose")),
126  plotHandlers_()
127 {
128  if (verbose_) {
129  edm::LogInfo("L1TEfficiencyHarvesting") << "____________ Storage initialization ____________ " << endl;
130  }
131 
132  for (auto plotConfig : ps.getUntrackedParameter < std::vector<edm::ParameterSet> > ("plotCfgs")) {
133  vector < string > plots = plotConfig.getUntrackedParameter < vector < string >> ("plots");
134  for (auto plot : plots) {
135  plotHandlers_.push_back(L1TEfficiencyPlotHandler(plotConfig, plot));
136  }
137  }
138 }
T getUntrackedParameter(std::string const &, T const &) const
L1TEfficiencyPlotHandlerCollection plotHandlers_
dqmoffline::l1t::L1TEfficiencyHarvesting::~L1TEfficiencyHarvesting ( )
override

Definition at line 141 of file L1TEfficiencyHarvesting.cc.

142 {
143 }

Member Function Documentation

void dqmoffline::l1t::L1TEfficiencyHarvesting::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overrideprotectedvirtual

Implements DQMEDHarvester.

Definition at line 146 of file L1TEfficiencyHarvesting.cc.

References plotHandlers_, and verbose_.

147 {
148  if (verbose_) {
149  edm::LogInfo("L1TEfficiencyHarvesting") << "Called endRun." << endl;
150  }
151 
152  for (auto plotHandler : plotHandlers_) {
153  plotHandler.book(ibooker, igetter);
154  plotHandler.computeEfficiency(ibooker, igetter);
155  }
156 }
L1TEfficiencyPlotHandlerCollection plotHandlers_
void dqmoffline::l1t::L1TEfficiencyHarvesting::dqmEndLuminosityBlock ( DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiBlock,
edm::EventSetup const &  c 
)
protectedvirtual

Definition at line 159 of file L1TEfficiencyHarvesting.cc.

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

161 {
162  if (verbose_) {
163  edm::LogInfo("L1TEfficiencyHarvesting") << "Called endLuminosityBlock at LS=" << lumiBlock.id().luminosityBlock()
164  << endl;
165  }
166 }

Member Data Documentation

L1TEfficiencyPlotHandlerCollection dqmoffline::l1t::L1TEfficiencyHarvesting::plotHandlers_
private

Definition at line 90 of file L1TEfficiencyHarvesting.h.

Referenced by dqmEndJob(), and L1TEfficiencyHarvesting().

bool dqmoffline::l1t::L1TEfficiencyHarvesting::verbose_
private