34 #include "G4RunManager.hh" 35 #include "G4UImanager.hh" 36 #include "Randomize.hh" 41 #include "SteppingVerbose.hh" 44 #include "SteppingAction.hh" 45 #include "StackingAction.hh" 48 #include "G4VisExecutive.hh" 52 #include "G4UIExecutive.hh" 57 int main(
int argc,
char** argv) {
60 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
63 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
66 G4RunManager * runManager =
new G4RunManager;
77 runManager->SetUserAction(RunAct =
new RunAction(det));
78 runManager->SetUserAction(
new SteppingAction(RunAct));
79 runManager->SetUserAction(
new StackingAction);
82 G4UImanager* UI = G4UImanager::GetUIpointer();
86 G4String command =
"/control/execute ";
88 UI->ApplyCommand(command+fileName);
94 G4VisManager* visManager =
new G4VisExecutive;
95 visManager->Initialize();
99 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
int main(int argc, char **argv)