CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HLTHiggsValidator Class Reference

#include <HLTHiggsValidator.h>

Inheritance diagram for HLTHiggsValidator:
thread_unsafe::DQMEDAnalyzer edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 HLTHiggsValidator (const edm::ParameterSet &)
 Constructor. More...
 
 ~HLTHiggsValidator ()
 
- Public Member Functions inherited from thread_unsafe::DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
 DQMEDAnalyzer (void)
 
- 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
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
virtual void bookHistograms (DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
 
virtual void dqmBeginRun (const edm::Run &iRun, const edm::EventSetup &iSetup) override
 
virtual void endRun (const edm::Run &iRun, const edm::EventSetup &iSetup) override
 

Private Attributes

std::vector< std::string > _analysisnames
 the names of the subanalysis More...
 
std::vector< HLTHiggsSubAnalysis_analyzers
 The instances of the class which do the real work. More...
 
EVTColContainer_collections
 The container with all the collections needed. More...
 
edm::ParameterSet _pset
 Input from configuration file. More...
 

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 &)
 
- 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)
 

Detailed Description

Generate histograms for trigger efficiencies Higgs related Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/HiggsWGHLTValidate

Author
J. Duarte Campderros (based and adapted on J. Klukas, M. Vander Donckt and J. Alcaraz code from the HLTriggerOffline/Muon package)

Definition at line 32 of file HLTHiggsValidator.h.

Constructor & Destructor Documentation

HLTHiggsValidator::HLTHiggsValidator ( const edm::ParameterSet pset)

Constructor.

Definition at line 24 of file HLTHiggsValidator.cc.

References _analysisnames, _analyzers, _collections, _pset, edm::EDConsumerBase::consumesCollector(), and i.

24  :
25  _pset(pset),
26  _analysisnames(pset.getParameter<std::vector<std::string> >("analysis")),
27  _collections(0)
28 {
30 
31  //pass consumes list to the helper classes
32  for(size_t i = 0; i < _analysisnames.size() ; ++i)
33  {
35  _analyzers.push_back(analyzer);
36  }
37 
38 }
T getParameter(std::string const &) const
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
edm::ParameterSet _pset
Input from configuration file.
int i
Definition: DBlmapReader.cc:9
container with all the objects needed
EVTColContainer * _collections
The container with all the collections needed.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< std::string > _analysisnames
the names of the subanalysis
HLTHiggsValidator::~HLTHiggsValidator ( )

Definition at line 40 of file HLTHiggsValidator.cc.

References _collections.

41 {
42  if( _collections != 0 )
43  {
44  delete _collections;
45  _collections = 0;
46  }
47 }
EVTColContainer * _collections
The container with all the collections needed.

Member Function Documentation

void HLTHiggsValidator::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDAnalyzer.

Definition at line 69 of file HLTHiggsValidator.cc.

References _analyzers, _collections, getDQMSummary::iter, and EVTColContainer::reset().

70 {
71 
72 
73  // Initialize the event collections
74  this->_collections->reset();
75 
76  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
77  iter != _analyzers.end(); ++iter)
78  {
79  iter->analyze(iEvent, iSetup, this->_collections);
80  }
81 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
EVTColContainer * _collections
The container with all the collections needed.
void reset()
Reset: clear all collections.
void HLTHiggsValidator::bookHistograms ( DQMStore::IBooker ibooker,
const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements thread_unsafe::DQMEDAnalyzer.

Definition at line 59 of file HLTHiggsValidator.cc.

References _analyzers, and getDQMSummary::iter.

59  {
60  // Call the Plotter bookHistograms (which stores the triggers paths..:)
61  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
62  iter != _analyzers.end(); ++iter)
63  {
64  iter->bookHistograms(ibooker);
65  }
66 
67 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
void HLTHiggsValidator::dqmBeginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from thread_unsafe::DQMEDAnalyzer.

Definition at line 49 of file HLTHiggsValidator.cc.

References _analyzers, and getDQMSummary::iter.

50 {
51  // Call the Plotter beginRun (which stores the triggers paths..:)
52  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
53  iter != _analyzers.end(); ++iter)
54  {
55  iter->beginRun(iRun, iSetup);
56  }
57 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
void HLTHiggsValidator::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 86 of file HLTHiggsValidator.cc.

87 {
88  // vector<HLTMuonPlotter>::iterator iter;
89  // for(std::vector<HLTHiggsPlotter>::iterator iter = _analyzers.begin();
90  // iter != analyzers_.end(); ++iter)
91  // {
92  // iter->endRun(iRun, iSetup);
93  // }
94 }

Member Data Documentation

std::vector<std::string> HLTHiggsValidator::_analysisnames
private

the names of the subanalysis

Definition at line 49 of file HLTHiggsValidator.h.

Referenced by HLTHiggsValidator().

std::vector<HLTHiggsSubAnalysis> HLTHiggsValidator::_analyzers
private

The instances of the class which do the real work.

Definition at line 52 of file HLTHiggsValidator.h.

Referenced by analyze(), bookHistograms(), dqmBeginRun(), and HLTHiggsValidator().

EVTColContainer* HLTHiggsValidator::_collections
private

The container with all the collections needed.

Definition at line 55 of file HLTHiggsValidator.h.

Referenced by analyze(), HLTHiggsValidator(), and ~HLTHiggsValidator().

edm::ParameterSet HLTHiggsValidator::_pset
private

Input from configuration file.

Definition at line 47 of file HLTHiggsValidator.h.

Referenced by HLTHiggsValidator().