From 983f5ad92e41a7bebb376e854d4b79934c49dc78 Mon Sep 17 00:00:00 2001 From: Ilya Kravchenko Date: Mon, 14 Sep 2015 00:05:54 +0200 Subject: [PATCH] Updated two variables of electron MVA to match the exact definition from the MVA developer --- .../plugins/ElectronMVAEstimatorRun2Spring15NonTrig.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RecoEgamma/ElectronIdentification/plugins/ElectronMVAEstimatorRun2Spring15NonTrig.cc b/RecoEgamma/ElectronIdentification/plugins/ElectronMVAEstimatorRun2Spring15NonTrig.cc index 1129f64b52885..bf05dee07a940 100644 --- a/RecoEgamma/ElectronIdentification/plugins/ElectronMVAEstimatorRun2Spring15NonTrig.cc +++ b/RecoEgamma/ElectronIdentification/plugins/ElectronMVAEstimatorRun2Spring15NonTrig.cc @@ -288,7 +288,7 @@ fillMVAVariables(const edm::Ptr& particle, // Energy matching allMVAVars.fbrem = eleRecoPtr->fbrem(); - allMVAVars.gsfhits = eleRecoPtr->gsfTrack()->found(); + allMVAVars.gsfhits = eleRecoPtr->gsfTrack()->hitPattern().trackerLayersWithMeasurement(); allMVAVars.expectedMissingInnerHits = eleRecoPtr->gsfTrack() ->hitPattern().numberOfHits(reco::HitPattern::MISSING_INNER_HITS); @@ -305,7 +305,8 @@ fillMVAVariables(const edm::Ptr& particle, allMVAVars.EoP = eleRecoPtr->eSuperClusterOverP(); allMVAVars.eleEoPout = eleRecoPtr->eEleClusterOverPout(); - allMVAVars.IoEmIoP = (1.0/eleRecoPtr->ecalEnergy()) - (1.0 / eleRecoPtr->p()); + float pAtVertex = eleRecoPtr->trackMomentumAtVtx().R(); + allMVAVars.IoEmIoP = (1.0/eleRecoPtr->ecalEnergy()) - (1.0 / pAtVertex ); // Geometrical matchings allMVAVars.deta = eleRecoPtr->deltaEtaSuperClusterTrackAtVtx();