CMS 3D CMS Logo

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

#include <L1TDiffHarvesting.h>

Inheritance diagram for dqmoffline::l1t::L1TDiffHarvesting:
DQMEDHarvester edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Classes

class  L1TDiffPlotHandler
 

Public Member Functions

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

typedef std::vector< L1TDiffPlotHandlerL1TDiffPlotHandlers
 

Private Attributes

L1TDiffPlotHandlers plotHandlers_
 

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 18 of file L1TDiffHarvesting.h.

Member Typedef Documentation

Definition at line 54 of file L1TDiffHarvesting.h.

Constructor & Destructor Documentation

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

Definition at line 126 of file L1TDiffHarvesting.cc.

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

126  :
127  plotHandlers_()
128 {
129  using namespace std;
130  for (auto plotConfig : ps.getUntrackedParameter < std::vector<edm::ParameterSet> > ("plotCfgs")) {
131  vector < string > plots = plotConfig.getUntrackedParameter < vector < string >> ("plots");
132  for (auto plot : plots) {
133  plotHandlers_.push_back(L1TDiffPlotHandler(plotConfig, plot));
134  }
135  }
136 }
T getUntrackedParameter(std::string const &, T const &) const
dqmoffline::l1t::L1TDiffHarvesting::~L1TDiffHarvesting ( )
virtual

Definition at line 138 of file L1TDiffHarvesting.cc.

139 {
140 
141 }

Member Function Documentation

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

Implements DQMEDHarvester.

Definition at line 143 of file L1TDiffHarvesting.cc.

References plotHandlers_.

144 {
145  edm::LogInfo("L1TEfficiencyHarvesting") << "Called endRun." << std::endl;
146 
147  for (auto plotHandler : plotHandlers_) {
148  plotHandler.computeDiff(ibooker, igetter);
149  }
150 }
void dqmoffline::l1t::L1TDiffHarvesting::dqmEndLuminosityBlock ( DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiBlock,
edm::EventSetup const &  c 
)
protectedvirtual

Definition at line 152 of file L1TDiffHarvesting.cc.

References DEFINE_FWK_MODULE.

154 {
155 }

Member Data Documentation

L1TDiffPlotHandlers dqmoffline::l1t::L1TDiffHarvesting::plotHandlers_
private

Definition at line 56 of file L1TDiffHarvesting.h.

Referenced by dqmEndJob(), and L1TDiffHarvesting().