diff --git a/DCHdigi/src/DCHdigi_v01.cpp b/DCHdigi/src/DCHdigi_v01.cpp index 0ec1742..8809072 100644 --- a/DCHdigi/src/DCHdigi_v01.cpp +++ b/DCHdigi/src/DCHdigi_v01.cpp @@ -29,7 +29,12 @@ StatusCode DCHdigi_v01::initialize() { if (!m_uidSvc) ThrowException("Unable to get UniqueIDGenSvc"); + if( 0 > m_z_resolution.value() ) + ThrowException("Z resolution input value can not be negative!"); m_gauss_z_cm = std::normal_distribution(0., m_z_resolution.value() * MM_TO_CM); + + if( 0 > m_xy_resolution.value() ) + ThrowException("Radial (XY) resolution input value can not be negative!"); m_gauss_xy_cm = std::normal_distribution(0., m_xy_resolution.value() * MM_TO_CM); //-----------------