Commit 435b50d3 authored by Alex Jentsch's avatar Alex Jentsch
Browse files

Change default behavior of OMD/RP reco to simply skip hit collections that...

Change default behavior of OMD/RP reco to simply skip hit collections that won't work for a valid track.
parent 760437d9
......@@ -129,9 +129,9 @@ public:
double base = hitz[2] - hitz[0];
if (base == 0) {
error() << "Detector separation = 0!"
warning() << "Detector separation = 0!"
<< "Cannot calculate slope!" << endmsg;
return StatusCode::FAILURE;
return StatusCode::SUCCESS;
}
double Xrp[2], Xip[2] = {0.0, 0.0};
......
......@@ -128,9 +128,9 @@ public:
double base = hitz[2] - hitz[0];
if (base == 0) {
error() << "Detector separation = 0!"
warning() << "Detector separation = 0!"
<< "Cannot calculate slope!" << endmsg;
return StatusCode::FAILURE;
return StatusCode::SUCCESS;
}
double Xomd[2] = {XL[1], (1000 * (XL[1] - XL[0]) / (base)) - local_x_slope_offset};
......
Supports Markdown
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