DetectorModuleGeometry: Allow for negative position (we don't care, as everything is translated later)
This commit is contained in:
@@ -19,21 +19,6 @@ DetectorModuleGeometry::DetectorModuleGeometry(int64_t in_x0, int64_t in_y0,
|
||||
if ((dir_x(fast) && dir_x(slow)) || (!dir_x(fast) && !dir_x(slow)))
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"One of axes (fast/slow) has to be X and another one Y.");
|
||||
if (dir_x(fast) && (fast == Direction::Xneg) && (x0 - fast_pixels + 1 < 0))
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Edge of module in X is outside of the area.");
|
||||
|
||||
if (dir_x(slow) && (slow == Direction::Xneg) && (x0 - slow_pixels + 1 < 0))
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Edge of module in X is outside of the area.");
|
||||
|
||||
if (dir_x(fast) && (slow == Direction::Yneg) && (y0 - slow_pixels + 1 < 0))
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Edge of module in Y is outside of the area.");
|
||||
|
||||
if (dir_x(slow) && (fast == Direction::Yneg) && (y0 - fast_pixels + 1 < 0))
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Edge of module in Y is outside of the area.");
|
||||
}
|
||||
|
||||
int64_t DetectorModuleGeometry::GetMaxX() const {
|
||||
|
||||
Reference in New Issue
Block a user