67int main(
int argc,
char** argv) {
76 auto* theRunManager = G4RunManagerFactory::CreateRunManager(G4RunManagerType::SerialOnly);
83 theRunManager->SetUserInitialization(detector);
89 theRunManager->SetUserAction(theRunAction);
95 = G4AdjointSimManager::GetInstance();
100 theAdjointSimManager->SetAdjointRunAction(theRunAction);
106 visManager->Initialize();
109 G4UImanager* UImanager = G4UImanager::GetUIpointer();
113 G4String command =
"/control/execute ";
115 UImanager->ApplyCommand(command+fileName);
125 delete theRunManager;