Skip to content
Snippets Groups Projects
Commit 4b5df844 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'wintlear_fix' into 'master'

Fixing error in distance calculation

See merge request corryvreckan/corryvreckan!619
parents b5e39c01 1fc9e1f1
No related branches found
No related tags found
No related merge requests found
...@@ -870,7 +870,8 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) { ...@@ -870,7 +870,8 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) {
double local_x_absdistance = fabs(local_x_distance); double local_x_absdistance = fabs(local_x_distance);
double local_y_absdistance = fabs(local_y_distance); double local_y_absdistance = fabs(local_y_distance);
double time_distance = track->timestamp() - assoc_cluster->timestamp(); double time_distance = track->timestamp() - assoc_cluster->timestamp();
double local_pos_diff = sqrt(local_x_distance * local_x_absdistance + local_y_absdistance * local_y_absdistance); double local_pos_diff =
sqrt(local_x_absdistance * local_x_absdistance + local_y_absdistance * local_y_absdistance);
double local_pos_diff_um = local_pos_diff * 1000.; double local_pos_diff_um = local_pos_diff * 1000.;
resX_vs_col->Fill(assoc_cluster->column(), local_x_distance_um); resX_vs_col->Fill(assoc_cluster->column(), local_x_distance_um);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment