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