Geant4 Cross Reference |
1 ------------------------------------------------------------------- 2 3 ========================================================= 4 Geant4 - an Object-Oriented Toolkit for Simulation in HEP 5 ========================================================= 6 7 HepMCEx02 8 --------- 9 10 This example demonstrates how to interface primary particles in Geant4 11 with various event generators via the HepMC Monte Carlo event interface. 12 This is another example having the same generator action as HepMCEx01, 13 but much simpler user control. 14 15 1. Primary Generator 16 17 H02PrimaryGeneratorAction has HepMCG4Interface as the generator. 18 There are two types of generators provided as samples. One generator reads 19 primary information from a HepMC Ascii file (data/example_MyPythia.dat). 20 The other one generates primaries directly invoking PYTHIA routines 21 in every event. 22 23 2. Geometry 24 25 A simplified collider-type geometry, which consists of 26 - endcap calorimeter (a set of tubes filled with lead), 27 - barrel calorimeter (tube filled with lead), 28 - barrel muon detector (8 sets of plates filled with Ar), 29 - endcap muon detecror, (a set of tubes filled with Ar) and 30 - uniform magnetic field along the z axis of 3 Tesla at the 31 central region. 32 33 3. Physics List 34 35 FTFP_BERT predefined physics list 36 37 4. User actions 38 39 All particles except muons are killed in the calorimeter section. 40 41 5. Installation 42 43 See HepMC/README how to build this example. 44 45 6. Execution 46 47 % HepMCEx02 hepmc_pygen.in 48