36 #include "ExP01DetectorConstruction.hh" 37 #include "ExP01PrimaryGeneratorAction.hh" 38 #include "ExP01RunAction.hh" 39 #include "ExP01EventAction.hh" 40 #include "ExP01SteppingAction.hh" 41 #include "ExP01SteppingVerbose.hh" 43 #include "FTFP_BERT.hh" 45 #include "G4RunManager.hh" 46 #include "G4UImanager.hh" 49 #include "G4VisExecutive.hh" 53 #include "G4UIExecutive.hh" 58 int main(
int argc,
char** argv) {
61 G4VSteppingVerbose::SetInstance(
new ExP01SteppingVerbose);
64 G4RunManager * runManager =
new G4RunManager;
67 ExP01DetectorConstruction* ExP01detector =
new ExP01DetectorConstruction;
68 runManager->SetUserInitialization(ExP01detector);
70 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
71 runManager->SetUserInitialization(physicsList);
75 G4VisManager* visManager =
new G4VisExecutive;
76 visManager->Initialize();
80 runManager->SetUserAction(
new ExP01PrimaryGeneratorAction(ExP01detector));
81 runManager->SetUserAction(
new ExP01RunAction);
82 runManager->SetUserAction(
new ExP01EventAction);
83 runManager->SetUserAction(
new ExP01SteppingAction);
86 runManager->Initialize();
89 G4UImanager * UImanager = G4UImanager::GetUIpointer();
95 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
97 UImanager->ApplyCommand(
"/control/execute vis.mac");
106 G4String command =
"/control/execute ";
108 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)