34 #include "G4RunManager.hh" 35 #include "G4UImanager.hh" 36 #include "Randomize.hh" 43 #include "SteppingAction.hh" 44 #include "SteppingVerbose.hh" 45 #include "StackingAction.hh" 46 #include "HistoManager.hh" 48 #include "G4UIExecutive.hh" 49 #include "G4VisExecutive.hh" 53 int main(
int argc,
char** argv) {
56 G4UIExecutive* ui =
nullptr;
57 if (argc == 1) ui =
new G4UIExecutive(argc,argv);
60 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
63 G4RunManager * runManager =
new G4RunManager;
72 HistoManager* histo =
new HistoManager();
76 runManager->SetUserAction(run =
new RunAction(det,prim,histo));
77 runManager->SetUserAction(
new SteppingAction(run,histo));
78 runManager->SetUserAction(
new StackingAction);
81 G4VisManager* visManager =
nullptr;
84 G4UImanager* UImanager = G4UImanager::GetUIpointer();
88 visManager =
new G4VisExecutive;
89 visManager->Initialize();
95 G4String command =
"/control/execute ";
97 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)