fixed a few little things

This commit is contained in:
Jan Kieseler
2023-10-07 11:10:57 +02:00
parent 5718c8b9f1
commit 34a0305601
6 changed files with 39 additions and 16 deletions
+5 -4
View File
@@ -9,6 +9,11 @@ void G4System::init(ConstructionWrapper &CW){
if(CW.isAssigned()){
throw std::runtime_error("ConstructionWrapper already assigned");
}
if(assigned_cw != nullptr){
//reassign
assigned_cw->unAssign();
}
assigned_cw = &CW;
char* argv[]={(char*)"dummy"};
@@ -33,10 +38,6 @@ void G4System::init(ConstructionWrapper &CW){
//delete actionInitialization;
}
// save layers of CW to G4System class
G4System::cw = CW;
G4String session;
ui = nullptr;
if ( gui ) {