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.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Name Size       Last modified (GMT) Description
Back Parent directory       2024-12-05 15:16:16
Folder shared/       2024-12-05 15:16:16
File CMakeLists.txt 2382 bytes       2024-12-05 15:16:16
File FTFP_BERT.mac 451 bytes       2024-12-05 15:16:16
File GNUmakefile 661 bytes       2024-12-05 15:16:16
File History 1542 bytes       2024-12-05 15:16:16
File README 2831 bytes       2024-12-05 15:16:16
C++ file genericPL.cc 6314 bytes       2024-12-05 15:16:16
File genericPL.out 44750 bytes       2024-12-05 15:16:16
File init_vis.mac 351 bytes       2024-12-05 15:16:16
File run.mac 204 bytes       2024-12-05 15:16:16
File vis.mac 2104 bytes       2024-12-05 15:16:16

  1      =========================================================
  2      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
  3      =========================================================
  4 
  5 
  6                              Example genericPL
  7 
  8                               W. Pokorski (1)
  9                              I. Hrivnacova (2)
 10 
 11    (1) CERN
 12    (2) Institut de Physique Nucléaire (IPNO), Université Paris-Sud
 13 
 14 
 15 Examples in the physicslist category show the possible ways how to define
 16 a physics list from Geant4 physics constructors. This example demonstrates
 17 the usage of G4GenericPhysicsList to build  the concrete physics list at
 18 the run time.
 19 
 20 In Geant4 versions < 10.4, the generic physics list was demonstrated in the
 21 extended/hadronic/Hadr05 example.
 22 
 23 The G4GenericPhysicsList class allows to build the physics list at the run
 24 time in two possible ways, either by processing a macro file
 25 containing the 'physics list' or by passing a vector of 'physics
 26 constructors' names to the constructor of the class.
 27 
 28 To run the example you can call
 29 
 30 ./genericPL -m run.mac [ -p FTFP_BERT.mac ]
 31 
 32 where FTFP_BERT.mac is the macro file containing the 'physics list'.
 33 
 34 If you run this example by calling
 35 
 36 ./genericPL -m run.mac
 37 
 38 the physics list will be constructed by using a vector of the names of
 39 the different physics constructor defined in the genericPL.cc file.
 40 
 41 The same experimental setup is used for all examples in the physicslist category:
 42 
 43 1- Detector description
 44 -----------------------
 45 
 46 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.
 47 
 48 
 49 2- Primary generator
 50 --------------------
 51 
 52 The primary generator is defined with usage of G4ParticleGun.
 53 The default particle is proton which hits the box perpendicular to the input face.
 54 The type of the particle and its energy are set in the PrimaryGeneratorAction class, and can
 55 be changed via the G4 built-in commands of the G4ParticleGun class.
 56 
 57 
 58 3- Scoring (ntuples)
 59 --------------------
 60 
 61 The screen volume is associated with a sensitive detector, ScreenSD,
 62 which accounts the following particle properties:
 63 - trackID
 64 - particle PDG encoding
 65 - particle kinetic energy
 66 - particle X,Y position
 67 - particle time
 68 
 69 The scored quantities are filled in the Screen ntuple, which is defined using G4AnalysisManager
 70 in RunAction class. The ntuple is saved in a Root file, which name is set to be equal to the
 71 example name in main () function.
 72 
 73 4- How to build
 74 ----------------
 75 
 76 An additional step is needed when building the example with GNUmake
 77 due to using the extra shared directory:
 78  % cd path_to_example/example
 79  % gmake setup
 80  % gmake
 81 
 82 This will copy the files from shared in the example include and src;
 83 to remove these files:
 84  % gmake clean_setup
 85