55 #include "G4RunManager.hh" 56 #include "G4UImanager.hh" 57 #include "G4PhysListFactory.hh" 58 #include "G4VModularPhysicsList.hh" 59 #include "IORTEventAction.hh" 60 #include "IORTPhysicsList.hh" 61 #include "IORTPrimaryGeneratorAction.hh" 62 #include "IORTRunAction.hh" 63 #include "Randomize.hh" 64 #include "G4RunManager.hh" 65 #include "G4UImessenger.hh" 67 #include "IORTSteppingAction.hh" 68 #include "IORTGeometryController.hh" 69 #include "IORTGeometryMessenger.hh" 70 #include "G4VisExecutive.hh" 71 #include "G4UIExecutive.hh" 73 #include "G4ScoringManager.hh" 77 int main(
int argc ,
char ** argv)
80 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine());
85 G4RunManager* runManager =
new G4RunManager;
87 G4ScoringManager::GetScoringManager();
93 IORTGeometryController *geometryController =
new IORTGeometryController();
96 IORTGeometryMessenger *geometryMessenger =
new IORTGeometryMessenger(geometryController);
99 geometryController->SetGeometry(
"default");
101 runManager->SetUserInitialization(
new IORTPhysicsList());
104 IORTPrimaryGeneratorAction *pPrimaryGenerator =
new IORTPrimaryGeneratorAction();
105 runManager -> SetUserAction(pPrimaryGenerator);
108 IORTRunAction* pRunAction =
new IORTRunAction();
109 runManager -> SetUserAction(pRunAction);
111 IORTEventAction* pEventAction =
new IORTEventAction();
112 runManager -> SetUserAction(pEventAction);
114 IORTSteppingAction* steppingAction =
new IORTSteppingAction(pRunAction);
115 runManager -> SetUserAction(steppingAction);
118 G4VisManager* visManager =
new G4VisExecutive;
121 G4UImanager* UImanager = G4UImanager::GetUIpointer();
124 G4String command =
"/control/execute ";
126 UImanager->ApplyCommand(command+fileName);
131 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
133 UImanager->ApplyCommand(
"/control/execute defaultMacro.mac");
143 delete geometryMessenger;
144 delete geometryController;
int main(int argc, char **argv)