Warning, /geant4/examples/extended/physicslists/factory/README is written in an unsupported language. File is not indexed.
0001 =========================================================
0002 Geant4 - an Object-Oriented Toolkit for Simulation in HEP
0003 =========================================================
0004
0005
0006 Example factory
0007
0008 I. Hrivnacova,
0009 Institut de Physique Nucléaire (IPNO), Université Paris-Sud, CNRS-IN2P3
0010 Based on Hadr00 by V. Ivantchenko, CERN
0011
0012
0013 Examples in the physicslist category show the possible ways how to define
0014 a physics list from Geant4 physics constructors. This example demonstrates
0015 the usage of G4PhysListFactory to build the concrete physics list.
0016
0017 Physics List can be defined by its name given by the -p argument of the of the
0018 run command or by the PHYSLIST environment variable.
0019
0020 ./factory -m run.mac [ -p QGSP_BERT ]
0021
0022 By default, FTFP_BERT Physics List will be instantiated if
0023 -p argument is not set and the PHYSLIST environment variable is not defined.
0024
0025 The same experimental setup is used for all examples in the physicslist category:
0026
0027 1- Detector description
0028 -----------------------
0029
0030 The geometry (defined in the DetectorConstruction class) consists in a box of scintillator material (CsI) followed by a thin box of air (screen) which is used to simplify scoring.
0031
0032
0033 2- Primary generator
0034 --------------------
0035
0036 The primary generator is defined with usage of G4ParticleGun.
0037 The default particle is proton which hits the box perpendicular to the input face.
0038 The type of the particle and its energy are set in the PrimaryGeneratorAction class, and can
0039 be changed via the G4 built-in commands of the G4ParticleGun class.
0040
0041
0042 3- Scoring (ntuples)
0043 --------------------
0044
0045 The screen volume is associated with a sensitive detector, ScreenSD,
0046 which accounts the following particle properties:
0047 - trackID
0048 - particle PDG encoding
0049 - particle kinetic energy
0050 - particle X,Y position
0051 - particle time
0052
0053 The scored quantities are filled in the Screen ntuple, which is defined using G4AnalysisManager
0054 in RunAction class. The ntuple is saved in a Root file, which name is set to be equal to the
0055 example name in main () function.
0056
0057 4- How to build
0058 ----------------
0059
0060 An additional step is needed when building the example with GNUmake
0061 due to using the extra shared directory:
0062 % cd path_to_example/example
0063 % gmake setup
0064 % gmake
0065
0066 This will copy the files from shared in the example include and src;
0067 to remove these files:
0068 % gmake clean_setup
0069