#include <ElectronLikelihood.h>
Classes | |
class | LikelihoodPdfProductPtr |
Public Member Functions | |
ElectronLikelihood () | |
ctor, not used for this algo (need initialization from ES) More... | |
ElectronLikelihood (const ElectronLikelihoodCalibration *calibration, LikelihoodSwitches eleIDSwitches, std::string signalWeightSplitting, std::string backgroundWeightSplitting, bool splitSignalPdfs, bool splitBackgroundPdfs) | |
ctor More... | |
float | result (const reco::GsfElectron &electron, const EcalClusterLazyTools &) const |
get the result of the algorithm More... | |
float | resultLog (const reco::GsfElectron &electron, const EcalClusterLazyTools &) const |
get the log-expanded result of the algorithm More... | |
void | setup (const edm::ParameterSet &conf) |
not used for this algo More... | |
virtual | ~ElectronLikelihood () |
dtor More... | |
Private Member Functions | |
void | getInputVar (const reco::GsfElectron &electron, std::vector< float > &measuremnts, const EcalClusterLazyTools &) const |
get the input variables from the electron and the e-Setup More... | |
void | Setup (const ElectronLikelihoodCalibration *calibration, std::string signalWeightSplitting, std::string backgroundWeightSplitting, bool splitSignalPdfs, bool splitBackgroundPdfs) |
Private Attributes | |
LikelihoodPdfProductPtr | _EB0gt15lh |
likelihood above 15GeV/c More... | |
LikelihoodPdfProductPtr | _EB0lt15lh |
likelihood below 15GeV/c More... | |
LikelihoodPdfProductPtr | _EB1gt15lh |
LikelihoodPdfProductPtr | _EB1lt15lh |
LikelihoodPdfProductPtr | _EEgt15lh |
LikelihoodPdfProductPtr | _EElt15lh |
std::string | m_backgroundWeightSplitting |
LikelihoodSwitches | m_eleIDSwitches |
general parameters of all the ele id algorithms More... | |
std::string | m_signalWeightSplitting |
splitting rule for PDF's More... | |
Definition at line 17 of file ElectronLikelihood.h.
|
inline |
ctor, not used for this algo (need initialization from ES)
Definition at line 22 of file ElectronLikelihood.h.
ElectronLikelihood::ElectronLikelihood | ( | const ElectronLikelihoodCalibration * | calibration, |
LikelihoodSwitches | eleIDSwitches, | ||
std::string | signalWeightSplitting, | ||
std::string | backgroundWeightSplitting, | ||
bool | splitSignalPdfs, | ||
bool | splitBackgroundPdfs | ||
) |
ctor
Definition at line 10 of file ElectronLikelihood.cc.
References Setup().
|
virtual |
dtor
Definition at line 37 of file ElectronLikelihood.cc.
References _EB0gt15lh, _EB0lt15lh, _EB1gt15lh, _EB1lt15lh, _EEgt15lh, _EElt15lh, and ElectronLikelihood::LikelihoodPdfProductPtr::get().
|
private |
get the input variables from the electron and the e-Setup
Definition at line 322 of file ElectronLikelihood.cc.
References reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::fbrem(), reco::LeafCandidate::get(), reco::GsfElectron::hadronicOverEm(), m_eleIDSwitches, LikelihoodSwitches::m_useDeltaEta, LikelihoodSwitches::m_useDeltaPhi, LikelihoodSwitches::m_useEoverP, LikelihoodSwitches::m_useFBrem, LikelihoodSwitches::m_useHoverE, LikelihoodSwitches::m_useOneOverEMinusOneOverP, LikelihoodSwitches::m_useSigmaEtaEta, LikelihoodSwitches::m_useSigmaPhiPhi, mathSSE::sqrt(), and reco::GsfElectron::superCluster().
Referenced by result(), and resultLog().
float ElectronLikelihood::result | ( | const reco::GsfElectron & | electron, |
const EcalClusterLazyTools & | myEcalCluster | ||
) | const |
get the result of the algorithm
Definition at line 350 of file ElectronLikelihood.cc.
References _EB0gt15lh, _EB0lt15lh, _EB1gt15lh, _EB1lt15lh, _EEgt15lh, _EElt15lh, className(), EcalBarrel, EcalEndcap, reco::LeafCandidate::eta(), edm::hlt::Exception, getInputVar(), LikelihoodPdfProduct::getRatio(), m_signalWeightSplitting, reco::GsfElectron::numberOfBrems(), reco::LeafCandidate::pt(), AlCaHLTBitMon_QueryRunRegistry::string, and reco::GsfElectron::superCluster().
float ElectronLikelihood::resultLog | ( | const reco::GsfElectron & | electron, |
const EcalClusterLazyTools & | myEcalCluster | ||
) | const |
get the log-expanded result of the algorithm
Definition at line 394 of file ElectronLikelihood.cc.
References _EB0gt15lh, _EB0lt15lh, _EB1gt15lh, _EB1lt15lh, _EEgt15lh, _EElt15lh, className(), EcalBarrel, EcalEndcap, reco::LeafCandidate::eta(), edm::hlt::Exception, getInputVar(), LikelihoodPdfProduct::getRatio(), mathSSE::lh, create_public_lumi_plots::log, m_signalWeightSplitting, reco::GsfElectron::numberOfBrems(), reco::LeafCandidate::pt(), AlCaHLTBitMon_QueryRunRegistry::string, and reco::GsfElectron::superCluster().
|
inline |
|
private |
build the likelihood model from histograms in Barrel file and Endcap file
Definition at line 52 of file ElectronLikelihood.cc.
References _EB0gt15lh, _EB0lt15lh, _EB1gt15lh, _EB1lt15lh, _EEgt15lh, _EElt15lh, LikelihoodPdfProduct::addPdf(), LikelihoodPdfProduct::addSpecies(), edm::hlt::Exception, LikelihoodPdfProduct::initFromDB(), m_eleIDSwitches, LikelihoodSwitches::m_useDeltaEta, LikelihoodSwitches::m_useDeltaPhi, LikelihoodSwitches::m_useEoverP, LikelihoodSwitches::m_useFBrem, LikelihoodSwitches::m_useHoverE, LikelihoodSwitches::m_useOneOverEMinusOneOverP, LikelihoodSwitches::m_useSigmaEtaEta, LikelihoodSwitches::m_useSigmaPhiPhi, and LikelihoodPdfProduct::setSplitFrac().
Referenced by ElectronLikelihood().
|
private |
likelihood above 15GeV/c
Definition at line 80 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
likelihood below 15GeV/c
Definition at line 78 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 80 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 78 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 80 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 78 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 87 of file ElectronLikelihood.h.
|
private |
general parameters of all the ele id algorithms
Definition at line 83 of file ElectronLikelihood.h.
Referenced by getInputVar(), and Setup().
|
private |
splitting rule for PDF's
Definition at line 86 of file ElectronLikelihood.h.
Referenced by result(), and resultLog().