#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, EcalClusterLazyTools) const |
get the 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, 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 * | _EBgt15lh |
likelihood above 15GeV/c More... | |
LikelihoodPdfProduct * | _EBlt15lh |
likelihood below 15GeV/c More... | |
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 8 of file ElectronLikelihood.cc.
References Setup().
|
virtual |
dtor
Definition at line 35 of file ElectronLikelihood.cc.
References _EBgt15lh, _EBlt15lh, _EEgt15lh, and _EElt15lh.
|
private |
get the input variables from the electron and the e-Setup
Definition at line 224 of file ElectronLikelihood.cc.
References EcalClusterLazyTools::covariances(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::fbrem(), reco::GsfElectron::hadronicOverEm(), m_eleIDSwitches, LikelihoodSwitches::m_useDeltaEta, LikelihoodSwitches::m_useDeltaPhi, LikelihoodSwitches::m_useEoverP, LikelihoodSwitches::m_useFBrem, LikelihoodSwitches::m_useHoverE, LikelihoodSwitches::m_useSigmaEtaEta, LikelihoodSwitches::m_useSigmaPhiPhi, mathSSE::sqrt(), and reco::GsfElectron::superCluster().
Referenced by result().
float ElectronLikelihood::result | ( | const reco::GsfElectron & | electron, |
EcalClusterLazyTools | myEcalCluster | ||
) | const |
get the result of the algorithm
Definition at line 248 of file ElectronLikelihood.cc.
References _EBgt15lh, _EBlt15lh, _EEgt15lh, _EElt15lh, className(), EcalBarrel, EcalEndcap, edm::hlt::Exception, getInputVar(), LikelihoodPdfProduct::getRatio(), m_signalWeightSplitting, reco::GsfElectron::numberOfBrems(), reco::LeafCandidate::pt(), and reco::GsfElectron::superCluster().
|
inline |
|
private |
build the likelihood model from histograms in Barrel file and Endcap file
Definition at line 48 of file ElectronLikelihood.cc.
References _EBgt15lh, _EBlt15lh, _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_useSigmaEtaEta, LikelihoodSwitches::m_useSigmaPhiPhi, and LikelihoodPdfProduct::setSplitFrac().
Referenced by ElectronLikelihood().
|
private |
likelihood above 15GeV/c
Definition at line 61 of file ElectronLikelihood.h.
Referenced by result(), Setup(), and ~ElectronLikelihood().
|
private |
likelihood below 15GeV/c
Definition at line 59 of file ElectronLikelihood.h.
Referenced by result(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 61 of file ElectronLikelihood.h.
Referenced by result(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 59 of file ElectronLikelihood.h.
Referenced by result(), Setup(), and ~ElectronLikelihood().
|
private |
Definition at line 68 of file ElectronLikelihood.h.
|
private |
general parameters of all the ele id algorithms
Definition at line 64 of file ElectronLikelihood.h.
Referenced by getInputVar(), and Setup().
|
private |
splitting rule for PDF's
Definition at line 67 of file ElectronLikelihood.h.
Referenced by result().
|
private |
Definition at line 70 of file ElectronLikelihood.h.
|
private |
Definition at line 69 of file ElectronLikelihood.h.