Warning, /geant4/examples/extended/physicslists/genericPL/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 genericPL
0007
0008 W. Pokorski (1)
0009 I. Hrivnacova (2)
0010
0011 (1) CERN
0012 (2) Institut de Physique Nucléaire (IPNO), Université Paris-Sud
0013
0014
0015 Examples in the physicslist category show the possible ways how to define
0016 a physics list from Geant4 physics constructors. This example demonstrates
0017 the usage of G4GenericPhysicsList to build the concrete physics list at
0018 the run time.
0019
0020 In Geant4 versions < 10.4, the generic physics list was demonstrated in the
0021 extended/hadronic/Hadr05 example.
0022
0023 The G4GenericPhysicsList class allows to build the physics list at the run
0024 time in two possible ways, either by processing a macro file
0025 containing the 'physics list' or by passing a vector of 'physics
0026 constructors' names to the constructor of the class.
0027
0028 To run the example you can call
0029
0030 ./genericPL -m run.mac [ -p FTFP_BERT.mac ]
0031
0032 where FTFP_BERT.mac is the macro file containing the 'physics list'.
0033
0034 If you run this example by calling
0035
0036 ./genericPL -m run.mac
0037
0038 the physics list will be constructed by using a vector of the names of
0039 the different physics constructor defined in the genericPL.cc file.
0040
0041 The same experimental setup is used for all examples in the physicslist category:
0042
0043 1- Detector description
0044 -----------------------
0045
0046 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.
0047
0048
0049 2- Primary generator
0050 --------------------
0051
0052 The primary generator is defined with usage of G4ParticleGun.
0053 The default particle is proton which hits the box perpendicular to the input face.
0054 The type of the particle and its energy are set in the PrimaryGeneratorAction class, and can
0055 be changed via the G4 built-in commands of the G4ParticleGun class.
0056
0057
0058 3- Scoring (ntuples)
0059 --------------------
0060
0061 The screen volume is associated with a sensitive detector, ScreenSD,
0062 which accounts the following particle properties:
0063 - trackID
0064 - particle PDG encoding
0065 - particle kinetic energy
0066 - particle X,Y position
0067 - particle time
0068
0069 The scored quantities are filled in the Screen ntuple, which is defined using G4AnalysisManager
0070 in RunAction class. The ntuple is saved in a Root file, which name is set to be equal to the
0071 example name in main () function.
0072
0073 4- How to build
0074 ----------------
0075
0076 An additional step is needed when building the example with GNUmake
0077 due to using the extra shared directory:
0078 % cd path_to_example/example
0079 % gmake setup
0080 % gmake
0081
0082 This will copy the files from shared in the example include and src;
0083 to remove these files:
0084 % gmake clean_setup
0085