30 #include "P6DExtDecayerPhysics.hh" 33 #include "GunPrimaryGeneratorAction.hh" 35 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "QGSP_BERT.hh" 38 #include "G4ThreeVector.hh" 39 #include "G4SystemOfUnits.hh" 41 #include "G4VisExecutive.hh" 42 #include "G4UIExecutive.hh" 44 #include "Randomize.hh" 46 int main(
int argc,
char** argv)
50 G4UIExecutive* ui = 0;
52 ui =
new G4UIExecutive(argc, argv);
57 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
61 G4RunManager * runManager =
new G4RunManager;
68 G4VModularPhysicsList* physicsList =
new QGSP_BERT;
69 physicsList->RegisterPhysics(
new P6DExtDecayerPhysics());
70 runManager->SetUserInitialization(physicsList);
74 runManager->SetUserAction(
75 new GunPrimaryGeneratorAction(
"B-", 50.*MeV));
80 G4VisManager* visManager =
new G4VisExecutive;
83 visManager->Initialize();
86 G4UImanager* UImanager = G4UImanager::GetUIpointer();
92 G4String command =
"/control/execute ";
94 UImanager->ApplyCommand(command+fileName);
98 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)