Skip to content

Commit

Permalink
Merge pull request cms-sw#335 from slava77/from-devel-pr334/dr
Browse files Browse the repository at this point in the history
sqrt in dr for endcap SelectHitIndices
  • Loading branch information
mmasciov committed Jul 26, 2021
2 parents 795127e + 98dbfd1 commit 09b40d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkFit/MkFinder.cc
Expand Up @@ -327,7 +327,7 @@ void MkFinder::SelectHitIndices(const LayerOfHits &layer_of_hits,
float dphi = calcdphi(dphi2, min_dphi);

const float r = std::sqrt(r2);
const float dr = std::abs(nSigmaR*(x*x*Err[iI].ConstAt(itrack, 0, 0) + y*y*Err[iI].ConstAt(itrack, 1, 1) + 2*x*y*Err[iI].ConstAt(itrack, 0, 1)) / r2);
const float dr = nSigmaR*std::sqrt(std::abs(x*x*Err[iI].ConstAt(itrack, 0, 0) + y*y*Err[iI].ConstAt(itrack, 1, 1) + 2*x*y*Err[iI].ConstAt(itrack, 0, 1)) / r2);

////// Disable correction
//if (Config::useCMSGeom) // should be Config::finding_requires_propagation_to_hit_pos
Expand Down

0 comments on commit 09b40d8

Please sign in to comment.