v1.0.0-rc.34

This commit is contained in:
2025-04-14 11:52:06 +02:00
parent 708b5fbc4b
commit b0607ab3ca
238 changed files with 4590 additions and 1329 deletions

View File

@@ -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();
}