38 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 41 #include "H02DetectorConstruction.hh" 42 #include "FTFP_BERT.hh" 43 #include "H02PrimaryGeneratorAction.hh" 44 #include "H02EventAction.hh" 45 #include "H02SteppingAction.hh" 47 #include "G4VisExecutive.hh" 48 #include "G4UIExecutive.hh" 50 int main(
int argc,
char** argv)
53 G4UIExecutive* ui =
nullptr;
55 ui =
new G4UIExecutive(argc, argv);
58 G4RunManager* runManager=
new G4RunManager;
62 G4VUserDetectorConstruction* detector =
new H02DetectorConstruction;
63 runManager-> SetUserInitialization(detector);
65 G4VUserPhysicsList* physics =
new FTFP_BERT;
66 runManager-> SetUserInitialization(physics);
72 G4VUserPrimaryGeneratorAction* gen_action =
new H02PrimaryGeneratorAction;
73 runManager-> SetUserAction(gen_action);
75 G4UserEventAction* event_action =
new H02EventAction;
76 runManager-> SetUserAction(event_action);
78 G4UserSteppingAction* stepping_action =
new H02SteppingAction;
79 runManager-> SetUserAction(stepping_action);
81 G4VisManager* visManager=
new G4VisExecutive;
86 G4UImanager* UImanager = G4UImanager::GetUIpointer();
89 visManager-> SetVerboseLevel(
"quiet");
90 G4String command =
"/control/execute ";
92 UImanager-> ApplyCommand(command+fileName);
int main(int argc, char **argv)