#include <HLTHiggsValidator.h>
Public Member Functions | |
HLTHiggsValidator (const edm::ParameterSet &) | |
Constructor. | |
~HLTHiggsValidator () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) |
virtual void | beginJob () |
virtual void | beginRun (const edm::Run &iRun, const edm::EventSetup &iSetup) |
virtual void | endJob () |
virtual void | endRun (const edm::Run &iRun, const edm::EventSetup &iSetup) |
Private Attributes | |
std::vector< std::string > | _analysisnames |
the names of the subanalysis | |
std::vector< HLTHiggsSubAnalysis > | _analyzers |
The instances of the class which do the real work. | |
EVTColContainer * | _collections |
The container with all the collections needed. | |
DQMStore * | _dbe |
edm::ParameterSet | _pset |
Input from configuration file. |
Generate histograms for trigger efficiencies Higgs related Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/HiggsWGHLTValidate
Definition at line 34 of file HLTHiggsValidator.h.
HLTHiggsValidator::HLTHiggsValidator | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 25 of file HLTHiggsValidator.cc.
References _collections.
: _pset(pset), _analysisnames(pset.getParameter<std::vector<std::string> >("analysis")), _collections(0), _dbe(0) { _collections = new EVTColContainer; }
HLTHiggsValidator::~HLTHiggsValidator | ( | ) |
Definition at line 34 of file HLTHiggsValidator.cc.
References _collections.
{ if( _collections != 0 ) { delete _collections; _collections = 0; } }
void HLTHiggsValidator::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 60 of file HLTHiggsValidator.cc.
References _analyzers, _collections, LogTrace, and EVTColContainer::reset().
{ static int eventNumber = 0; eventNumber++; LogTrace("HiggsValidation") << "In HLTHiggsSubAnalysis::analyze, " << "Event: " << eventNumber; // Initialize the event collections this->_collections->reset(); for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin(); iter != _analyzers.end(); ++iter) { iter->analyze(iEvent, iSetup, this->_collections); } }
void HLTHiggsValidator::beginJob | ( | void | ) | [private, virtual] |
void HLTHiggsValidator::beginRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 44 of file HLTHiggsValidator.cc.
References _analysisnames, _analyzers, _pset, and i.
{ for(size_t i = 0; i < _analysisnames.size() ; ++i) { HLTHiggsSubAnalysis analyzer(_pset, _analysisnames.at(i)); _analyzers.push_back(analyzer); } // Call the Plotter beginRun (which stores the triggers paths..:) for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin(); iter != _analyzers.end(); ++iter) { iter->beginRun(iRun, iSetup); } }
void HLTHiggsValidator::endJob | ( | void | ) | [private, virtual] |
void HLTHiggsValidator::endRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 83 of file HLTHiggsValidator.cc.
{ // vector<HLTMuonPlotter>::iterator iter; // for(std::vector<HLTHiggsPlotter>::iterator iter = _analyzers.begin(); // iter != analyzers_.end(); ++iter) // { // iter->endRun(iRun, iSetup); // } }
std::vector<std::string> HLTHiggsValidator::_analysisnames [private] |
the names of the subanalysis
Definition at line 52 of file HLTHiggsValidator.h.
Referenced by beginRun().
std::vector<HLTHiggsSubAnalysis> HLTHiggsValidator::_analyzers [private] |
The instances of the class which do the real work.
Definition at line 55 of file HLTHiggsValidator.h.
Referenced by analyze(), and beginRun().
EVTColContainer* HLTHiggsValidator::_collections [private] |
The container with all the collections needed.
Definition at line 58 of file HLTHiggsValidator.h.
Referenced by analyze(), HLTHiggsValidator(), and ~HLTHiggsValidator().
DQMStore* HLTHiggsValidator::_dbe [private] |
Definition at line 61 of file HLTHiggsValidator.h.
edm::ParameterSet HLTHiggsValidator::_pset [private] |
Input from configuration file.
Definition at line 50 of file HLTHiggsValidator.h.
Referenced by beginRun().