v1.0.0-rc.34
This commit is contained in:
@@ -163,3 +163,20 @@ Coord DetectorGeometry::GetDirection(DetectorModuleGeometry::Direction direction
|
||||
bool DetectorGeometry::IsModularDetector() const {
|
||||
return modular_detector;
|
||||
}
|
||||
|
||||
int64_t DetectorGeometry::GetX0(int64_t m) const {
|
||||
if ((m < 0) || (m >= modules.size()))
|
||||
throw JFJochException(JFJochExceptionCategory::ArrayOutOfBounds, "Wrong module number");
|
||||
if (!modular_detector)
|
||||
return 0;
|
||||
return modules[m].GetPixel0_X();
|
||||
}
|
||||
|
||||
int64_t DetectorGeometry::GetY0(int64_t m) const {
|
||||
if ((m < 0) || (m >= modules.size()))
|
||||
throw JFJochException(JFJochExceptionCategory::ArrayOutOfBounds, "Wrong module number");
|
||||
if (!modular_detector)
|
||||
return 0;
|
||||
|
||||
return modules[m].GetPixel0_Y();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user