34 #include "G4RunManager.hh" 35 #include "G4UImanager.hh" 36 #include "Randomize.hh" 41 #include "SteppingVerbose.hh" 43 #include "G4UIExecutive.hh" 44 #include "G4VisExecutive.hh" 48 int main(
int argc,
char** argv) {
51 G4UIExecutive* ui = 0;
52 if (argc == 1) ui =
new G4UIExecutive(argc,argv);
55 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
58 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
61 G4RunManager * runManager =
new G4RunManager;
71 runManager->Initialize();
74 G4VisManager* visManager =
new G4VisExecutive;
75 visManager->Initialize();
78 G4UImanager* UImanager = G4UImanager::GetUIpointer();
82 UImanager->ApplyCommand(
"/control/execute vis.mac");
88 G4String command =
"/control/execute ";
90 UImanager->ApplyCommand(command+fileName);