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

Public Member Functions

 L1TEfficiencyHarvesting (const edm::ParameterSet &ps)
 
virtual ~L1TEfficiencyHarvesting ()
 
- 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

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

Constructor & Destructor Documentation

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

Definition at line 112 of file L1TEfficiencyHarvesting.cc.

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

112  :
113  verbose_(ps.getUntrackedParameter<bool>("verbose")),
114  plotHandlers_()
115 {
116  if (verbose_) {
117  edm::LogInfo("L1TEfficiencyHarvesting") << "____________ Storage initialization ____________ " << endl;
118  }
119 
120  for (auto plotConfig : ps.getUntrackedParameter < std::vector<edm::ParameterSet> > ("plotCfgs")) {
121  vector < string > plots = plotConfig.getUntrackedParameter < vector < string >> ("plots");
122  for (auto plot : plots) {
123  plotHandlers_.push_back(L1TEfficiencyPlotHandler(plotConfig, plot));
124  }
125  }
126 }
T getUntrackedParameter(std::string const &, T const &) const
L1TEfficiencyPlotHandlerCollection plotHandlers_
dqmoffline::l1t::L1TEfficiencyHarvesting::~L1TEfficiencyHarvesting ( )
virtual

Definition at line 129 of file L1TEfficiencyHarvesting.cc.

130 {
131 }

Member Function Documentation

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

Implements DQMEDHarvester.

Definition at line 134 of file L1TEfficiencyHarvesting.cc.

References plotHandlers_, and verbose_.

135 {
136  if (verbose_) {
137  edm::LogInfo("L1TEfficiencyHarvesting") << "Called endRun." << endl;
138  }
139 
140  for (auto plotHandler : plotHandlers_) {
141  plotHandler.book(ibooker, igetter);
142  plotHandler.computeEfficiency(ibooker, igetter);
143  }
144 }
L1TEfficiencyPlotHandlerCollection plotHandlers_
void dqmoffline::l1t::L1TEfficiencyHarvesting::dqmEndLuminosityBlock ( DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiBlock,
edm::EventSetup const &  c 
)
protectedvirtual

Definition at line 147 of file L1TEfficiencyHarvesting.cc.

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

149 {
150  if (verbose_) {
151  edm::LogInfo("L1TEfficiencyHarvesting") << "Called endLuminosityBlock at LS=" << lumiBlock.id().luminosityBlock()
152  << endl;
153  }
154 }

Member Data Documentation

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

Definition at line 91 of file L1TEfficiencyHarvesting.h.

Referenced by dqmEndJob(), and L1TEfficiencyHarvesting().

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