CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
HLTHiggsValidator Class Reference

#include <HLTHiggsValidator.h>

Inheritance diagram for HLTHiggsValidator:
one::DQMEDAnalyzer< T > one::dqmimplementation::DQMBaseClass< T... >

Public Member Functions

 HLTHiggsValidator (const edm::ParameterSet &)
 Constructor. More...
 
 ~HLTHiggsValidator () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 

Private Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void bookHistograms (DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
 
void dqmBeginRun (const edm::Run &iRun, const edm::EventSetup &iSetup) override
 
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...
 

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, and mps_fire::i.

24  :
25  _pset(pset),
26  _analysisnames(pset.getParameter<std::vector<std::string> >("analyses")),
27  _collections(nullptr)
28 {
30 
31  //pass consumes list to the helper classes
32  for(size_t i = 0; i < _analysisnames.size() ; ++i)
33  {
34  HLTHiggsSubAnalysis analyzer(_pset, _analysisnames.at(i), consumesCollector());
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.
container with all the objects needed
EVTColContainer * _collections
The container with all the collections needed.
std::vector< std::string > _analysisnames
the names of the subanalysis
HLTHiggsValidator::~HLTHiggsValidator ( )
override

Definition at line 40 of file HLTHiggsValidator.cc.

References _collections.

41 {
42  if( _collections != nullptr )
43  {
44  delete _collections;
45  _collections = nullptr;
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 
)
overrideprivate

Definition at line 69 of file HLTHiggsValidator.cc.

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

70 {
71  // Initialize the event collections
72  this->_collections->reset();
73 
74  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
75  iter != _analyzers.end(); ++iter)
76  {
77  iter->analyze(iEvent, iSetup, this->_collections);
78  }
79 }
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 
)
overrideprivate

Definition at line 59 of file HLTHiggsValidator.cc.

References _analyzers.

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

Definition at line 49 of file HLTHiggsValidator.cc.

References _analyzers.

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

Definition at line 84 of file HLTHiggsValidator.cc.

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

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().