Skip to content

Commit

Permalink
Merge pull request #13279 from rafaellopesdesa/EPcombination_protection
Browse files Browse the repository at this point in the history
Ep combination protection
  • Loading branch information
davidlange6 committed Feb 16, 2016
2 parents ff69ac6 + 1343ced commit e244d07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EgammaAnalysis/ElectronTools/src/EpCombinationTool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ void EpCombinationTool::combine(SimpleElectron & mySimpleElectron)
float weight = 0.;
if(eOverP>0.025
&&fabs(momentum-energy)<15.*sqrt(momentumError*momentumError + energyError*energyError)
&&((momentumError < 10.*momentum) || (energy < 200.))
) // protection against crazy track measurement
{
weight = m_forest->GetResponse(regressionInputs);
Expand Down

0 comments on commit e244d07

Please sign in to comment.