34 #include "G4RunManager.hh" 35 #include "G4UImanager.hh" 36 #include "Randomize.hh" 43 #include "EventAction.hh" 44 #include "SteppingAction.hh" 47 #include "G4VisExecutive.hh" 51 #include "G4UIExecutive.hh" 56 int main(
int argc,
char** argv) {
60 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanluxEngine());
63 G4RunManager * runManager =
new G4RunManager;
73 G4VisManager* visManager = 0;
78 runManager->SetUserAction(run =
new RunAction(det,prim));
79 runManager->SetUserAction(
new EventAction(run));
80 runManager->SetUserAction(
new SteppingAction(det,prim,run));
83 G4UImanager* UImanager = G4UImanager::GetUIpointer();
88 visManager =
new G4VisExecutive;
89 visManager->Initialize();
92 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
99 G4String command =
"/control/execute ";
101 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)