#include <ElectronLikelihood.h>
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 | |
LikelihoodPdfProduct * | _EB0gt15lh |
likelihood above 15GeV/c More... | |
LikelihoodPdfProduct * | _EB0lt15lh |
likelihood below 15GeV/c More... | |
LikelihoodPdfProduct * | _EB1gt15lh |
LikelihoodPdfProduct * | _EB1lt15lh |
LikelihoodPdfProduct * | _EEgt15lh |
LikelihoodPdfProduct * | _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... | |
bool | m_splitBackgroundPdfs |
bool | m_splitSignalPdfs |
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 39 of file ElectronLikelihood.cc.
References _EB0gt15lh, _EB0lt15lh, _EB1gt15lh, _EB1lt15lh, _EEgt15lh, and _EElt15lh.
|
private |
get the input variables from the electron and the e-Setup
Definition at line 324 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 352 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 396 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 54 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 64 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
likelihood below 15GeV/c
Definition at line 62 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 64 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 62 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 64 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 62 of file ElectronLikelihood.h.
Referenced by result(), resultLog(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 71 of file ElectronLikelihood.h.
|
private |
general parameters of all the ele id algorithms
Definition at line 67 of file ElectronLikelihood.h.
Referenced by getInputVar(), and Setup().
|
private |
splitting rule for PDF's
Definition at line 70 of file ElectronLikelihood.h.
Referenced by result(), and resultLog().
|
private |
Definition at line 73 of file ElectronLikelihood.h.
|
private |
Definition at line 72 of file ElectronLikelihood.h.