46 #include "G4RunManager.hh" 47 #include "G4UImanager.hh" 48 #include "Randomize.hh" 51 #include "G4VisExecutive.hh" 55 #include "G4UIExecutive.hh" 61 #include "TrackingAction.hh" 68 int main(
int argc,
char** argv) {
71 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
74 G4RunManager * runManager =
new G4RunManager();
78 runManager->SetUserInitialization(det);
80 runManager->SetUserInitialization(
new PhysicsList());
84 runManager->SetUserAction(
new RunAction());
85 runManager->SetUserAction(
new TrackingAction());
88 G4UImanager* UImanager = G4UImanager::GetUIpointer();
91 G4VisManager* visManager =
new G4VisExecutive(
"Quiet");
92 visManager->Initialize();
98 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
100 UImanager->ApplyCommand(
"/control/execute vis.mac");
108 G4String command =
"/control/execute ";
110 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList