33 #include "G4RunManager.hh" 34 #include "G4UImanager.hh" 35 #include "Randomize.hh" 40 #include "SteppingVerbose.hh" 43 #include "SteppingAction.hh" 46 #include "G4VisExecutive.hh" 50 #include "G4UIExecutive.hh" 55 int main(
int argc,
char** argv) {
58 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
61 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
64 G4RunManager * runManager =
new G4RunManager;
75 runManager->SetUserAction(run =
new RunAction(det,prim));
76 runManager->SetUserAction(
new SteppingAction(det,run));
79 G4UImanager* UI = G4UImanager::GetUIpointer();
83 G4String command =
"/control/execute ";
85 UI->ApplyCommand(command+fileName);
91 G4VisManager* visManager =
new G4VisExecutive;
92 visManager->Initialize();
96 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
int main(int argc, char **argv)