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.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 2397 bytes       2024-12-05 15:16:16
File GNUmakefile 659 bytes       2024-12-05 15:16:16
File History 1567 bytes       2024-12-05 15:16:16
File README 2408 bytes       2024-12-05 15:16:16
File factory-environment.out 44738 bytes       2024-12-05 15:16:16
C++ file factory.cc 6278 bytes       2024-12-05 15:16:16
File factory.out 45568 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 2263 bytes       2024-12-05 15:16:16

  1      =========================================================
  2      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
  3      =========================================================
  4 
  5 
  6                               Example factory
  7 
  8                              I. Hrivnacova,
  9 Institut de Physique Nucléaire (IPNO), Université Paris-Sud, CNRS-IN2P3
 10                   Based on Hadr00 by V. Ivantchenko, CERN
 11 
 12 
 13 Examples in the physicslist category show the possible ways how to define
 14 a physics list from Geant4 physics constructors. This example demonstrates
 15 the usage of G4PhysListFactory to build  the concrete physics list.
 16 
 17 Physics List can be defined by its name given by the -p argument of the of the
 18 run command or by  the PHYSLIST environment variable.
 19 
 20 ./factory -m run.mac [ -p QGSP_BERT ]
 21 
 22 By default, FTFP_BERT Physics List will be instantiated if
 23 -p argument is not set and the PHYSLIST environment variable is not defined.
 24 
 25 The same experimental setup is used for all examples in the physicslist category:
 26 
 27 1- Detector description
 28 -----------------------
 29 
 30 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.
 31 
 32 
 33 2- Primary generator
 34 --------------------
 35 
 36 The primary generator is defined with usage of G4ParticleGun.
 37 The default particle is proton which hits the box perpendicular to the input face.
 38 The type of the particle and its energy are set in the PrimaryGeneratorAction class, and can
 39 be changed via the G4 built-in commands of the G4ParticleGun class.
 40 
 41 
 42 3- Scoring (ntuples)
 43 --------------------
 44 
 45 The screen volume is associated with a sensitive detector, ScreenSD,
 46 which accounts the following particle properties:
 47 - trackID
 48 - particle PDG encoding
 49 - particle kinetic energy
 50 - particle X,Y position
 51 - particle time
 52 
 53 The scored quantities are filled in the Screen ntuple, which is defined using G4AnalysisManager
 54 in RunAction class. The ntuple is saved in a Root file, which name is set to be equal to the
 55 example name in main () function.
 56 
 57 4- How to build
 58 ----------------
 59 
 60 An additional step is needed when building the example with GNUmake
 61 due to using the extra shared directory:
 62  % cd path_to_example/example
 63  % gmake setup
 64  % gmake
 65 
 66 This will copy the files from shared in the example include and src;
 67 to remove these files:
 68  % gmake clean_setup
 69