#include <EGammaMvaEleEstimator.h>
Public Types | |
enum | MVAType { kTrig = 0, kTrigNoIP = 1, kNonTrig = 2, kIsoRings, kTrigIDIsoCombined, kTrigIDIsoCombinedPUCorrected } |
Public Member Functions | |
void | bindVariables () |
EGammaMvaEleEstimator () | |
UInt_t | GetMVABin (double eta, double pt) const |
Double_t | IDIsoCombinedMvaValue (const reco::GsfElectron &ele, const reco::Vertex &vertex, const TransientTrackBuilder &transientTrackBuilder, EcalClusterLazyTools myEcalCluster, const reco::PFCandidateCollection &PFCandidates, double Rho, ElectronEffectiveArea::ElectronEffectiveAreaTarget EATarget, bool printDebug=kFALSE) |
Double_t | IDIsoCombinedMvaValue (Double_t fbrem, Double_t kfchi2, Int_t kfhits, Double_t gsfchi2, Double_t deta, Double_t dphi, Double_t detacalo, Double_t see, Double_t spp, Double_t etawidth, Double_t phiwidth, Double_t OneMinusE1x5E5x5, Double_t R9, Double_t HoE, Double_t EoP, Double_t IoEmIoP, Double_t eleEoPout, Double_t PreShowerOverRaw, Double_t d0, Double_t ip3d, Double_t ChargedIso_DR0p0To0p1, Double_t ChargedIso_DR0p1To0p2, Double_t ChargedIso_DR0p2To0p3, Double_t ChargedIso_DR0p3To0p4, Double_t ChargedIso_DR0p4To0p5, Double_t GammaIso_DR0p0To0p1, Double_t GammaIso_DR0p1To0p2, Double_t GammaIso_DR0p2To0p3, Double_t GammaIso_DR0p3To0p4, Double_t GammaIso_DR0p4To0p5, Double_t NeutralHadronIso_DR0p0To0p1, Double_t NeutralHadronIso_DR0p1To0p2, Double_t NeutralHadronIso_DR0p2To0p3, Double_t NeutralHadronIso_DR0p3To0p4, Double_t NeutralHadronIso_DR0p4To0p5, Double_t Rho, Double_t eta, Double_t pt, Bool_t printDebug=kFALSE) |
void | initialize (std::string methodName, std::string weightsfile, EGammaMvaEleEstimator::MVAType type) |
void | initialize (std::string methodName, EGammaMvaEleEstimator::MVAType type, Bool_t useBinnedVersion, std::vector< std::string > weightsfiles) |
Bool_t | isInitialized () const |
Double_t | isoMvaValue (const reco::GsfElectron &ele, const reco::Vertex &vertex, const reco::PFCandidateCollection &PFCandidates, double Rho, ElectronEffectiveArea::ElectronEffectiveAreaTarget EATarget, const reco::GsfElectronCollection &IdentifiedElectrons, const reco::MuonCollection &IdentifiedMuons, bool printDebug=kFALSE) |
Double_t | isoMvaValue (Double_t Pt, Double_t Eta, Double_t Rho, ElectronEffectiveArea::ElectronEffectiveAreaTarget EATarget, Double_t ChargedIso_DR0p0To0p1, Double_t ChargedIso_DR0p1To0p2, Double_t ChargedIso_DR0p2To0p3, Double_t ChargedIso_DR0p3To0p4, Double_t ChargedIso_DR0p4To0p5, Double_t GammaIso_DR0p0To0p1, Double_t GammaIso_DR0p1To0p2, Double_t GammaIso_DR0p2To0p3, Double_t GammaIso_DR0p3To0p4, Double_t GammaIso_DR0p4To0p5, Double_t NeutralHadronIso_DR0p0To0p1, Double_t NeutralHadronIso_DR0p1To0p2, Double_t NeutralHadronIso_DR0p2To0p3, Double_t NeutralHadronIso_DR0p3To0p4, Double_t NeutralHadronIso_DR0p4To0p5, Bool_t printDebug=kFALSE) |
Double_t | mvaValue (const reco::GsfElectron &ele, const reco::Vertex &vertex, const TransientTrackBuilder &transientTrackBuilder, EcalClusterLazyTools myEcalCluster, bool printDebug=kFALSE) |
Double_t | mvaValue (const reco::GsfElectron &ele, const reco::Vertex &vertex, double rho, EcalClusterLazyTools myEcalCluster, bool printDebug=kFALSE) |
Double_t | mvaValue (const pat::Electron &ele, double rho, bool printDebug=kFALSE) |
Double_t | mvaValue (const pat::Electron &ele, const reco::Vertex &vertex, double rho, bool useFull5x5=kFALSE, bool printDebug=kFALSE) |
Double_t | mvaValue (Double_t fbrem, Double_t kfchi2, Int_t kfhits, Double_t gsfchi2, Double_t deta, Double_t dphi, Double_t detacalo, Double_t see, Double_t spp, Double_t etawidth, Double_t phiwidth, Double_t e1x5e5x5, Double_t R9, Double_t HoE, Double_t EoP, Double_t IoEmIoP, Double_t eleEoPout, Double_t PreShowerOverRaw, Double_t d0, Double_t ip3d, Double_t eta, Double_t pt, Bool_t printDebug=kFALSE) |
Double_t | mvaValue (Double_t fbrem, Double_t kfchi2, Int_t kfhits, Double_t gsfchi2, Double_t deta, Double_t dphi, Double_t detacalo, Double_t see, Double_t spp, Double_t etawidth, Double_t phiwidth, Double_t e1x5e5x5, Double_t R9, Double_t HoE, Double_t EoP, Double_t IoEmIoP, Double_t eleEoPout, Double_t rho, Double_t PreShowerOverRaw, Double_t eta, Double_t pt, Bool_t printDebug=kFALSE) |
Double_t | mvaValue (Double_t fbrem, Double_t kfchi2, Int_t kfhits, Double_t gsfchi2, Double_t deta, Double_t dphi, Double_t detacalo, Double_t see, Double_t spp, Double_t etawidth, Double_t phiwidth, Double_t e1x5e5x5, Double_t R9, Double_t HoE, Double_t EoP, Double_t IoEmIoP, Double_t eleEoPout, Double_t PreShowerOverRaw, Double_t eta, Double_t pt, Bool_t printDebug=kFALSE) |
~EGammaMvaEleEstimator () | |
–> NOTE if you want to use this class as standalone without the CMSSW part you need to uncomment the below line and compile normally with scramv1 b Then you need just to load it in your root macro the lib with the correct path, eg: gSystem->Load("/data/benedet/CMSSW_5_2_2/lib/slc5_amd64_gcc462/pluginEGammaEGammaAnalysisTools.so");
Definition at line 39 of file EGammaMvaEleEstimator.h.
Enumerator | |
---|---|
kTrig | |
kTrigNoIP | |
kNonTrig | |
kIsoRings | |
kTrigIDIsoCombined | |
kTrigIDIsoCombinedPUCorrected |
Definition at line 44 of file EGammaMvaEleEstimator.h.
EGammaMvaEleEstimator::EGammaMvaEleEstimator | ( | ) |
Definition at line 27 of file EGammaMvaEleEstimator.cc.
EGammaMvaEleEstimator::~EGammaMvaEleEstimator | ( | ) |
Definition at line 38 of file EGammaMvaEleEstimator.cc.
References fTMVAMethod, fTMVAReader, and i.
void EGammaMvaEleEstimator::bindVariables | ( | ) |
Definition at line 1945 of file EGammaMvaEleEstimator.cc.
References fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_kfchi2, fMVAVar_OneMinusE1x5E5x5, fMVAVar_R9, fMVAVar_spp, and edm::detail::isnan().
Referenced by isoMvaValue(), and mvaValue().
UInt_t EGammaMvaEleEstimator::GetMVABin | ( | double | eta, |
double | pt | ||
) | const |
Definition at line 409 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, fMVAType, kIsoRings, kNonTrig, kTrig, kTrigIDIsoCombined, kTrigIDIsoCombinedPUCorrected, and kTrigNoIP.
Referenced by IDIsoCombinedMvaValue(), isoMvaValue(), and mvaValue().
Double_t EGammaMvaEleEstimator::IDIsoCombinedMvaValue | ( | const reco::GsfElectron & | ele, |
const reco::Vertex & | vertex, | ||
const TransientTrackBuilder & | transientTrackBuilder, | ||
EcalClusterLazyTools | myEcalCluster, | ||
const reco::PFCandidateCollection & | PFCandidates, | ||
double | Rho, | ||
ElectronEffectiveArea::ElectronEffectiveAreaTarget | EATarget, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 1682 of file EGammaMvaEleEstimator.cc.
References IPTools::absoluteImpactParameter3D(), newFWLiteAna::bin, TransientTrackBuilder::build(), reco::GsfElectron::closestCtfTrackRef(), funct::cos(), gather_cfg::cout, reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::PFCandidate::e, reco::GsfElectron::e1x5(), reco::GsfElectron::e5x5(), reco::GsfElectron::eEleClusterOverPout(), reco::GsfElectron::eSuperClusterOverP(), reco::LeafCandidate::eta(), reco::GsfElectron::fbrem(), fisInitialized, fMethodname, fMVAType, fMVAVar_ChargedIso_DR0p0To0p1, fMVAVar_ChargedIso_DR0p1To0p2, fMVAVar_ChargedIso_DR0p2To0p3, fMVAVar_ChargedIso_DR0p3To0p4, fMVAVar_ChargedIso_DR0p4To0p5, fMVAVar_d0, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_GammaIso_DR0p0To0p1, fMVAVar_GammaIso_DR0p1To0p2, fMVAVar_GammaIso_DR0p2To0p3, fMVAVar_GammaIso_DR0p3To0p4, fMVAVar_GammaIso_DR0p4To0p5, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_ip3d, fMVAVar_ip3dSig, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_kfhitsall, fMVAVar_NeutralHadronIso_DR0p0To0p1, fMVAVar_NeutralHadronIso_DR0p1To0p2, fMVAVar_NeutralHadronIso_DR0p2To0p3, fMVAVar_NeutralHadronIso_DR0p3To0p4, fMVAVar_NeutralHadronIso_DR0p4To0p5, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_rho, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, fUseBinnedVersion, reco::PFCandidate::gamma, ElectronEffectiveArea::GetElectronEffectiveArea(), GetMVABin(), reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), edm::Ref< C, T, F >::isAvailable(), edm::detail::isnan(), edm::Ref< C, T, F >::isNonnull(), ElectronEffectiveArea::kEleGammaIsoDR0p0To0p1, ElectronEffectiveArea::kEleGammaIsoDR0p1To0p2, ElectronEffectiveArea::kEleGammaIsoDR0p2To0p3, ElectronEffectiveArea::kEleGammaIsoDR0p3To0p4, ElectronEffectiveArea::kEleGammaIsoDR0p4To0p5, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p0To0p1, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p1To0p2, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p2To0p3, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p3To0p4, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p4To0p5, kTrig, kTrigIDIsoCombined, kTrigIDIsoCombinedPUCorrected, Max(), bookConverter::max, Min(), min(), reco::PFCandidate::mu, HLT_25ns10e33_v2_cff::mva, reco::LeafCandidate::phi(), reco::Vertex::position(), funct::pow(), reco::LeafCandidate::pt(), reco::GsfElectron::sigmaIetaIeta(), mathSSE::sqrt(), reco::GsfElectron::superCluster(), reco::GsfElectron::trackMomentumAtVtx(), and groupFilesInBlocks::tt.
Double_t EGammaMvaEleEstimator::IDIsoCombinedMvaValue | ( | Double_t | fbrem, |
Double_t | kfchi2, | ||
Int_t | kfhits, | ||
Double_t | gsfchi2, | ||
Double_t | deta, | ||
Double_t | dphi, | ||
Double_t | detacalo, | ||
Double_t | see, | ||
Double_t | spp, | ||
Double_t | etawidth, | ||
Double_t | phiwidth, | ||
Double_t | OneMinusE1x5E5x5, | ||
Double_t | R9, | ||
Double_t | HoE, | ||
Double_t | EoP, | ||
Double_t | IoEmIoP, | ||
Double_t | eleEoPout, | ||
Double_t | PreShowerOverRaw, | ||
Double_t | d0, | ||
Double_t | ip3d, | ||
Double_t | ChargedIso_DR0p0To0p1, | ||
Double_t | ChargedIso_DR0p1To0p2, | ||
Double_t | ChargedIso_DR0p2To0p3, | ||
Double_t | ChargedIso_DR0p3To0p4, | ||
Double_t | ChargedIso_DR0p4To0p5, | ||
Double_t | GammaIso_DR0p0To0p1, | ||
Double_t | GammaIso_DR0p1To0p2, | ||
Double_t | GammaIso_DR0p2To0p3, | ||
Double_t | GammaIso_DR0p3To0p4, | ||
Double_t | GammaIso_DR0p4To0p5, | ||
Double_t | NeutralHadronIso_DR0p0To0p1, | ||
Double_t | NeutralHadronIso_DR0p1To0p2, | ||
Double_t | NeutralHadronIso_DR0p2To0p3, | ||
Double_t | NeutralHadronIso_DR0p3To0p4, | ||
Double_t | NeutralHadronIso_DR0p4To0p5, | ||
Double_t | Rho, | ||
Double_t | eta, | ||
Double_t | pt, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 771 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, gather_cfg::cout, eta, fisInitialized, fMethodname, fMVAVar_ChargedIso_DR0p0To0p1, fMVAVar_ChargedIso_DR0p1To0p2, fMVAVar_ChargedIso_DR0p2To0p3, fMVAVar_ChargedIso_DR0p3To0p4, fMVAVar_ChargedIso_DR0p4To0p5, fMVAVar_d0, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_GammaIso_DR0p0To0p1, fMVAVar_GammaIso_DR0p1To0p2, fMVAVar_GammaIso_DR0p2To0p3, fMVAVar_GammaIso_DR0p3To0p4, fMVAVar_GammaIso_DR0p4To0p5, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_ip3d, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_NeutralHadronIso_DR0p0To0p1, fMVAVar_NeutralHadronIso_DR0p1To0p2, fMVAVar_NeutralHadronIso_DR0p2To0p3, fMVAVar_NeutralHadronIso_DR0p3To0p4, fMVAVar_NeutralHadronIso_DR0p4To0p5, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_rho, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, fUseBinnedVersion, GetMVABin(), bookConverter::max, min(), HLT_25ns10e33_v2_cff::mva, and EnergyCorrector::pt.
void EGammaMvaEleEstimator::initialize | ( | std::string | methodName, |
std::string | weightsfile, | ||
EGammaMvaEleEstimator::MVAType | type | ||
) |
Definition at line 47 of file EGammaMvaEleEstimator.cc.
Referenced by heppy::EGammaMvaEleEstimatorFWLite::initialize().
void EGammaMvaEleEstimator::initialize | ( | std::string | methodName, |
EGammaMvaEleEstimator::MVAType | type, | ||
Bool_t | useBinnedVersion, | ||
std::vector< std::string > | weightsfiles | ||
) |
Definition at line 59 of file EGammaMvaEleEstimator.cc.
References assert(), gather_cfg::cout, data, Exception, mergeVDriftHistosByStation::file, fisInitialized, fMethodname, fMVAType, fMVAVar_ChargedIso_DR0p0To0p1, fMVAVar_ChargedIso_DR0p1To0p2, fMVAVar_ChargedIso_DR0p2To0p3, fMVAVar_ChargedIso_DR0p3To0p4, fMVAVar_ChargedIso_DR0p4To0p5, fMVAVar_d0, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_GammaIso_DR0p0To0p1, fMVAVar_GammaIso_DR0p1To0p2, fMVAVar_GammaIso_DR0p2To0p3, fMVAVar_GammaIso_DR0p3To0p4, fMVAVar_GammaIso_DR0p4To0p5, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_ip3d, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_NeutralHadronIso_DR0p0To0p1, fMVAVar_NeutralHadronIso_DR0p1To0p2, fMVAVar_NeutralHadronIso_DR0p2To0p3, fMVAVar_NeutralHadronIso_DR0p3To0p4, fMVAVar_NeutralHadronIso_DR0p4To0p5, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_rho, fMVAVar_see, fMVAVar_spp, fNMVABins, fTMVAMethod, fTMVAReader, fUseBinnedVersion, i, kIsoRings, kNonTrig, kTrig, kTrigIDIsoCombined, kTrigIDIsoCombinedPUCorrected, kTrigNoIP, and SiPixelLorentzAngle_cfi::read.
|
inline |
Double_t EGammaMvaEleEstimator::isoMvaValue | ( | const reco::GsfElectron & | ele, |
const reco::Vertex & | vertex, | ||
const reco::PFCandidateCollection & | PFCandidates, | ||
double | Rho, | ||
ElectronEffectiveArea::ElectronEffectiveAreaTarget | EATarget, | ||
const reco::GsfElectronCollection & | IdentifiedElectrons, | ||
const reco::MuonCollection & | IdentifiedMuons, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 1481 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, bindVariables(), reco::GsfElectron::closestCtfTrackRef(), funct::cos(), gather_cfg::cout, reco::PFCandidate::e, reco::LeafCandidate::eta(), fisInitialized, fMethodname, fMVAType, fMVAVar_ChargedIso_DR0p0To0p1, fMVAVar_ChargedIso_DR0p1To0p2, fMVAVar_ChargedIso_DR0p2To0p3, fMVAVar_ChargedIso_DR0p3To0p4, fMVAVar_ChargedIso_DR0p4To0p5, fMVAVar_eta, fMVAVar_GammaIso_DR0p0To0p1, fMVAVar_GammaIso_DR0p1To0p2, fMVAVar_GammaIso_DR0p2To0p3, fMVAVar_GammaIso_DR0p3To0p4, fMVAVar_GammaIso_DR0p4To0p5, fMVAVar_NeutralHadronIso_DR0p0To0p1, fMVAVar_NeutralHadronIso_DR0p1To0p2, fMVAVar_NeutralHadronIso_DR0p2To0p3, fMVAVar_NeutralHadronIso_DR0p3To0p4, fMVAVar_NeutralHadronIso_DR0p4To0p5, fMVAVar_pt, fTMVAMethod, fTMVAReader, fUseBinnedVersion, reco::PFCandidate::gamma, ElectronEffectiveArea::GetElectronEffectiveArea(), GetMVABin(), reco::GsfElectron::gsfTrack(), edm::Ref< C, T, F >::isNonnull(), ElectronEffectiveArea::kEleGammaIsoDR0p0To0p1, ElectronEffectiveArea::kEleGammaIsoDR0p1To0p2, ElectronEffectiveArea::kEleGammaIsoDR0p2To0p3, ElectronEffectiveArea::kEleGammaIsoDR0p3To0p4, ElectronEffectiveArea::kEleGammaIsoDR0p4To0p5, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p0To0p1, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p1To0p2, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p2To0p3, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p3To0p4, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p4To0p5, Max(), Min(), reco::PFCandidate::mu, HLT_25ns10e33_v2_cff::mva, reco::LeafCandidate::phi(), reco::Vertex::position(), funct::pow(), reco::LeafCandidate::pt(), edm::refToPtr(), mathSSE::sqrt(), and reco::GsfElectron::superCluster().
Double_t EGammaMvaEleEstimator::isoMvaValue | ( | Double_t | Pt, |
Double_t | Eta, | ||
Double_t | Rho, | ||
ElectronEffectiveArea::ElectronEffectiveAreaTarget | EATarget, | ||
Double_t | ChargedIso_DR0p0To0p1, | ||
Double_t | ChargedIso_DR0p1To0p2, | ||
Double_t | ChargedIso_DR0p2To0p3, | ||
Double_t | ChargedIso_DR0p3To0p4, | ||
Double_t | ChargedIso_DR0p4To0p5, | ||
Double_t | GammaIso_DR0p0To0p1, | ||
Double_t | GammaIso_DR0p1To0p2, | ||
Double_t | GammaIso_DR0p2To0p3, | ||
Double_t | GammaIso_DR0p3To0p4, | ||
Double_t | GammaIso_DR0p4To0p5, | ||
Double_t | NeutralHadronIso_DR0p0To0p1, | ||
Double_t | NeutralHadronIso_DR0p1To0p2, | ||
Double_t | NeutralHadronIso_DR0p2To0p3, | ||
Double_t | NeutralHadronIso_DR0p3To0p4, | ||
Double_t | NeutralHadronIso_DR0p4To0p5, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 919 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, gather_cfg::cout, fisInitialized, fMethodname, fMVAType, fMVAVar_ChargedIso_DR0p0To0p1, fMVAVar_ChargedIso_DR0p1To0p2, fMVAVar_ChargedIso_DR0p2To0p3, fMVAVar_ChargedIso_DR0p3To0p4, fMVAVar_ChargedIso_DR0p4To0p5, fMVAVar_GammaIso_DR0p0To0p1, fMVAVar_GammaIso_DR0p1To0p2, fMVAVar_GammaIso_DR0p2To0p3, fMVAVar_GammaIso_DR0p3To0p4, fMVAVar_GammaIso_DR0p4To0p5, fMVAVar_NeutralHadronIso_DR0p0To0p1, fMVAVar_NeutralHadronIso_DR0p1To0p2, fMVAVar_NeutralHadronIso_DR0p2To0p3, fMVAVar_NeutralHadronIso_DR0p3To0p4, fMVAVar_NeutralHadronIso_DR0p4To0p5, fTMVAMethod, fTMVAReader, ElectronEffectiveArea::GetElectronEffectiveArea(), GetMVABin(), ElectronEffectiveArea::kEleGammaIsoDR0p0To0p1, ElectronEffectiveArea::kEleGammaIsoDR0p1To0p2, ElectronEffectiveArea::kEleGammaIsoDR0p2To0p3, ElectronEffectiveArea::kEleGammaIsoDR0p3To0p4, ElectronEffectiveArea::kEleGammaIsoDR0p4To0p5, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p0To0p1, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p1To0p2, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p2To0p3, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p3To0p4, ElectronEffectiveArea::kEleNeutralHadronIsoDR0p4To0p5, Max(), Min(), and HLT_25ns10e33_v2_cff::mva.
Double_t EGammaMvaEleEstimator::mvaValue | ( | const reco::GsfElectron & | ele, |
const reco::Vertex & | vertex, | ||
const TransientTrackBuilder & | transientTrackBuilder, | ||
EcalClusterLazyTools | myEcalCluster, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 997 of file EGammaMvaEleEstimator.cc.
References IPTools::absoluteImpactParameter3D(), newFWLiteAna::bin, bindVariables(), TransientTrackBuilder::build(), reco::GsfElectron::closestCtfTrackRef(), gather_cfg::cout, reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::e1x5(), reco::GsfElectron::e5x5(), reco::GsfElectron::ecalEnergy(), reco::GsfElectron::eEleClusterOverPout(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::fbrem(), fisInitialized, fMethodname, fMVAType, fMVAVar_d0, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_ip3d, fMVAVar_ip3dSig, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_kfhitsall, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, fUseBinnedVersion, GetMVABin(), reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), edm::Ref< C, T, F >::isAvailable(), edm::detail::isnan(), edm::Ref< C, T, F >::isNonnull(), kNonTrig, kTrig, HLT_25ns10e33_v2_cff::mva, reco::LeafCandidate::p(), reco::Vertex::position(), reco::LeafCandidate::pt(), reco::GsfElectron::sigmaIetaIeta(), mathSSE::sqrt(), reco::GsfElectron::superCluster(), and groupFilesInBlocks::tt.
Referenced by ElectronIdMVAProducer::filter(), heppy::EGammaMvaEleEstimatorFWLite::mvaValue(), and ElectronPATIdMVAProducer::produce().
Double_t EGammaMvaEleEstimator::mvaValue | ( | const reco::GsfElectron & | ele, |
const reco::Vertex & | vertex, | ||
double | rho, | ||
EcalClusterLazyTools | myEcalCluster, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 1131 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, bindVariables(), reco::GsfElectron::closestCtfTrackRef(), gather_cfg::cout, reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::e1x5(), reco::GsfElectron::e5x5(), reco::GsfElectron::eEleClusterOverPout(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::fbrem(), fisInitialized, fMethodname, fMVAType, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_rho, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, fUseBinnedVersion, GetMVABin(), reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), edm::Ref< C, T, F >::isAvailable(), edm::detail::isnan(), edm::Ref< C, T, F >::isNonnull(), kTrigNoIP, HLT_25ns10e33_v2_cff::mva, reco::LeafCandidate::pt(), rho, reco::GsfElectron::sigmaIetaIeta(), mathSSE::sqrt(), and reco::GsfElectron::superCluster().
Double_t EGammaMvaEleEstimator::mvaValue | ( | const pat::Electron & | ele, |
double | rho, | ||
bool | printDebug = kFALSE |
||
) |
Definition at line 1368 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, bindVariables(), pat::Electron::closestCtfTrackRef(), gather_cfg::cout, reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::e1x5(), reco::GsfElectron::e5x5(), reco::GsfElectron::eEleClusterOverPout(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::fbrem(), fisInitialized, fMethodname, fMVAType, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_rho, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, fUseBinnedVersion, GetMVABin(), pat::Electron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), kTrigNoIP, HLT_25ns10e33_v2_cff::mva, reco::LeafCandidate::pt(), reco::GsfElectron::r9(), rho, reco::GsfElectron::sigmaIetaIeta(), reco::GsfElectron::sigmaIphiIphi(), and pat::Electron::superCluster().
Double_t EGammaMvaEleEstimator::mvaValue | ( | const pat::Electron & | ele, |
const reco::Vertex & | vertex, | ||
double | rho, | ||
bool | useFull5x5 = kFALSE , |
||
bool | printDebug = kFALSE |
||
) |
Definition at line 1242 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, bindVariables(), pat::Electron::closestCtfTrackRef(), gather_cfg::cout, pat::Electron::dB(), reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::e1x5(), reco::GsfElectron::e5x5(), reco::GsfElectron::ecalEnergy(), pat::Electron::edB(), reco::GsfElectron::eEleClusterOverPout(), reco::GsfElectron::eSuperClusterOverP(), reco::GsfElectron::fbrem(), fisInitialized, fMethodname, fMVAType, fMVAVar_d0, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_ip3d, fMVAVar_ip3dSig, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_rho, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, reco::GsfElectron::full5x5_e1x5(), reco::GsfElectron::full5x5_e5x5(), reco::GsfElectron::full5x5_r9(), reco::GsfElectron::full5x5_sigmaIetaIeta(), reco::GsfElectron::full5x5_sigmaIphiIphi(), fUseBinnedVersion, GetMVABin(), pat::Electron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), kNonTrig, kTrig, HLT_25ns10e33_v2_cff::mva, reco::LeafCandidate::p(), reco::Vertex::position(), reco::LeafCandidate::pt(), reco::GsfElectron::r9(), rho, reco::GsfElectron::sigmaIetaIeta(), reco::GsfElectron::sigmaIphiIphi(), and pat::Electron::superCluster().
Double_t EGammaMvaEleEstimator::mvaValue | ( | Double_t | fbrem, |
Double_t | kfchi2, | ||
Int_t | kfhits, | ||
Double_t | gsfchi2, | ||
Double_t | deta, | ||
Double_t | dphi, | ||
Double_t | detacalo, | ||
Double_t | see, | ||
Double_t | spp, | ||
Double_t | etawidth, | ||
Double_t | phiwidth, | ||
Double_t | e1x5e5x5, | ||
Double_t | R9, | ||
Double_t | HoE, | ||
Double_t | EoP, | ||
Double_t | IoEmIoP, | ||
Double_t | eleEoPout, | ||
Double_t | PreShowerOverRaw, | ||
Double_t | d0, | ||
Double_t | ip3d, | ||
Double_t | eta, | ||
Double_t | pt, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 454 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, bindVariables(), gather_cfg::cout, eta, fisInitialized, fMethodname, fMVAType, fMVAVar_d0, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_ip3d, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, fUseBinnedVersion, GetMVABin(), kTrig, HLT_25ns10e33_v2_cff::mva, and EnergyCorrector::pt.
Double_t EGammaMvaEleEstimator::mvaValue | ( | Double_t | fbrem, |
Double_t | kfchi2, | ||
Int_t | kfhits, | ||
Double_t | gsfchi2, | ||
Double_t | deta, | ||
Double_t | dphi, | ||
Double_t | detacalo, | ||
Double_t | see, | ||
Double_t | spp, | ||
Double_t | etawidth, | ||
Double_t | phiwidth, | ||
Double_t | e1x5e5x5, | ||
Double_t | R9, | ||
Double_t | HoE, | ||
Double_t | EoP, | ||
Double_t | IoEmIoP, | ||
Double_t | eleEoPout, | ||
Double_t | rho, | ||
Double_t | PreShowerOverRaw, | ||
Double_t | eta, | ||
Double_t | pt, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 563 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, bindVariables(), gather_cfg::cout, eta, fisInitialized, fMethodname, fMVAType, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_rho, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, fUseBinnedVersion, GetMVABin(), kTrigNoIP, HLT_25ns10e33_v2_cff::mva, EnergyCorrector::pt, and rho.
Double_t EGammaMvaEleEstimator::mvaValue | ( | Double_t | fbrem, |
Double_t | kfchi2, | ||
Int_t | kfhits, | ||
Double_t | gsfchi2, | ||
Double_t | deta, | ||
Double_t | dphi, | ||
Double_t | detacalo, | ||
Double_t | see, | ||
Double_t | spp, | ||
Double_t | etawidth, | ||
Double_t | phiwidth, | ||
Double_t | e1x5e5x5, | ||
Double_t | R9, | ||
Double_t | HoE, | ||
Double_t | EoP, | ||
Double_t | IoEmIoP, | ||
Double_t | eleEoPout, | ||
Double_t | PreShowerOverRaw, | ||
Double_t | eta, | ||
Double_t | pt, | ||
Bool_t | printDebug = kFALSE |
||
) |
Definition at line 665 of file EGammaMvaEleEstimator.cc.
References newFWLiteAna::bin, bindVariables(), gather_cfg::cout, eta, fisInitialized, fMethodname, fMVAType, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_eleEoPout, fMVAVar_EoP, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_OneMinusE1x5E5x5, fMVAVar_phiwidth, fMVAVar_PreShowerOverRaw, fMVAVar_pt, fMVAVar_R9, fMVAVar_see, fMVAVar_spp, fTMVAMethod, fTMVAReader, fUseBinnedVersion, GetMVABin(), kNonTrig, HLT_25ns10e33_v2_cff::mva, and EnergyCorrector::pt.
|
private |
Definition at line 252 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), isInitialized(), isoMvaValue(), and mvaValue().
|
private |
Definition at line 251 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), isoMvaValue(), and mvaValue().
|
private |
Definition at line 253 of file EGammaMvaEleEstimator.h.
Referenced by GetMVABin(), IDIsoCombinedMvaValue(), initialize(), isoMvaValue(), and mvaValue().
|
private |
Definition at line 289 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 290 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 291 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 292 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 293 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 281 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 263 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 265 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 264 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 277 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 275 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 278 of file EGammaMvaEleEstimator.h.
|
private |
Definition at line 285 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), isoMvaValue(), and mvaValue().
|
private |
Definition at line 269 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 257 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 294 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 295 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 296 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 297 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 298 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 261 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 274 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 276 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 282 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 283 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), and mvaValue().
|
private |
Definition at line 258 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 259 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 260 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), and mvaValue().
|
private |
Definition at line 299 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 300 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 301 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 302 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 303 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and isoMvaValue().
|
private |
Definition at line 271 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 270 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 279 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 286 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), isoMvaValue(), and mvaValue().
|
private |
Definition at line 272 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 287 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 267 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 268 of file EGammaMvaEleEstimator.h.
Referenced by bindVariables(), IDIsoCombinedMvaValue(), initialize(), and mvaValue().
|
private |
Definition at line 255 of file EGammaMvaEleEstimator.h.
Referenced by initialize().
|
private |
Definition at line 250 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), isoMvaValue(), mvaValue(), and ~EGammaMvaEleEstimator().
|
private |
Definition at line 249 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), isoMvaValue(), mvaValue(), and ~EGammaMvaEleEstimator().
|
private |
Definition at line 254 of file EGammaMvaEleEstimator.h.
Referenced by IDIsoCombinedMvaValue(), initialize(), isoMvaValue(), and mvaValue().