Skip to content

Commit

Permalink
Rescale pixel hit sigma by 3 to get to cluster extents in q direction.
Browse files Browse the repository at this point in the history
  • Loading branch information
osschar committed Dec 14, 2023
1 parent fc82e45 commit bce91dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RecoTracker/MkFitCore/src/HitStructures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,14 @@ namespace mkfit {
m_binnor.register_entry_safe(phi, q);

if (Config::usePhiQArrays) {
const float sqrt3 = std::sqrt(3);
// Factor to get from hit sigma to half-length in q direction.
const float hl_fac = is_pixel() ? 3.0f : std::sqrt(3.0f);
float half_length, qbar;
if (m_is_barrel) {
half_length = sqrt3 * std::sqrt(h.ezz());
half_length = hl_fac * std::sqrt(h.ezz());
qbar = h.r();
} else {
half_length = sqrt3 * std::sqrt(h.exx() + h.eyy());
half_length = hl_fac * std::sqrt(h.exx() + h.eyy());
qbar = h.z();
}
m_hit_infos.emplace_back(HitInfo({phi, q, half_length, qbar}));
Expand Down

0 comments on commit bce91dd

Please sign in to comment.