Skip to content

Commit

Permalink
exception thrown when sensor not found
Browse files Browse the repository at this point in the history
  • Loading branch information
chchatte92 committed Oct 25, 2023
1 parent 77edde9 commit 66e5038
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/geometry/richgeo/IrtGeoDRICH.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,11 @@ TVector3 richgeo::IrtGeoDRICH::GetSensorSurfaceNorm(CellIDType id){
sensorNorm.SetY(static_cast<double>(normZdir.y()));
sensorNorm.SetZ(static_cast<double>(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<<sensorNorm.X()<<std::endl;
}
//std::cout<<sensorNorm.X()<<std::endl;
return sensorNorm;
}
// destructor
Expand Down

0 comments on commit 66e5038

Please sign in to comment.