* Enhancements for XFEL
* Enhancements for EIGER * Writer is more flexible and capable of handling DECTRIS data
This commit is contained in:
@@ -68,3 +68,20 @@ DetectorModuleGeometry::Direction DetectorModuleGeometry::GetSlowAxis() const {
|
||||
DetectorModuleGeometry::Direction DetectorModuleGeometry::GetFastAxis() const {
|
||||
return fast;
|
||||
}
|
||||
|
||||
void DetectorModuleGeometry::VerticalFlip(std::size_t detector_height) {
|
||||
if (detector_height - 1 < y0)
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid, "Something wrong with detector_height");
|
||||
|
||||
if (fast == Direction::Yneg)
|
||||
fast = Direction::Ypos;
|
||||
else if (fast == Direction::Ypos)
|
||||
fast = Direction::Yneg;
|
||||
|
||||
if (slow == Direction::Yneg)
|
||||
slow = Direction::Ypos;
|
||||
else if (slow == Direction::Ypos)
|
||||
slow = Direction::Yneg;
|
||||
|
||||
y0 = detector_height - y0 - 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user