Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/physicslists/factory/README.md is written in an unsupported language. File is not indexed.

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