35 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "Randomize.hh" 43 #include "EventAction.hh" 44 #include "StackingAction.hh" 46 #include "G4UIExecutive.hh" 47 #include "G4VisExecutive.hh" 51 int main(
int argc,
char** argv)
55 G4UIExecutive* ui =
nullptr;
56 if (argc == 1) ui =
new G4UIExecutive(argc,argv);
59 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
62 G4RunManager * runManager =
new G4RunManager;
71 runManager->SetUserInitialization(detector);
72 runManager->SetUserInitialization(
new PhysicsList(detector));
78 runManager->SetUserAction(runAction);
80 EventAction* eventAction =
new EventAction(runAction);
81 runManager->SetUserAction(eventAction);
83 runManager->SetUserAction(
new StackingAction );
86 G4VisManager* visManager =
nullptr;
89 G4UImanager* UImanager = G4UImanager::GetUIpointer();
93 visManager =
new G4VisExecutive;
94 visManager->Initialize();
100 G4String command =
"/control/execute ";
102 UImanager->ApplyCommand(command+fileName);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList
int main(int argc, char **argv)