Commit b7dcdb99 authored by David Blyth's avatar David Blyth

Minor cleanup

parent 3d34b079
......@@ -229,11 +229,12 @@ void trackEvent(proio::Event *event, const int n_validate, genfit::KalmanFitter
return seed_sort_param[a_id] > seed_sort_param[b_id];
};
// build tracks
while (available_obs.size() >= n_validate) {
// build track seed
std::vector<uint64_t> track_obs;
std::sort(available_obs.begin(), available_obs.end(), seed_sort_fn);
// if (seed_sort_param[available_obs.back()] > 1) break;
// if (seed_sort_param[available_obs.back()] > 1) break; // limit time window for seed hits
track_obs.push_back(available_obs.back());
available_obs.pop_back();
auto current_id = track_obs.back();
......@@ -321,7 +322,6 @@ void trackEvent(proio::Event *event, const int n_validate, genfit::KalmanFitter
kernel_val = kernel[current_id][id];
else
kernel_val = kernel[id][current_id];
// std::cout << kernel_val << std::endl;
if (kernel_from_event && kernel_val < 0.1) {
break;
}
......@@ -335,7 +335,6 @@ void trackEvent(proio::Event *event, const int n_validate, genfit::KalmanFitter
id_lookup[track_point] = id;
track_point->setSortingParameter(seed_sort_param[id]);
bool order_changed = track->sort();
// if (order_changed) std::cout << "reordered" << std::endl;
std::vector<genfit::AbsTrackRep *> all_reps(track->getTrackReps());
std::vector<genfit::AbsTrackRep *> bad_reps;
......@@ -349,7 +348,6 @@ void trackEvent(proio::Event *event, const int n_validate, genfit::KalmanFitter
std::cerr << e.what() << std::endl;
}
double pval = forwardPVal(track, rep);
// std::cout << "pval: " << pval << std::endl;
if (pval > 0.001) continue;
bad_reps.push_back(rep);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment