Skip to content

Commit

Permalink
Updated two variables of electron MVA to match the exact definition f…
Browse files Browse the repository at this point in the history
…rom the MVA developer
  • Loading branch information
ikrav authored and lgray committed Sep 15, 2015
1 parent 58374d3 commit 983f5ad
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -288,7 +288,7 @@ fillMVAVariables(const edm::Ptr<reco::Candidate>& 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);

Expand All @@ -305,7 +305,8 @@ fillMVAVariables(const edm::Ptr<reco::Candidate>& 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();
Expand Down

0 comments on commit 983f5ad

Please sign in to comment.