32 #include "G4RunManager.hh" 33 #include "G4UImanager.hh" 34 #include "Randomize.hh" 39 #include "SteppingVerbose.hh" 42 #include "SteppingAction.hh" 44 #include "G4UIExecutive.hh" 45 #include "G4VisExecutive.hh" 49 int main(
int argc,
char** argv) {
52 G4UIExecutive* ui =
nullptr;
53 if (argc == 1) ui =
new G4UIExecutive(argc,argv);
56 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
59 G4RunManager * runManager =
new G4RunManager;
70 runManager->SetUserAction(run =
new RunAction(det,prim));
71 runManager->SetUserAction(
new SteppingAction(det,run));
74 G4VisManager* visManager =
nullptr;
77 G4UImanager* UImanager = G4UImanager::GetUIpointer();
81 visManager =
new G4VisExecutive;
82 visManager->Initialize();
88 G4String command =
"/control/execute ";
90 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)