Main program of the electromagnetic/TestEm18 example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
#include "PrimaryGeneratorAction.hh"
#include "RunAction.hh"
#include "EventAction.hh"
#include "SteppingAction.hh"
#include "SteppingVerbose.hh"
#include "StackingAction.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the electromagnetic/TestEm18 example.
Definition in file TestEm18.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 58 of file TestEm18.cc.
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