35 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "Randomize.hh" 44 #include "SteppingAction.hh" 45 #include "SteppingVerbose.hh" 46 #include "StackingAction.hh" 47 #include "HistoManager.hh" 50 #include "G4VisExecutive.hh" 54 #include "G4UIExecutive.hh" 59 int main(
int argc,
char** argv) {
62 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
65 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
68 G4RunManager * runManager =
new G4RunManager;
77 HistoManager* histo =
new HistoManager();
81 runManager->SetUserAction(run =
new RunAction(det,prim,histo));
82 runManager->SetUserAction(
new SteppingAction(run,histo));
83 runManager->SetUserAction(
new StackingAction);
88 G4String command =
"/control/execute ";
90 G4UImanager::GetUIpointer()->ApplyCommand(command+fileName);
94 G4VisManager* visManager =
new G4VisExecutive;
95 visManager->Initialize();
99 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
int main(int argc, char **argv)