#include <HLTHiggsSubAnalysis.h>
Public Types | |
enum | { GEN, RECO } |
Public Member Functions | |
void | analyze (const edm::Event &iEvent, const edm::EventSetup &iEventSetup, EVTColContainer *cols) |
void | beginJob () |
void | beginRun (const edm::Run &iRun, const edm::EventSetup &iEventSetup) |
const std::vector< unsigned int > | getObjectsType (const std::string &hltpath) const |
Extract what objects need this analysis. More... | |
HLTHiggsSubAnalysis (const edm::ParameterSet &pset, const std::string &analysisname) | |
~HLTHiggsSubAnalysis () | |
Private Member Functions | |
void | bookHist (const std::string &source, const std::string &objType, const std::string &variable) |
void | bookobjects (const edm::ParameterSet &anpset) |
void | fillHist (const std::string &source, const std::string &objType, const std::string &variable, const float &value) |
void | initobjects (const edm::Event &iEvent, EVTColContainer *col) |
void | InitSelector (const unsigned int &objtype) |
void | insertcandidates (const unsigned int &objtype, const EVTColContainer *col, std::vector< MatchStruct > *matches) |
Private Attributes | |
std::string | _analysisname |
std::vector< HLTHiggsPlotter > | _analyzers |
std::map< unsigned int, double > | _cutMaxEta |
std::map< unsigned int, double > | _cutMinPt |
std::map< unsigned int, unsigned int > | _cutMotherId |
std::map< unsigned int, std::vector< double > > | _cutsDr |
DQMStore * | _dbe |
std::map< std::string, MonitorElement * > | _elements |
std::map< unsigned int, std::string > | _genCut |
gen/rec objects cuts More... | |
std::string | _genParticleLabel |
std::map< unsigned int, StringCutObjectSelector < reco::GenParticle > * > | _genSelectorMap |
HLTConfigProvider | _hltConfig |
std::set< std::string > | _hltPaths |
the hlt paths found in the hltConfig More... | |
std::vector< std::string > | _hltPathsToCheck |
the hlt paths with regular expressions More... | |
std::string | _hltProcessName |
unsigned int | _minCandidates |
The minimum number of reco/gen candidates needed by the analysis. More... | |
std::vector< double > | _parametersEta |
Some kinematical parameters. More... | |
std::vector< double > | _parametersPhi |
std::vector< double > | _parametersTurnOn |
edm::ParameterSet | _pset |
StringCutObjectSelector < reco::CaloMET > * | _recCaloMETSelector |
std::map< unsigned int, std::string > | _recCut |
StringCutObjectSelector < reco::GsfElectron > * | _recElecSelector |
std::map< unsigned int, std::string > | _recLabels |
StringCutObjectSelector < reco::Muon > * | _recMuonSelector |
StringCutObjectSelector < reco::PFTau > * | _recPFTauSelector |
StringCutObjectSelector < reco::Photon > * | _recPhotonSelector |
StringCutObjectSelector < reco::Track > * | _recTrackSelector |
std::map< std::string, std::string > | _shortpath2long |
Relation between the short version of a path. More... | |
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 55 of file HLTHiggsSubAnalysis.h.
anonymous enum |
Enumerator | |
---|---|
GEN | |
RECO |
Definition at line 58 of file HLTHiggsSubAnalysis.h.
HLTHiggsSubAnalysis::HLTHiggsSubAnalysis | ( | const edm::ParameterSet & | pset, |
const std::string & | analysisname | ||
) |
Definition at line 34 of file HLTHiggsSubAnalysis.cc.
References _cutMaxEta, _cutMinPt, _dbe, _genCut, _hltPathsToCheck, _minCandidates, _recCut, _recLabels, bookobjects(), edm::ParameterSet::getParameter(), EVTColContainer::getTypeString(), edm::ParameterSet::getUntrackedParameter(), and cppFunctionSkipper::operator.
HLTHiggsSubAnalysis::~HLTHiggsSubAnalysis | ( | ) |
Definition at line 111 of file HLTHiggsSubAnalysis.cc.
References _genSelectorMap, _recCaloMETSelector, _recElecSelector, _recMuonSelector, _recPFTauSelector, _recPhotonSelector, _recTrackSelector, and python.multivaluedict::map().
void HLTHiggsSubAnalysis::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iEventSetup, | ||
EVTColContainer * | cols | ||
) |
Definition at line 279 of file HLTHiggsSubAnalysis.cc.
References _analyzers, _genCut, _genSelectorMap, _minCandidates, _recLabels, _shortpath2long, edm::HLTGlobalStatus::accept(), eta(), fillHist(), GEN, EVTColContainer::genParticles, EVTColContainer::getTypeString(), i, initobjects(), InitSelector(), insertcandidates(), j, python.multivaluedict::map(), phi, RECO, edm::TriggerNames::size(), python.multivaluedict::sort(), LaserTracksInput_cfi::source, edm::TriggerNames::triggerIndex(), edm::Event::triggerNames(), EVTColContainer::triggerResults, and trigNames.
void HLTHiggsSubAnalysis::beginJob | ( | void | ) |
Definition at line 155 of file HLTHiggsSubAnalysis.cc.
void HLTHiggsSubAnalysis::beginRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iEventSetup | ||
) |
Definition at line 161 of file HLTHiggsSubAnalysis.cc.
References _analysisname, _analyzers, _dbe, _hltConfig, _hltPaths, _hltPathsToCheck, _hltProcessName, _pset, _recLabels, _shortpath2long, bookHist(), cmsRelvalreport::exit, spr::find(), newFWLiteAna::found, getObjectsType(), EVTColContainer::getTypeString(), i, HLTConfigProvider::init(), j, LogTrace, scaleCards::path, listBenchmarks::pattern, DQMStore::setCurrentFolder(), LaserTracksInput_cfi::source, and HLTConfigProvider::triggerNames().
|
private |
Definition at line 583 of file HLTHiggsSubAnalysis.cc.
References _dbe, _elements, _parametersEta, _parametersPhi, _parametersTurnOn, DQMStore::book1D(), prof2calltree::edges, h, i, max(), min, mergeVDriftHistosByStation::name, LaserTracksInput_cfi::source, and indexGen::title.
Referenced by beginRun().
|
private |
Definition at line 453 of file HLTHiggsSubAnalysis.cc.
References _analysisname, _genSelectorMap, _recLabels, EVTColContainer::CALOMET, EVTColContainer::ELEC, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), EVTColContainer::MUON, EVTColContainer::PFTAU, and EVTColContainer::PHOTON.
Referenced by HLTHiggsSubAnalysis().
|
private |
Definition at line 620 of file HLTHiggsSubAnalysis.cc.
References _elements, mergeVDriftHistosByStation::name, and LaserTracksInput_cfi::source.
Referenced by analyze().
const std::vector< unsigned int > HLTHiggsSubAnalysis::getObjectsType | ( | const std::string & | hltpath | ) | const |
Extract what objects need this analysis.
Definition at line 423 of file HLTHiggsSubAnalysis.cc.
References EVTColContainer::CALOMET, EVTColContainer::ELEC, EVTColContainer::getTypeString(), i, EVTColContainer::MUON, EVTColContainer::PFTAU, and EVTColContainer::PHOTON.
Referenced by beginRun().
|
private |
Definition at line 495 of file HLTHiggsSubAnalysis.cc.
References _genParticleLabel, _hltProcessName, _recLabels, EVTColContainer::CALOMET, EVTColContainer::ELEC, EVTColContainer::genParticles, edm::Event::getByLabel(), EVTColContainer::isCommonInit(), edm::HandleBase::isValid(), EVTColContainer::MUON, EVTColContainer::PFTAU, EVTColContainer::PHOTON, edm::Handle< T >::product(), EVTColContainer::set(), and EVTColContainer::triggerResults.
Referenced by analyze().
|
private |
Definition at line 633 of file HLTHiggsSubAnalysis.cc.
References _recCaloMETSelector, _recCut, _recElecSelector, _recMuonSelector, _recPFTauSelector, _recPhotonSelector, EVTColContainer::CALOMET, EVTColContainer::ELEC, EVTColContainer::MUON, EVTColContainer::PFTAU, and EVTColContainer::PHOTON.
Referenced by analyze().
|
private |
Definition at line 665 of file HLTHiggsSubAnalysis.cc.
References _recCaloMETSelector, _recElecSelector, _recMuonSelector, _recPFTauSelector, _recPhotonSelector, EVTColContainer::CALOMET, EVTColContainer::caloMETs, EVTColContainer::ELEC, EVTColContainer::electrons, i, EVTColContainer::MUON, EVTColContainer::muons, EVTColContainer::PFTAU, EVTColContainer::pfTaus, EVTColContainer::PHOTON, and EVTColContainer::photons.
Referenced by analyze().
|
private |
Definition at line 89 of file HLTHiggsSubAnalysis.h.
Referenced by beginRun(), and bookobjects().
|
private |
Definition at line 133 of file HLTHiggsSubAnalysis.h.
Referenced by analyze(), and beginRun().
|
private |
Definition at line 115 of file HLTHiggsSubAnalysis.h.
Referenced by HLTHiggsSubAnalysis().
|
private |
Definition at line 114 of file HLTHiggsSubAnalysis.h.
Referenced by HLTHiggsSubAnalysis().
|
private |
Definition at line 116 of file HLTHiggsSubAnalysis.h.
|
private |
Definition at line 117 of file HLTHiggsSubAnalysis.h.
|
private |
Definition at line 137 of file HLTHiggsSubAnalysis.h.
Referenced by beginRun(), bookHist(), and HLTHiggsSubAnalysis().
|
private |
Definition at line 138 of file HLTHiggsSubAnalysis.h.
Referenced by bookHist(), and fillHist().
|
private |
gen/rec objects cuts
Definition at line 119 of file HLTHiggsSubAnalysis.h.
Referenced by analyze(), and HLTHiggsSubAnalysis().
|
private |
Definition at line 106 of file HLTHiggsSubAnalysis.h.
Referenced by initobjects().
|
private |
The concrete String selectors (use the string cuts introduced via the config python)
Definition at line 124 of file HLTHiggsSubAnalysis.h.
Referenced by analyze(), bookobjects(), and ~HLTHiggsSubAnalysis().
|
private |
Definition at line 135 of file HLTHiggsSubAnalysis.h.
Referenced by beginRun().
|
private |
the hlt paths found in the hltConfig
Definition at line 99 of file HLTHiggsSubAnalysis.h.
Referenced by beginRun().
|
private |
the hlt paths with regular expressions
Definition at line 97 of file HLTHiggsSubAnalysis.h.
Referenced by beginRun(), and HLTHiggsSubAnalysis().
|
private |
Definition at line 94 of file HLTHiggsSubAnalysis.h.
Referenced by beginRun(), and initobjects().
|
private |
The minimum number of reco/gen candidates needed by the analysis.
Definition at line 92 of file HLTHiggsSubAnalysis.h.
Referenced by analyze(), and HLTHiggsSubAnalysis().
|
private |
Some kinematical parameters.
Definition at line 110 of file HLTHiggsSubAnalysis.h.
Referenced by bookHist().
|
private |
Definition at line 111 of file HLTHiggsSubAnalysis.h.
Referenced by bookHist().
|
private |
Definition at line 112 of file HLTHiggsSubAnalysis.h.
Referenced by bookHist().
|
private |
Definition at line 87 of file HLTHiggsSubAnalysis.h.
Referenced by beginRun().
|
private |
Definition at line 127 of file HLTHiggsSubAnalysis.h.
Referenced by InitSelector(), insertcandidates(), and ~HLTHiggsSubAnalysis().
|
private |
Definition at line 120 of file HLTHiggsSubAnalysis.h.
Referenced by HLTHiggsSubAnalysis(), and InitSelector().
|
private |
Definition at line 126 of file HLTHiggsSubAnalysis.h.
Referenced by InitSelector(), insertcandidates(), and ~HLTHiggsSubAnalysis().
|
private |
Definition at line 107 of file HLTHiggsSubAnalysis.h.
Referenced by analyze(), beginRun(), bookobjects(), HLTHiggsSubAnalysis(), and initobjects().
|
private |
Definition at line 125 of file HLTHiggsSubAnalysis.h.
Referenced by InitSelector(), insertcandidates(), and ~HLTHiggsSubAnalysis().
|
private |
Definition at line 128 of file HLTHiggsSubAnalysis.h.
Referenced by InitSelector(), insertcandidates(), and ~HLTHiggsSubAnalysis().
|
private |
Definition at line 129 of file HLTHiggsSubAnalysis.h.
Referenced by InitSelector(), insertcandidates(), and ~HLTHiggsSubAnalysis().
|
private |
Definition at line 130 of file HLTHiggsSubAnalysis.h.
Referenced by ~HLTHiggsSubAnalysis().
|
private |
Relation between the short version of a path.
Definition at line 102 of file HLTHiggsSubAnalysis.h.
Referenced by analyze(), and beginRun().