37 #include "G4RunManager.hh" 38 #include "G4UImanager.hh" 40 #include "H02DetectorConstruction.hh" 41 #include "FTFP_BERT.hh" 42 #include "H02PrimaryGeneratorAction.hh" 43 #include "H02EventAction.hh" 44 #include "H02SteppingAction.hh" 47 #include "G4VisExecutive.hh" 51 #include "G4UIExecutive.hh" 54 int main(
int argc,
char** argv)
56 G4RunManager* runManager=
new G4RunManager;
60 G4VUserDetectorConstruction* detector =
new H02DetectorConstruction;
61 runManager-> SetUserInitialization(detector);
63 G4VUserPhysicsList* physics =
new FTFP_BERT;
64 runManager-> SetUserInitialization(physics);
70 G4VUserPrimaryGeneratorAction* gen_action =
new H02PrimaryGeneratorAction;
71 runManager-> SetUserAction(gen_action);
73 G4UserEventAction* event_action =
new H02EventAction;
74 runManager-> SetUserAction(event_action);
76 G4UserSteppingAction* stepping_action =
new H02SteppingAction;
77 runManager-> SetUserAction(stepping_action);
82 G4VisManager* visManager=
new G4VisExecutive;
88 G4UImanager* UImanager = G4UImanager::GetUIpointer();
92 visManager-> SetVerboseLevel(
"quiet");
94 G4String command =
"/control/execute ";
96 UImanager-> ApplyCommand(command+fileName);
99 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
int main(int argc, char **argv)