#include <AntiElectronIDMVA2.h>
Public Member Functions | |
AntiElectronIDMVA2 () | |
void | Initialize_from_file (const std::string &methodName, const std::string &oneProngNoEleMatch_BL, const std::string &oneProng0Pi0_BL, const std::string &oneProng1pi0woGSF_BL, const std::string &oneProng1pi0wGSFwoPfEleMva_BL, const std::string &oneProng1pi0wGSFwPfEleMva_BL, const std::string &oneProngNoEleMatch_EC, const std::string &oneProng0Pi0_EC, const std::string &oneProng1pi0woGSF_EC, const std::string &oneProng1pi0wGSFwoPfEleMva_EC, const std::string &oneProng1pi0wGSFwPfEleMva_EC) |
void | Initialize_from_string (const std::string &methodName, const std::string &oneProngNoEleMatch_BL, const std::string &oneProng0Pi0_BL, const std::string &oneProng1pi0woGSF_BL, const std::string &oneProng1pi0wGSFwoPfEleMva_BL, const std::string &oneProng1pi0wGSFwPfEleMva_BL, const std::string &oneProngNoEleMatch_EC, const std::string &oneProng0Pi0_EC, const std::string &oneProng1pi0woGSF_EC, const std::string &oneProng1pi0wGSFwoPfEleMva_EC, const std::string &oneProng1pi0wGSFwPfEleMva_EC) |
double | MVAValue (Float_t TauEtaAtEcalEntrance, Float_t TauPhi, Float_t TauPt, Float_t TauSignalPFChargedCands, Float_t TauSignalPFGammaCands, Float_t TauLeadPFChargedHadrHoP, Float_t TauLeadPFChargedHadrEoP, Float_t TauHasGsf, Float_t TauVisMass, Float_t TauEmFraction, const std::vector< Float_t > &GammasdEta, const std::vector< Float_t > &GammasdPhi, const std::vector< Float_t > &GammasPt, Float_t ElecEta, Float_t ElecPhi, Float_t ElecPt, Float_t ElecPFMvaOutput, Float_t ElecEe, Float_t ElecEgamma, Float_t ElecPin, Float_t ElecPout, Float_t ElecEarlyBrem, Float_t ElecLateBrem, Float_t ElecFbrem, Float_t ElecChi2KF, Float_t ElecChi2GSF, Float_t ElecNumHits, Float_t ElecGSFTrackResol, Float_t ElecGSFTracklnPt, Float_t ElecGSFTrackEta) |
double | MVAValue (Float_t TauEtaAtEcalEntrance, Float_t TauPhi, Float_t TauPt, Float_t TauSignalPFChargedCands, Float_t TauSignalPFGammaCands, Float_t TauLeadPFChargedHadrHoP, Float_t TauLeadPFChargedHadrEoP, Float_t TauHasGsf, Float_t TauVisMass, Float_t TauEmFraction, Float_t GammaEtaMom, Float_t GammaPhiMom, Float_t GammaEnFrac, Float_t ElecEta, Float_t ElecPhi, Float_t ElecPt, Float_t ElecPFMvaOutput, Float_t ElecEe, Float_t ElecEgamma, Float_t ElecPin, Float_t ElecPout, Float_t ElecEarlyBrem, Float_t ElecLateBrem, Float_t ElecFbrem, Float_t ElecChi2KF, Float_t ElecChi2GSF, Float_t ElecNumHits, Float_t ElecGSFTrackResol, Float_t ElecGSFTracklnPt, Float_t ElecGSFTrackEta) |
double | MVAValue (const reco::PFTau &thePFTau, const reco::GsfElectron &theGsfEle) |
double | MVAValue (const reco::PFTau &thePFTau) |
~AntiElectronIDMVA2 () | |
Private Member Functions | |
void | bookMVAs () |
Private Attributes | |
Float_t | Elec_Chi2GSF_ |
Float_t | Elec_Chi2KF_ |
Float_t | Elec_EarlyBrem_ |
Float_t | Elec_Ee_ |
Float_t | Elec_EeOverPout_ |
Float_t | Elec_Egamma_ |
Float_t | Elec_EgammaOverPdif_ |
Float_t | Elec_Eta_ |
Float_t | Elec_EtotOverPin_ |
Float_t | Elec_Fbrem_ |
Float_t | Elec_GSFTrackEta_ |
Float_t | Elec_GSFTracklnPt_ |
Float_t | Elec_GSFTrackResol_ |
Float_t | Elec_LateBrem_ |
Float_t | Elec_NumHits_ |
Float_t | Elec_PFMvaOutput_ |
Float_t | Elec_Pin_ |
Float_t | Elec_Pout_ |
Float_t | Elec_Pt_ |
TMVA::Reader * | fTMVAReader_ [10] |
Float_t | GammadEta_ |
Float_t | GammadPhi_ |
Float_t | GammadPt_ |
Bool_t | isInitialized_ |
std::string | methodName_ |
Float_t | Tau_EmFraction_ |
Float_t | Tau_EtaAtEcalEntrance_ |
Float_t | Tau_GammaEnFrac_ |
Float_t | Tau_GammaEtaMom_ |
Float_t | Tau_GammaPhiMom_ |
Float_t | Tau_HadrEoP_ |
Float_t | Tau_HadrHoP_ |
Float_t | Tau_HadrMva_ |
Float_t | Tau_HasGsf_ |
Float_t | Tau_NumChargedCands_ |
Float_t | Tau_NumGammaCands_ |
Float_t | Tau_Pt_ |
Float_t | Tau_VisMass_ |
int | verbosity_ |
Definition at line 27 of file AntiElectronIDMVA2.h.
AntiElectronIDMVA2::AntiElectronIDMVA2 | ( | ) |
AntiElectronIDMVA2::~AntiElectronIDMVA2 | ( | ) |
|
private |
Definition at line 108 of file AntiElectronIDMVA2.cc.
References Elec_Chi2GSF_, Elec_Chi2KF_, Elec_EarlyBrem_, Elec_Ee_, Elec_EeOverPout_, Elec_Egamma_, Elec_EgammaOverPdif_, Elec_Eta_, Elec_EtotOverPin_, Elec_Fbrem_, Elec_GSFTrackEta_, Elec_GSFTracklnPt_, Elec_GSFTrackResol_, Elec_LateBrem_, Elec_NumHits_, Elec_PFMvaOutput_, Elec_Pin_, Elec_Pout_, Elec_Pt_, fTMVAReader_, GammadEta_, GammadPhi_, GammadPt_, k_NoEleMatch_BL, k_NoEleMatch_EC, k_wGwGSFwoPFMVA_BL, k_wGwGSFwoPFMVA_EC, k_wGwGSFwPFMVA_BL, k_wGwGSFwPFMVA_EC, k_wGwoGSF_BL, k_wGwoGSF_EC, k_woG_BL, k_woG_EC, Tau_EmFraction_, Tau_EtaAtEcalEntrance_, Tau_GammaEnFrac_, Tau_GammaEtaMom_, Tau_GammaPhiMom_, Tau_HadrEoP_, Tau_HadrHoP_, Tau_HadrMva_, Tau_HasGsf_, Tau_NumChargedCands_, Tau_NumGammaCands_, Tau_Pt_, Tau_VisMass_, and verbosity_.
Referenced by Initialize_from_file(), and Initialize_from_string().
void AntiElectronIDMVA2::Initialize_from_file | ( | const std::string & | methodName, |
const std::string & | oneProngNoEleMatch_BL, | ||
const std::string & | oneProng0Pi0_BL, | ||
const std::string & | oneProng1pi0woGSF_BL, | ||
const std::string & | oneProng1pi0wGSFwoPfEleMva_BL, | ||
const std::string & | oneProng1pi0wGSFwPfEleMva_BL, | ||
const std::string & | oneProngNoEleMatch_EC, | ||
const std::string & | oneProng0Pi0_EC, | ||
const std::string & | oneProng1pi0woGSF_EC, | ||
const std::string & | oneProng1pi0wGSFwoPfEleMva_EC, | ||
const std::string & | oneProng1pi0wGSFwPfEleMva_EC | ||
) |
Definition at line 37 of file AntiElectronIDMVA2.cc.
References bookMVAs(), fTMVAReader_, i, isInitialized_, k_NoEleMatch_BL, k_NoEleMatch_EC, k_wGwGSFwoPFMVA_BL, k_wGwGSFwoPFMVA_EC, k_wGwGSFwPFMVA_BL, k_wGwGSFwPFMVA_EC, k_wGwoGSF_BL, k_wGwoGSF_EC, k_woG_BL, k_woG_EC, reco::details::loadTMVAWeights(), and methodName_.
void AntiElectronIDMVA2::Initialize_from_string | ( | const std::string & | methodName, |
const std::string & | oneProngNoEleMatch_BL, | ||
const std::string & | oneProng0Pi0_BL, | ||
const std::string & | oneProng1pi0woGSF_BL, | ||
const std::string & | oneProng1pi0wGSFwoPfEleMva_BL, | ||
const std::string & | oneProng1pi0wGSFwPfEleMva_BL, | ||
const std::string & | oneProngNoEleMatch_EC, | ||
const std::string & | oneProng0Pi0_EC, | ||
const std::string & | oneProng1pi0woGSF_EC, | ||
const std::string & | oneProng1pi0wGSFwoPfEleMva_EC, | ||
const std::string & | oneProng1pi0wGSFwPfEleMva_EC | ||
) |
Definition at line 70 of file AntiElectronIDMVA2.cc.
References bookMVAs(), edm::hlt::Exception, fTMVAReader_, i, isInitialized_, k_NoEleMatch_BL, k_NoEleMatch_EC, k_wGwGSFwoPFMVA_BL, k_wGwGSFwoPFMVA_EC, k_wGwGSFwPFMVA_BL, k_wGwGSFwPFMVA_EC, k_wGwoGSF_BL, k_wGwoGSF_EC, k_woG_BL, k_woG_EC, and methodName_.
double AntiElectronIDMVA2::MVAValue | ( | Float_t | TauEtaAtEcalEntrance, |
Float_t | TauPhi, | ||
Float_t | TauPt, | ||
Float_t | TauSignalPFChargedCands, | ||
Float_t | TauSignalPFGammaCands, | ||
Float_t | TauLeadPFChargedHadrHoP, | ||
Float_t | TauLeadPFChargedHadrEoP, | ||
Float_t | TauHasGsf, | ||
Float_t | TauVisMass, | ||
Float_t | TauEmFraction, | ||
const std::vector< Float_t > & | GammasdEta, | ||
const std::vector< Float_t > & | GammasdPhi, | ||
const std::vector< Float_t > & | GammasPt, | ||
Float_t | ElecEta, | ||
Float_t | ElecPhi, | ||
Float_t | ElecPt, | ||
Float_t | ElecPFMvaOutput, | ||
Float_t | ElecEe, | ||
Float_t | ElecEgamma, | ||
Float_t | ElecPin, | ||
Float_t | ElecPout, | ||
Float_t | ElecEarlyBrem, | ||
Float_t | ElecLateBrem, | ||
Float_t | ElecFbrem, | ||
Float_t | ElecChi2KF, | ||
Float_t | ElecChi2GSF, | ||
Float_t | ElecNumHits, | ||
Float_t | ElecGSFTrackResol, | ||
Float_t | ElecGSFTracklnPt, | ||
Float_t | ElecGSFTrackEta | ||
) |
Definition at line 347 of file AntiElectronIDMVA2.cc.
Referenced by MVAValue().
double AntiElectronIDMVA2::MVAValue | ( | Float_t | TauEtaAtEcalEntrance, |
Float_t | TauPhi, | ||
Float_t | TauPt, | ||
Float_t | TauSignalPFChargedCands, | ||
Float_t | TauSignalPFGammaCands, | ||
Float_t | TauLeadPFChargedHadrHoP, | ||
Float_t | TauLeadPFChargedHadrEoP, | ||
Float_t | TauHasGsf, | ||
Float_t | TauVisMass, | ||
Float_t | TauEmFraction, | ||
Float_t | GammaEtaMom, | ||
Float_t | GammaPhiMom, | ||
Float_t | GammaEnFrac, | ||
Float_t | ElecEta, | ||
Float_t | ElecPhi, | ||
Float_t | ElecPt, | ||
Float_t | ElecPFMvaOutput, | ||
Float_t | ElecEe, | ||
Float_t | ElecEgamma, | ||
Float_t | ElecPin, | ||
Float_t | ElecPout, | ||
Float_t | ElecEarlyBrem, | ||
Float_t | ElecLateBrem, | ||
Float_t | ElecFbrem, | ||
Float_t | ElecChi2KF, | ||
Float_t | ElecChi2GSF, | ||
Float_t | ElecNumHits, | ||
Float_t | ElecGSFTrackResol, | ||
Float_t | ElecGSFTracklnPt, | ||
Float_t | ElecGSFTrackEta | ||
) |
Definition at line 442 of file AntiElectronIDMVA2.cc.
References gather_cfg::cout, deltaR(), Elec_Chi2GSF_, Elec_Chi2KF_, Elec_EarlyBrem_, Elec_EgammaOverPdif_, Elec_Eta_, Elec_EtotOverPin_, Elec_Fbrem_, Elec_GSFTrackEta_, Elec_GSFTracklnPt_, Elec_GSFTrackResol_, Elec_LateBrem_, Elec_NumHits_, Elec_Pt_, fTMVAReader_, isInitialized_, k_NoEleMatch_BL, k_NoEleMatch_EC, k_wGwGSFwoPFMVA_BL, k_wGwGSFwoPFMVA_EC, k_wGwGSFwPFMVA_BL, k_wGwGSFwPFMVA_EC, k_wGwoGSF_BL, k_wGwoGSF_EC, k_woG_BL, k_woG_EC, siStripFEDMonitor_P5_cff::Max, methodName_, Tau_EmFraction_, Tau_EtaAtEcalEntrance_, Tau_GammaEnFrac_, Tau_GammaEtaMom_, Tau_GammaPhiMom_, Tau_HadrEoP_, Tau_HadrHoP_, Tau_HasGsf_, Tau_NumChargedCands_, Tau_NumGammaCands_, Tau_Pt_, and Tau_VisMass_.
double AntiElectronIDMVA2::MVAValue | ( | const reco::PFTau & | thePFTau, |
const reco::GsfElectron & | theGsfEle | ||
) |
Definition at line 529 of file AntiElectronIDMVA2.cc.
References edm::RefVector< C, T, F >::at(), asciidump::at, reco::GsfElectron::closestCtfTrackRef(), reco::GsfElectron::MvaInput::earlyBrem, Elec_Ee_, Elec_Egamma_, reco::PFTau::emFraction(), reco::LeafCandidate::eta(), reco::GsfElectron::fbrem(), reco::GsfElectron::gsfTrack(), i, edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), j, reco::GsfElectron::MvaInput::lateBrem, reco::PFTau::leadPFChargedHadrCand(), create_public_lumi_plots::log, reco::LeafCandidate::mass(), siStripFEDMonitor_P5_cff::Max, reco::GsfElectron::MvaOutput::mva, reco::GsfElectron::mvaInput(), reco::GsfElectron::mvaOutput(), MVAValue(), reco::GsfElectron::pflowSuperCluster(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::PFTau::signalPFCands(), reco::PFTau::signalPFChargedHadrCands(), reco::PFTau::signalPFGammaCands(), edm::RefVector< C, T, F >::size(), findQualityFiles::size, reco::GsfElectron::trackMomentumAtVtx(), and reco::GsfElectron::trackMomentumOut().
double AntiElectronIDMVA2::MVAValue | ( | const reco::PFTau & | thePFTau | ) |
Definition at line 645 of file AntiElectronIDMVA2.cc.
References edm::RefVector< C, T, F >::at(), asciidump::at, reco::PFTau::emFraction(), reco::LeafCandidate::eta(), i, edm::Ref< C, T, F >::isNonnull(), j, reco::PFTau::leadPFChargedHadrCand(), reco::LeafCandidate::mass(), siStripFEDMonitor_P5_cff::Max, MVAValue(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::PFTau::signalPFCands(), reco::PFTau::signalPFChargedHadrCands(), reco::PFTau::signalPFGammaCands(), edm::RefVector< C, T, F >::size(), and findQualityFiles::size.
|
private |
Definition at line 167 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 166 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 163 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 156 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 161 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs().
|
private |
Definition at line 157 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 162 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 153 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 160 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 165 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 171 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 170 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 169 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 164 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 168 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 155 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs().
|
private |
Definition at line 158 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs().
|
private |
Definition at line 159 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs().
|
private |
Definition at line 154 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 133 of file AntiElectronIDMVA2.h.
Referenced by AntiElectronIDMVA2(), bookMVAs(), Initialize_from_file(), Initialize_from_string(), MVAValue(), and ~AntiElectronIDMVA2().
|
private |
Definition at line 135 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs().
|
private |
Definition at line 136 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs().
|
private |
Definition at line 137 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs().
|
private |
Definition at line 131 of file AntiElectronIDMVA2.h.
Referenced by Initialize_from_file(), Initialize_from_string(), and MVAValue().
|
private |
Definition at line 132 of file AntiElectronIDMVA2.h.
Referenced by Initialize_from_file(), Initialize_from_string(), and MVAValue().
|
private |
Definition at line 142 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 139 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 150 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 148 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 149 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 146 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 145 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 151 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs().
|
private |
Definition at line 141 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 143 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 144 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 140 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 147 of file AntiElectronIDMVA2.h.
Referenced by bookMVAs(), and MVAValue().
|
private |
Definition at line 173 of file AntiElectronIDMVA2.h.
Referenced by AntiElectronIDMVA2(), and bookMVAs().