#include <AntiElectronIDMVA6.h>
Public Member Functions | |
AntiElectronIDMVA6 (const edm::ParameterSet &) | |
bool | atECalEntrance (const reco::Candidate *part, math::XYZPoint &pos) |
void | beginEvent (const edm::Event &, const edm::EventSetup &) |
double | MVAValue (Float_t TauPt, Float_t TauEtaAtEcalEntrance, Float_t TauPhi, Float_t TauLeadChargedPFCandPt, Float_t TauLeadChargedPFCandEtaAtEcalEntrance, Float_t TauEmFraction, Float_t TauLeadPFChargedHadrHoP, Float_t TauLeadPFChargedHadrEoP, Float_t TauVisMassIn, Float_t TaudCrackEta, Float_t TaudCrackPhi, Float_t TauHasGsf, Int_t TauSignalPFGammaCandsIn, Int_t TauSignalPFGammaCandsOut, const std::vector< Float_t > &GammasdEtaInSigCone, const std::vector< Float_t > &GammasdPhiInSigCone, const std::vector< Float_t > &GammasPtInSigCone, const std::vector< Float_t > &GammasdEtaOutSigCone, const std::vector< Float_t > &GammasdPhiOutSigCone, const std::vector< Float_t > &GammasPtOutSigCone, Float_t ElecEta, Float_t ElecPhi, Float_t ElecEtotOverPin, Float_t ElecChi2NormGSF, Float_t ElecChi2NormKF, Float_t ElecGSFNumHits, Float_t ElecKFNumHits, Float_t ElecGSFTrackResol, Float_t ElecGSFTracklnPt, Float_t ElecPin, Float_t ElecPout, Float_t ElecEecal, Float_t ElecDeltaEta, Float_t ElecDeltaPhi, Float_t ElecMvaInSigmaEtaEta, Float_t ElecMvaInHadEnergy, Float_t ElecMvaInDeltaEta) |
double | MVAValue (Float_t TauPt, Float_t TauEtaAtEcalEntrance, Float_t TauPhi, Float_t TauLeadChargedPFCandPt, Float_t TauLeadChargedPFCandEtaAtEcalEntrance, Float_t TauEmFraction, Float_t TauLeadPFChargedHadrHoP, Float_t TauLeadPFChargedHadrEoP, Float_t TauVisMassIn, Float_t TaudCrackEta, Float_t TaudCrackPhi, Float_t TauHasGsf, Int_t TauSignalPFGammaCandsIn, Int_t TauSignalPFGammaCandsOut, Float_t TauGammaEtaMomIn, Float_t TauGammaEtaMomOut, Float_t TauGammaPhiMomIn, Float_t TauGammaPhiMomOut, Float_t TauGammaEnFracIn, Float_t TauGammaEnFracOut, Float_t ElecEta, Float_t ElecPhi, Float_t ElecEtotOverPin, Float_t ElecChi2NormGSF, Float_t ElecChi2NormKF, Float_t ElecGSFNumHits, Float_t ElecKFNumHits, Float_t ElecGSFTrackResol, Float_t ElecGSFTracklnPt, Float_t ElecPin, Float_t ElecPout, Float_t ElecEecal, Float_t ElecDeltaEta, Float_t ElecDeltaPhi, Float_t ElecMvaInSigmaEtaEta, Float_t ElecMvaInHadEnergy, Float_t ElecMvaInDeltaEta) |
double | MVAValue (const reco::PFTau &thePFTau, const reco::GsfElectron &theGsfEle) |
double | MVAValue (const reco::PFTau &thePFTau) |
double | MVAValue (const pat::Tau &theTau, const pat::Electron &theEle) |
double | MVAValue (const pat::Tau &theTau) |
~AntiElectronIDMVA6 () | |
Private Member Functions | |
double | dCrackEta (double eta) |
double | dCrackPhi (double phi, double eta) |
double | minimum (double a, double b) |
Definition at line 35 of file AntiElectronIDMVA6.h.
AntiElectronIDMVA6::AntiElectronIDMVA6 | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 18 of file AntiElectronIDMVA6.cc.
References Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), inputFileName_, loadMVAfromDB_, mvaName_NoEleMatch_wGwoGSF_BL_, mvaName_NoEleMatch_wGwoGSF_EC_, mvaName_NoEleMatch_woGwoGSF_BL_, mvaName_NoEleMatch_woGwoGSF_EC_, mvaName_wGwGSF_BL_, mvaName_wGwGSF_EC_, mvaName_woGwGSF_BL_, mvaName_woGwGSF_EC_, AlCaHLTBitMon_QueryRunRegistry::string, usePhiAtEcalEntranceExtrapolation_, Var_NoEleMatch_wGwoGSF_Barrel_, Var_NoEleMatch_wGwoGSF_Endcap_, Var_NoEleMatch_woGwoGSF_Barrel_, Var_NoEleMatch_woGwoGSF_Endcap_, Var_wGwGSF_Barrel_, Var_wGwGSF_Endcap_, Var_woGwGSF_Barrel_, Var_woGwGSF_Endcap_, and verbosity_.
AntiElectronIDMVA6::~AntiElectronIDMVA6 | ( | ) |
Definition at line 60 of file AntiElectronIDMVA6.cc.
References Exception, edm::EventSetup::get(), analyzePatCleaning_cfg::inputFile, inputFilesToDelete_, taus_updatedMVAIds_cff::loadMVAfromDB, loadMVAfromDB_, DetachedQuadStep_cff::mva, mva_NoEleMatch_wGwoGSF_BL_, mva_NoEleMatch_wGwoGSF_EC_, mva_NoEleMatch_woGwoGSF_BL_, mva_NoEleMatch_woGwoGSF_EC_, mva_wGwGSF_BL_, mva_wGwGSF_EC_, mva_woGwGSF_BL_, mva_woGwGSF_EC_, taus_updatedMVAIds_cff::mvaName, edm::ESHandle< T >::product(), AlCaHLTBitMon_QueryRunRegistry::string, Var_NoEleMatch_wGwoGSF_Barrel_, Var_NoEleMatch_wGwoGSF_Endcap_, Var_NoEleMatch_woGwoGSF_Barrel_, Var_NoEleMatch_woGwoGSF_Endcap_, Var_wGwGSF_Barrel_, Var_wGwGSF_Endcap_, Var_woGwGSF_Barrel_, and Var_woGwGSF_Endcap_.
bool AntiElectronIDMVA6::atECalEntrance | ( | const reco::Candidate * | part, |
math::XYZPoint & | pos | ||
) |
void AntiElectronIDMVA6::beginEvent | ( | const edm::Event & | evt, |
const edm::EventSetup & | es | ||
) |
Definition at line 104 of file AntiElectronIDMVA6.cc.
References PositionAtECalEntranceComputer::beginEvent(), edm::FileInPath::fullPath(), analyzePatCleaning_cfg::inputFile, inputFileName_, inputFilesToDelete_, isInitialized_, taus_updatedMVAIds_cff::loadMVAfromDB, loadMVAfromDB_, edm::FileInPath::location(), mva_NoEleMatch_wGwoGSF_BL_, mva_NoEleMatch_wGwoGSF_EC_, mva_NoEleMatch_woGwoGSF_BL_, mva_NoEleMatch_woGwoGSF_EC_, mva_wGwGSF_BL_, mva_wGwGSF_EC_, mva_woGwGSF_BL_, mva_woGwGSF_EC_, mvaName_NoEleMatch_wGwoGSF_BL_, mvaName_NoEleMatch_wGwoGSF_EC_, mvaName_NoEleMatch_woGwoGSF_BL_, mvaName_NoEleMatch_woGwoGSF_EC_, mvaName_wGwGSF_BL_, mvaName_wGwGSF_EC_, mvaName_woGwGSF_BL_, mvaName_woGwGSF_EC_, positionAtECalEntrance_, and edm::FileInPath::Unknown.
|
private |
Definition at line 1316 of file AntiElectronIDMVA6.cc.
References funct::abs(), edmIntegrityCheck::d, and minimum().
Referenced by MVAValue().
|
private |
Definition at line 1266 of file AntiElectronIDMVA6.cc.
References funct::abs(), constexpr, M_PI, minimum(), and pi.
Referenced by MVAValue().
|
private |
Definition at line 1241 of file AntiElectronIDMVA6.cc.
References a, funct::abs(), b, constexpr, M_PI, and pi.
Referenced by dCrackEta(), and dCrackPhi().
double AntiElectronIDMVA6::MVAValue | ( | Float_t | TauPt, |
Float_t | TauEtaAtEcalEntrance, | ||
Float_t | TauPhi, | ||
Float_t | TauLeadChargedPFCandPt, | ||
Float_t | TauLeadChargedPFCandEtaAtEcalEntrance, | ||
Float_t | TauEmFraction, | ||
Float_t | TauLeadPFChargedHadrHoP, | ||
Float_t | TauLeadPFChargedHadrEoP, | ||
Float_t | TauVisMassIn, | ||
Float_t | TaudCrackEta, | ||
Float_t | TaudCrackPhi, | ||
Float_t | TauHasGsf, | ||
Int_t | TauSignalPFGammaCandsIn, | ||
Int_t | TauSignalPFGammaCandsOut, | ||
const std::vector< Float_t > & | GammasdEtaInSigCone, | ||
const std::vector< Float_t > & | GammasdPhiInSigCone, | ||
const std::vector< Float_t > & | GammasPtInSigCone, | ||
const std::vector< Float_t > & | GammasdEtaOutSigCone, | ||
const std::vector< Float_t > & | GammasdPhiOutSigCone, | ||
const std::vector< Float_t > & | GammasPtOutSigCone, | ||
Float_t | ElecEta, | ||
Float_t | ElecPhi, | ||
Float_t | ElecEtotOverPin, | ||
Float_t | ElecChi2NormGSF, | ||
Float_t | ElecChi2NormKF, | ||
Float_t | ElecGSFNumHits, | ||
Float_t | ElecKFNumHits, | ||
Float_t | ElecGSFTrackResol, | ||
Float_t | ElecGSFTracklnPt, | ||
Float_t | ElecPin, | ||
Float_t | ElecPout, | ||
Float_t | ElecEecal, | ||
Float_t | ElecDeltaEta, | ||
Float_t | ElecDeltaPhi, | ||
Float_t | ElecMvaInSigmaEtaEta, | ||
Float_t | ElecMvaInHadEnergy, | ||
Float_t | ElecMvaInDeltaEta | ||
) |
Definition at line 136 of file AntiElectronIDMVA6.cc.
References mps_fire::i, M_PI, mathSSE::sqrt(), and TtFullHadEvtBuilder_cfi::sumPt.
Referenced by MVAValue().
double AntiElectronIDMVA6::MVAValue | ( | Float_t | TauPt, |
Float_t | TauEtaAtEcalEntrance, | ||
Float_t | TauPhi, | ||
Float_t | TauLeadChargedPFCandPt, | ||
Float_t | TauLeadChargedPFCandEtaAtEcalEntrance, | ||
Float_t | TauEmFraction, | ||
Float_t | TauLeadPFChargedHadrHoP, | ||
Float_t | TauLeadPFChargedHadrEoP, | ||
Float_t | TauVisMassIn, | ||
Float_t | TaudCrackEta, | ||
Float_t | TaudCrackPhi, | ||
Float_t | TauHasGsf, | ||
Int_t | TauSignalPFGammaCandsIn, | ||
Int_t | TauSignalPFGammaCandsOut, | ||
Float_t | TauGammaEtaMomIn, | ||
Float_t | TauGammaEtaMomOut, | ||
Float_t | TauGammaPhiMomIn, | ||
Float_t | TauGammaPhiMomOut, | ||
Float_t | TauGammaEnFracIn, | ||
Float_t | TauGammaEnFracOut, | ||
Float_t | ElecEta, | ||
Float_t | ElecPhi, | ||
Float_t | ElecEtotOverPin, | ||
Float_t | ElecChi2NormGSF, | ||
Float_t | ElecChi2NormKF, | ||
Float_t | ElecGSFNumHits, | ||
Float_t | ElecKFNumHits, | ||
Float_t | ElecGSFTrackResol, | ||
Float_t | ElecGSFTracklnPt, | ||
Float_t | ElecPin, | ||
Float_t | ElecPout, | ||
Float_t | ElecEecal, | ||
Float_t | ElecDeltaEta, | ||
Float_t | ElecDeltaPhi, | ||
Float_t | ElecMvaInSigmaEtaEta, | ||
Float_t | ElecMvaInHadEnergy, | ||
Float_t | ElecMvaInDeltaEta | ||
) |
Definition at line 265 of file AntiElectronIDMVA6.cc.
References funct::abs(), deltaR(), Exception, GBRForest::GetClassifier(), isInitialized_, cmsBatch::log, SiStripPI::max, min(), mva_NoEleMatch_wGwoGSF_BL_, mva_NoEleMatch_wGwoGSF_EC_, mva_NoEleMatch_woGwoGSF_BL_, mva_NoEleMatch_woGwoGSF_EC_, mva_wGwGSF_BL_, mva_wGwGSF_EC_, mva_woGwGSF_BL_, mva_woGwGSF_EC_, Var_NoEleMatch_wGwoGSF_Barrel_, Var_NoEleMatch_wGwoGSF_Endcap_, Var_NoEleMatch_woGwoGSF_Barrel_, Var_NoEleMatch_woGwoGSF_Endcap_, Var_wGwGSF_Barrel_, Var_wGwGSF_Endcap_, Var_woGwGSF_Barrel_, and Var_woGwGSF_Endcap_.
double AntiElectronIDMVA6::MVAValue | ( | const reco::PFTau & | thePFTau, |
const reco::GsfElectron & | theGsfEle | ||
) |
Definition at line 508 of file AntiElectronIDMVA6.cc.
References reco::GsfElectron::closestCtfTrackRef(), dCrackEta(), dCrackPhi(), reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaPhiSeedClusterTrackAtCalo(), deltaR(), PATTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::GsfElectron::ecalEnergy(), reco::PFTau::emFraction(), reco::Candidate::energy(), reco::LeafCandidate::eta(), reco::TrackBase::eta(), CustomPhysics_cfi::gamma, reco::Candidate::get(), reco::GsfElectron::gsfTrack(), edm::Ref< C, T, F >::isAvailable(), edm::Ptr< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), reco::PFTau::leadPFChargedHadrCand(), cmsBatch::log, ResonanceBuilder::mass, SiStripPI::max, min(), MVAValue(), phi, reco::LeafCandidate::phi(), positionAtECalEntrance_, reco::LeafCandidate::pt(), reco::TrackBase::pt(), reco::PFTau::signalPFCands(), reco::PFTau::signalPFChargedHadrCands(), reco::PFTau::signalPFGammaCands(), mathSSE::sqrt(), summarizeEdmComparisonLogfiles::success, reco::GsfElectron::superCluster(), HiIsolationCommonParameters_cff::track, reco::GsfElectron::trackMomentumAtVtx(), reco::GsfElectron::trackMomentumOut(), and usePhiAtEcalEntranceExtrapolation_.
double AntiElectronIDMVA6::MVAValue | ( | const reco::PFTau & | thePFTau | ) |
Definition at line 727 of file AntiElectronIDMVA6.cc.
References dCrackEta(), dCrackPhi(), deltaR(), PATTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::PFTau::emFraction(), reco::Candidate::energy(), reco::LeafCandidate::eta(), reco::TrackBase::eta(), CustomPhysics_cfi::gamma, reco::Candidate::get(), edm::Ptr< T >::isNonnull(), reco::PFTau::leadPFChargedHadrCand(), ResonanceBuilder::mass, SiStripPI::max, min(), MVAValue(), phi, reco::LeafCandidate::phi(), positionAtECalEntrance_, reco::LeafCandidate::pt(), reco::TrackBase::pt(), reco::PFTau::signalPFCands(), reco::PFTau::signalPFChargedHadrCands(), reco::PFTau::signalPFGammaCands(), summarizeEdmComparisonLogfiles::success, HiIsolationCommonParameters_cff::track, and usePhiAtEcalEntranceExtrapolation_.
double AntiElectronIDMVA6::MVAValue | ( | const pat::Tau & | theTau, |
const pat::Electron & | theEle | ||
) |
Definition at line 895 of file AntiElectronIDMVA6.cc.
References funct::abs(), pat::Electron::closestCtfTrackRef(), dCrackEta(), dCrackPhi(), reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaPhiSeedClusterTrackAtCalo(), deltaR(), PATTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::GsfElectron::ecalEnergy(), pat::Tau::ecalEnergyLeadChargedHadrCand(), pat::Tau::emFraction_MVA(), reco::Candidate::energy(), reco::LeafCandidate::eta(), pat::Tau::etaAtEcalEntrance(), pat::Tau::etaAtEcalEntranceLeadChargedCand(), CustomPhysics_cfi::gamma, edm::Ptr< T >::get(), reco::Candidate::get(), pat::Electron::gsfTrack(), pat::Tau::hcalEnergyLeadChargedHadrCand(), edm::Ref< C, T, F >::isAvailable(), edm::Ptr< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), pat::Tau::leadChargedHadrCand(), cmsBatch::log, ResonanceBuilder::mass, SiStripPI::max, min(), MVAValue(), pat::PackedCandidate::pdgId(), phi, reco::LeafCandidate::phi(), pat::Tau::phiAtEcalEntrance(), positionAtECalEntrance_, reco::LeafCandidate::pt(), pat::Tau::ptLeadChargedCand(), pat::Tau::signalCands(), pat::Tau::signalChargedHadrCands(), pat::Tau::signalGammaCands(), mathSSE::sqrt(), summarizeEdmComparisonLogfiles::success, pat::Electron::superCluster(), reco::GsfElectron::trackMomentumAtVtx(), reco::GsfElectron::trackMomentumOut(), and usePhiAtEcalEntranceExtrapolation_.
double AntiElectronIDMVA6::MVAValue | ( | const pat::Tau & | theTau | ) |
Definition at line 1096 of file AntiElectronIDMVA6.cc.
References funct::abs(), dCrackEta(), dCrackPhi(), deltaR(), PATTauDiscriminationAgainstElectronDeadECAL_cfi::dR, pat::Tau::ecalEnergyLeadChargedHadrCand(), pat::Tau::emFraction_MVA(), reco::Candidate::energy(), reco::LeafCandidate::eta(), pat::Tau::etaAtEcalEntrance(), pat::Tau::etaAtEcalEntranceLeadChargedCand(), CustomPhysics_cfi::gamma, edm::Ptr< T >::get(), reco::Candidate::get(), pat::Tau::hcalEnergyLeadChargedHadrCand(), edm::Ptr< T >::isNonnull(), pat::Tau::leadChargedHadrCand(), ResonanceBuilder::mass, SiStripPI::max, min(), MVAValue(), pat::PackedCandidate::pdgId(), phi, reco::LeafCandidate::phi(), pat::Tau::phiAtEcalEntrance(), positionAtECalEntrance_, reco::LeafCandidate::pt(), pat::Tau::ptLeadChargedCand(), pat::Tau::signalCands(), pat::Tau::signalChargedHadrCands(), pat::Tau::signalGammaCands(), summarizeEdmComparisonLogfiles::success, and usePhiAtEcalEntranceExtrapolation_.
|
private |
Definition at line 137 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 168 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 135 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), and MVAValue().
|
private |
Definition at line 136 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), beginEvent(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 160 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 164 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 159 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 163 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 162 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 166 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 161 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 165 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 140 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 144 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 139 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 143 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 142 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 146 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 141 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 145 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and beginEvent().
|
private |
Definition at line 170 of file AntiElectronIDMVA6.h.
Referenced by beginEvent(), and MVAValue().
|
private |
Definition at line 148 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), and MVAValue().
|
private |
Definition at line 151 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 155 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 150 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 154 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 153 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 157 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 152 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 156 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6(), MVAValue(), and ~AntiElectronIDMVA6().
|
private |
Definition at line 172 of file AntiElectronIDMVA6.h.
Referenced by AntiElectronIDMVA6().