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 5de6716 commit e5db73a
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 e5db73a

Please sign in to comment.