renamed
This commit is contained in:
+3
-3
@@ -4,10 +4,10 @@
|
||||
#include <G4NistManager.hh>
|
||||
#include <G4String.hh>
|
||||
|
||||
void G4System::init(ConstructionWrapper &CW){
|
||||
void G4System::init(GeometryDescriptor &CW){
|
||||
|
||||
if(CW.isAssigned()){
|
||||
throw std::runtime_error("ConstructionWrapper already assigned");
|
||||
throw std::runtime_error("GeometryDescriptor already assigned");
|
||||
}
|
||||
if(assigned_cw != nullptr){
|
||||
//reassign
|
||||
@@ -58,7 +58,7 @@ void G4System::init(ConstructionWrapper &CW){
|
||||
runManager->SetUserInitialization(actionInitialization);
|
||||
}
|
||||
else{
|
||||
detConstruction->setConstructionWrapper(&CW);
|
||||
detConstruction->setGeometryDescriptor(&CW);
|
||||
runManager->ReinitializeGeometry(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user