33 #include "G4RunManager.hh" 34 #include "G4UImanager.hh" 35 #include "Randomize.hh" 40 #include "SteppingVerbose.hh" 43 #include "SteppingAction.hh" 44 #include "StackingAction.hh" 46 #include "G4UIExecutive.hh" 47 #include "G4VisExecutive.hh" 51 int main(
int argc,
char** argv) {
54 G4UIExecutive* ui =
nullptr;
55 if (argc == 1) ui =
new G4UIExecutive(argc,argv);
58 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
61 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
64 G4RunManager * runManager =
new G4RunManager;
75 runManager->SetUserAction(RunAct =
new RunAction(det));
76 runManager->SetUserAction(
new SteppingAction(RunAct));
77 runManager->SetUserAction(
new StackingAction);
80 G4VisManager* visManager =
nullptr;
83 G4UImanager* UImanager = G4UImanager::GetUIpointer();
87 visManager =
new G4VisExecutive;
88 visManager->Initialize();
94 G4String command =
"/control/execute ";
96 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)