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 c9a9acb commit f6dc8e7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 f6dc8e7

Please sign in to comment.