35 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "Randomize.hh" 42 #include "SteppingVerbose.hh" 45 #include "G4VisExecutive.hh" 49 #include "G4UIExecutive.hh" 54 int main(
int argc,
char** argv) {
57 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
60 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
63 G4RunManager * runManager =
new G4RunManager;
73 runManager->Initialize();
76 G4UImanager* UI = G4UImanager::GetUIpointer();
80 G4String command =
"/control/execute ";
82 UI->ApplyCommand(command+fileName);
88 G4VisManager* visManager =
new G4VisExecutive;
89 visManager->Initialize();
93 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
95 UI->ApplyCommand(
"/control/execute vis.mac");