From 66e50384de6002e3fed8d12c9578cad5655aee20 Mon Sep 17 00:00:00 2001 From: chchatte92 Date: Wed, 25 Oct 2023 14:02:11 +0200 Subject: [PATCH] exception thrown when sensor not found --- src/services/geometry/richgeo/IrtGeoDRICH.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/geometry/richgeo/IrtGeoDRICH.cc b/src/services/geometry/richgeo/IrtGeoDRICH.cc index 4c984d8e87..c31fa90397 100644 --- a/src/services/geometry/richgeo/IrtGeoDRICH.cc +++ b/src/services/geometry/richgeo/IrtGeoDRICH.cc @@ -196,9 +196,11 @@ TVector3 richgeo::IrtGeoDRICH::GetSensorSurfaceNorm(CellIDType id){ sensorNorm.SetY(static_cast(normZdir.y())); sensorNorm.SetZ(static_cast(normZdir.z())); } - else + else{ + throw std::runtime_error("sensor not found in IrtGeoDRIC::GetSensorSurfaceNormal"); m_log->error("Cannot find sensor {} in IrtGeoDRICH::GetSensorSurface", id); - //std::cout<