31 #include "P6DExtDecayerPhysics.hh" 33 #include "ExG4DetectorConstruction01.hh" 34 #include "ExG4PrimaryGeneratorAction01.hh" 35 #include "ExG4RunAction01.hh" 36 #include "ExG4EventAction01.hh" 38 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 40 #include "G4ThreeVector.hh" 41 #include "QGSP_BERT.hh" 42 #include "G4SystemOfUnits.hh" 45 #include "G4VisExecutive.hh" 49 #include "G4UIExecutive.hh" 52 #include "Randomize.hh" 54 int main(
int argc,
char** argv)
58 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
62 G4RunManager * runManager =
new G4RunManager;
66 runManager->SetUserInitialization(
new ExG4DetectorConstruction01);
69 G4VModularPhysicsList* physicsList =
new QGSP_BERT;
70 physicsList->RegisterPhysics(
new P6DExtDecayerPhysics());
71 runManager->SetUserInitialization(physicsList);
76 runManager->SetUserAction(
77 new ExG4PrimaryGeneratorAction01(
"B-", 50.*MeV));
79 runManager->SetUserAction(
new ExG4RunAction01);
80 runManager->SetUserAction(
new ExG4EventAction01);
82 runManager->Initialize();
86 G4VisManager* visManager =
new G4VisExecutive;
89 visManager->Initialize();
94 G4UImanager* UImanager = G4UImanager::GetUIpointer();
98 G4String command =
"/control/execute ";
100 UImanager->ApplyCommand(command+fileName);
104 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
106 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
108 UImanager->ApplyCommand(
"/control/execute init.mac");
int main(int argc, char **argv)