CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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
< L1TEfficiencyPlotHandler
m_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 73 of file L1TEfficiency_Harvesting.h.

Constructor & Destructor Documentation

L1TEfficiency_Harvesting::L1TEfficiency_Harvesting ( const edm::ParameterSet ps)

Definition at line 119 of file L1TEfficiency_Harvesting.cc.

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

119  {
120 
121  // Initializing Variables
122  if (m_verbose) {
123  cout << "[L1TEfficiency_Harvesting:] ____________ Storage inicialization ____________ " << endl;
124  cout << "[L1TEfficiency_Harvesting:] Setting up dbe folder: L1T/Efficiency" << endl;
125  }
126 
127  vector<ParameterSet> plotCfgs = ps.getUntrackedParameter<vector<ParameterSet>>("plotCfgs");
128 
129  vector<ParameterSet>::const_iterator plotCfgIt = plotCfgs.begin();
130  vector<ParameterSet>::const_iterator plotCfgEnd = plotCfgs.end();
131 
132  for (; plotCfgIt!=plotCfgEnd; ++plotCfgIt) {
133 
134  string dir = plotCfgIt->getUntrackedParameter<string>("dqmBaseDir");
135  vector<string> plots = plotCfgIt->getUntrackedParameter<vector<string>>("plots");
136 
137  vector<string>::const_iterator plotIt = plots.begin();
138  vector<string>::const_iterator plotEnd = plots.end();
139 
140  for (; plotIt!=plotEnd; ++plotIt)
141  m_plotHandlers.push_back(L1TEfficiencyPlotHandler(dir,(*plotIt)));
142 
143  }
144 
145 }
T getUntrackedParameter(std::string const &, T const &) const
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
tuple cout
Definition: gather_cfg.py:121
dbl *** dir
Definition: mlp_gen.cc:35
L1TEfficiency_Harvesting::~L1TEfficiency_Harvesting ( )
virtual

Definition at line 149 of file L1TEfficiency_Harvesting.cc.

149 { 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 153 of file L1TEfficiency_Harvesting.cc.

References gather_cfg::cout.

153  {
154 
155  if (m_verbose) {cout << "[L1TEfficiency_Harvesting:] Called endRun." << endl;}
156 
157  vector<L1TEfficiencyPlotHandler>::iterator plotHandlerIt = m_plotHandlers.begin();
158  vector<L1TEfficiencyPlotHandler>::iterator plotHandlerEnd = m_plotHandlers.end();
159 
160  for(; plotHandlerIt!=plotHandlerEnd; ++plotHandlerIt) {
161  plotHandlerIt->book(ibooker, igetter);
162  plotHandlerIt->computeEfficiency(ibooker, igetter);
163  }
164 
165 }
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
tuple cout
Definition: gather_cfg.py:121
void L1TEfficiency_Harvesting::dqmEndLuminosityBlock ( DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiBlock,
edm::EventSetup const &  c 
)
protectedvirtual

Definition at line 169 of file L1TEfficiency_Harvesting.cc.

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

169  {
170 
171  if(m_verbose){
172  cout << "[L1TEfficiency_Harvesting:] Called endLuminosityBlock at LS="
173  << lumiBlock.id().luminosityBlock() << endl;
174  }
175 }
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

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

Definition at line 90 of file L1TEfficiency_Harvesting.h.

bool L1TEfficiency_Harvesting::m_verbose
private

Definition at line 88 of file L1TEfficiency_Harvesting.h.