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
HLTTauPostProcessor Class Reference

#include <HLTTauPostProcessor.h>

Inheritance diagram for HLTTauPostProcessor:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 HLTTauPostProcessor (const edm::ParameterSet &)
 
 ~HLTTauPostProcessor ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 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
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Fake Analyze. More...
 
void endJob ()
 Endjob. More...
 
void endRun (const edm::Run &r, const edm::EventSetup &iSetup)
 EndRun. More...
 
void harvest ()
 
- 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

const bool runAtEndJob_
 
const bool runAtEndRun_
 
std::vector< std::unique_ptr
< HLTTauDQMSummaryPlotter > > 
summaryPlotters_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 23 of file HLTTauPostProcessor.h.

Constructor & Destructor Documentation

HLTTauPostProcessor::HLTTauPostProcessor ( const edm::ParameterSet ps)

Definition at line 6 of file HLTTauPostProcessor.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and summaryPlotters_.

6  :
7  runAtEndJob_(ps.getUntrackedParameter<bool>("runAtEndJob",false)),
8  runAtEndRun_(ps.getUntrackedParameter<bool>("runAtEndRun",true))
9 {
10  std::string dqmBaseFolder = ps.getUntrackedParameter<std::string>("DQMBaseFolder");
11  for(const edm::ParameterSet& pset: ps.getParameter<std::vector<edm::ParameterSet> >("Setup")) {
12  summaryPlotters_.emplace_back(new HLTTauDQMSummaryPlotter(pset, dqmBaseFolder));
13  }
14 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::unique_ptr< HLTTauDQMSummaryPlotter > > summaryPlotters_
HLTTauPostProcessor::~HLTTauPostProcessor ( )

Definition at line 16 of file HLTTauPostProcessor.cc.

17 {
18 }

Member Function Documentation

void HLTTauPostProcessor::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Fake Analyze.

Implements edm::EDAnalyzer.

Definition at line 20 of file HLTTauPostProcessor.cc.

21 {
22 }
void HLTTauPostProcessor::endJob ( void  )
protectedvirtual

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 29 of file HLTTauPostProcessor.cc.

References harvest(), and runAtEndJob_.

30 {
31  if (runAtEndJob_) harvest();
32 }
void HLTTauPostProcessor::endRun ( const edm::Run r,
const edm::EventSetup iSetup 
)
protectedvirtual

EndRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 24 of file HLTTauPostProcessor.cc.

References harvest(), and runAtEndRun_.

25 {
26  if (runAtEndRun_) harvest();
27 }
void HLTTauPostProcessor::harvest ( )
protected

Definition at line 34 of file HLTTauPostProcessor.cc.

References summaryPlotters_.

Referenced by endJob(), and endRun().

35 {
36  for(auto& plotter: summaryPlotters_) {
37  if(plotter->isValid()) {
38  plotter->bookPlots();
39  plotter->plot();
40  }
41  }
42 }
std::vector< std::unique_ptr< HLTTauDQMSummaryPlotter > > summaryPlotters_

Member Data Documentation

const bool HLTTauPostProcessor::runAtEndJob_
private

Definition at line 42 of file HLTTauPostProcessor.h.

Referenced by endJob().

const bool HLTTauPostProcessor::runAtEndRun_
private

Definition at line 43 of file HLTTauPostProcessor.h.

Referenced by endRun().

std::vector<std::unique_ptr<HLTTauDQMSummaryPlotter> > HLTTauPostProcessor::summaryPlotters_
private

Definition at line 41 of file HLTTauPostProcessor.h.

Referenced by harvest(), and HLTTauPostProcessor().