fixed assign problems probably

This commit is contained in:
Jan Kieseler
2024-01-25 10:44:39 +01:00
parent 96e0b94eb7
commit cb736850e7
3 changed files with 22 additions and 1 deletions
+3
View File
@@ -14,6 +14,9 @@ void G4System::init(GeometryDescriptor &CW){
if(CW.isAssigned()){
throw std::runtime_error("GeometryDescriptor already assigned");
}
if(CW.isEmpty()){
throw std::runtime_error("GeometryDescriptor is empty");
}
if(assigned_cw != nullptr){
//reassign
assigned_cw->unAssign();