35 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "Randomize.hh" 43 #include "EventAction.hh" 44 #include "SteppingAction.hh" 45 #include "SteppingVerbose.hh" 46 #include "StackingAction.hh" 49 #include "G4VisExecutive.hh" 53 #include "G4UIExecutive.hh" 58 int main(
int argc,
char** argv) {
61 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
64 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
67 G4RunManager * runManager =
new G4RunManager;
72 runManager->SetUserInitialization(detector);
73 runManager->SetUserInitialization(
new PhysicsList());
79 runManager->SetUserAction(primary);
83 runManager->SetUserAction(runaction);
86 EventAction* eventaction =
new EventAction(runaction);
87 runManager->SetUserAction(eventaction);
90 SteppingAction* steppingaction =
new SteppingAction(runaction, eventaction);
91 runManager->SetUserAction(steppingaction);
94 StackingAction* stackingaction =
new StackingAction(runaction, eventaction);
95 runManager->SetUserAction(stackingaction);
98 G4UImanager* UI = G4UImanager::GetUIpointer();
102 G4String command =
"/control/execute ";
104 UI->ApplyCommand(command+fileName);
110 G4VisManager* visManager =
new G4VisExecutive;
111 visManager->Initialize();
115 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList
int main(int argc, char **argv)