36 #include "G4RunManager.hh" 37 #include "G4UImanager.hh" 38 #include "Randomize.hh" 44 #include "EventAction.hh" 45 #include "StackingAction.hh" 48 #include "G4VisExecutive.hh" 52 #include "G4UIExecutive.hh" 57 int main(
int argc,
char** argv)
62 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
66 G4RunManager * runManager =
new G4RunManager;
76 runManager->SetUserInitialization(detector);
77 runManager->SetUserInitialization(
new PhysicsList(detector));
83 runManager->SetUserAction(runAction);
85 EventAction* eventAction =
new EventAction(runAction);
86 runManager->SetUserAction(eventAction);
88 runManager->SetUserAction(
new StackingAction );
91 G4UImanager* UI = G4UImanager::GetUIpointer();
95 G4String command =
"/control/execute ";
97 UI->ApplyCommand(command+fileName);
103 G4VisManager* visManager =
new G4VisExecutive;
104 visManager->Initialize();
108 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList
int main(int argc, char **argv)