35 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 43 #include "G4UIExecutive.hh" 47 int main(
int argc,
char** argv) {
50 G4UIExecutive* ui = 0;
51 if (argc == 1) ui =
new G4UIExecutive(argc,argv);
54 G4RunManager * runManager =
new G4RunManager;
64 runManager->SetUserAction(
new RunAction(det,prim));
67 G4UImanager* UImanager = G4UImanager::GetUIpointer();
76 G4String command =
"/control/execute ";
78 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)