diff --git a/LArCalorimeter/LArG4/LArG4H6SD/src/LArG4H6WarmTCSD.cc b/LArCalorimeter/LArG4/LArG4H6SD/src/LArG4H6WarmTCSD.cc index 20c296c9fabbe25b6e0a73d1a0efcfe442d12035..0e5c1b42152277a516743fac308a599b6fb324cb 100644 --- a/LArCalorimeter/LArG4/LArG4H6SD/src/LArG4H6WarmTCSD.cc +++ b/LArCalorimeter/LArG4/LArG4H6SD/src/LArG4H6WarmTCSD.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration */ #include "LArG4H6WarmTCSD.h" @@ -56,7 +56,7 @@ LArG4H6WarmTCSD::LArG4H6WarmTCSD(G4String name, G4String colname) m_CalibSD = ((LArG4CalibSD*)G4SDManager::GetSDMpointer()-> FindSensitiveDetector("TBEndcap::Dead")); if(!m_CalibSD) { std::cout << "LArG4H6WarmTCSD::LArG4H6WarmTCSD: could not find SD: TBEndcap::Dead !!!" << std::endl; - throw; + std::abort(); } } diff --git a/Tracking/TrkExtrapolation/TrkExTools/test/ObjContainer_test.cxx b/Tracking/TrkExtrapolation/TrkExTools/test/ObjContainer_test.cxx index 6ee2117228cac1bb6e164fa39d1489f284f10279..a71976794d6fa62905ada21c2633e4bd44b51d48 100644 --- a/Tracking/TrkExtrapolation/TrkExTools/test/ObjContainer_test.cxx +++ b/Tracking/TrkExtrapolation/TrkExTools/test/ObjContainer_test.cxx @@ -207,18 +207,18 @@ const TestObj *test7Helper(const TestObj &external_obj) { GuardedPtr nobj(GuardedPtr::recapture(empty,cloneObj(&external_obj))); GuardedPtr nobj2(GuardedPtr::recapture(empty,cloneObj(&external_obj))); if (nobj==nobj2) { - throw; + std::abort(); } if (nobj.index()==nobj2.index()) { - throw; + std::abort(); } GuardedPtr nobj3(nobj); if (nobj!=nobj3) { - throw; + std::abort(); } if (nobj.index()!=nobj3.index()) { - throw; + std::abort(); } nobj2=std::move(nobj);