Warning, /geant4/examples/extended/eventgenerator/userPrimaryGenerator/README.md is written in an unsupported language. File is not indexed.
0001 \page ExampleuserPrimaryGenerator Example userPrimaryGenerator
0002
0003 The example shows how to create a primary event including several vertices and
0004 several primary particles per vertex
0005
0006 ## Geometry construction
0007
0008 It is a simple box which represents an 'infinite' homogeneous medium.
0009
0010 ## Physics list
0011
0012 PhysicsList defines only geantino and transportation process.
0013
0014 ## Primary generator : several vertices and particles per event
0015
0016 - vertex A and particle 1 : a geantino uniformly randomized on a cylinder surface.
0017 - vertex B and particles 2 and 3 : symetric to vertex A.
0018
0019 ## Visualisation
0020
0021 Visualization Manager is set in the main().
0022 Initialisation of the drawing is done via the commands
0023 `/vis/..`` in the macro vis.mac. This macro is automatically read from the main
0024 in case of interactive running mode.
0025
0026 ## How to start ?
0027
0028 - execute userPrimaryGenerator in 'batch' mode from macro files
0029 ```
0030 % ./userPrimaryGenerator run1.mac
0031 ```
0032
0033 - execute userPrimaryGenerator in 'interactive mode' with visualization
0034 ```
0035 % ./userPrimaryGenerator
0036 ....
0037 Idle> ---> type your commands. For instance:
0038 Idle> /run/beamOn 1
0039 ....
0040 Idle> exit
0041 ```