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5 ] [ 10.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 include/       2024-12-05 15:16:16
Folder src/       2024-12-05 15:16:16
File CMakeLists.txt 2199 bytes       2024-12-05 15:16:16
File GNUmakefile 227 bytes       2024-12-05 15:16:16
File History 1142 bytes       2024-12-05 15:16:16
File README 1524 bytes       2024-12-05 15:16:16
File run1.mac 172 bytes       2024-12-05 15:16:16
C++ file userPrimaryGenerator.cc 3697 bytes       2024-12-05 15:16:16
File userPrimaryGenerator.in 100 bytes       2024-12-05 15:16:16
File userPrimaryGenerator.out 1873 bytes       2024-12-05 15:16:16
File vis.mac 2035 bytes       2024-12-05 15:16:16

  1 -------------------------------------------------------------------
  2 
  3      =========================================================
  4      Geant4 - an Object-Oriented Toolkit for Simulation in HEP
  5      =========================================================
  6 
  7                             userPrimaryGenerator 
  8                             --------------------
  9     
 10  The example shows how to create a primary event including several vertices and 
 11  several primary particles per vertex
 12 
 13  1- Geometry construction
 14     ---------------------
 15 
 16  It is a simple box which represents an 'infinite' homogeneous medium.
 17   
 18  2- Physics list
 19     ------------
 20 
 21  PhysicsList.cc defines only geantino and transportation process.
 22           
 23  3- Primary generator : several vertices and particles per event
 24     ------------------------------------------------------------
 25 
 26  vertex A and particle 1 : a geantino uniformly randomized on a cylinder surface.
 27  vertex B and particles 2 and 3 : symetric to vertex A.
 28 
 29  4- Visualisation
 30     -------------
 31  
 32  Visualization Manager is set in the main().
 33  Initialisation of the drawing is done via the commands
 34  /vis/.. in the macro vis.mac. This macro is automatically read from the main 
 35  in case of interactive running mode.
 36  
 37  5- How to start ?
 38     --------------
 39  
 40   - execute basic in 'batch' mode from macro files
 41   % basic   run1.mac
 42 
 43   - execute basic in 'interactive mode' with visualization
 44   % basic
 45   ....
 46   Idle>      ---> type your commands. For instance:
 47   Idle> /run/beamOn 1
 48   ....
 49   Idle> exit