34 #include "G4RunManager.hh" 35 #include "G4UImanager.hh" 36 #include "Randomize.hh" 43 #include "TrackingAction.hh" 44 #include "SteppingAction.hh" 45 #include "SteppingVerbose.hh" 48 #include "G4VisExecutive.hh" 52 #include "G4UIExecutive.hh" 57 int main(
int argc,
char** argv) {
60 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
63 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
66 G4RunManager * runManager =
new G4RunManager;
73 runManager->SetUserInitialization(det);
74 runManager->SetUserInitialization(phys);
80 TrackingAction*
track =
new TrackingAction(det,run);
81 SteppingAction* step =
new SteppingAction(det,run);
83 runManager->SetUserAction(kin);
84 runManager->SetUserAction(run);
85 runManager->SetUserAction(track);
86 runManager->SetUserAction(step);
89 G4UImanager* UI = G4UImanager::GetUIpointer();
93 G4String command =
"/control/execute ";
95 UI->ApplyCommand(command+fileName);
101 G4VisManager* visManager =
new G4VisExecutive;
102 visManager->Initialize();
106 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
int main(int argc, char **argv)
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList