Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taking into account Geiger hits with NaN radii #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions SNFitterModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,15 @@ FALAISE_REGISTER_MODULE(SNFitterModule)

for (const auto &hit : gg_hits_col) {
// work with geiger hits as members of a given cluster
GeigerRing ring{hit->get_r(), hit->get_x(), hit->get_y(),
if ( !std::isnan(hit->get_r()) ){ //take into account NaN radii: discard them
GeigerRing ring{hit->get_r(), hit->get_x(), hit->get_y(),
hit->get_z(), hit->get_sigma_r(), hit->get_sigma_z()};
MetaInfo mi{hit->get_id(), hit->get_side(), hit->get_row(), hit->get_layer()};
MetaInfo mi{hit->get_id(), hit->get_side(), hit->get_row(), hit->get_layer()};

rings.emplace_back(TrackerHit{ncl, ring, mi});
rings.emplace_back(TrackerHit{ncl, ring, mi});
}
}

// ready to fit
SNFitter snf{rings};
std::vector<HelixFit> hres = snf.fithelix();
Expand Down