Geant4 Cross Reference |
1 Example GB07 : leading particl 2 ------------------------------ 3 4 This example illustrates how to use the le 5 6 It uses the G4BOptnLeadingParticle biasing 7 8 source/processes/biasing/ 9 10 and defines the following biasing operation to 11 12 GB07OptrLeadingParticl 13 14 As a reminder, the generic biasing scheme 15 that takes decisions on what sort of biasing t 16 techniques are called biasing operations, repr 17 class. The operator is attached to a logical v 18 happen. Decisions are made on requests of the 19 that messages the operator when the track is t 20 the phyics list with this process, the G4Gener 21 constructor is used. In this example, several 22 is applied- are wrapped by this process to con 23 for applying the biasing technique. 24 25 26 Geometry: 27 --------- 28 29 The geometry is simply : 30 - a volume in which the biasing occurs and 31 GB07OptrLeadingParticle is attached, 32 - a thin volume placed after the above vol 33 particles exiting biasing volume. 34 - a sensitive detector is attached to the 35 particles entering here. In particular t 36 this one is obtained by: 37 38 w = track->GetWeight() 39 40 41 Biasing configuration: 42 ---------------------- 43 44 The particle types and processes under the 45 visible in the main program exampleGB07.cc, th 46 47 pi+ and pi-, inelastic proc 48 proton and anti-proton, inelastic process, 49 neutron, inelastic and captur 50 anti-neutron, inelastic process, 51 52 gamma, conversion and photo 53 electron, electronNuclear proc 54 positron, annihilation and pos 55 56 pi0, decay process. 57 58 For the inelastic and lepto/gamma-nuclear 59 classical way: 60 - keep the leading particle, 61 - keep one particle of each species (particl 62 species, and all hadrons with Z>=2 are counted 63 For e+, e-, gamma and pi0 processes (which 64 and pi0 decay processes), the leading particle 65 kept/killed under a Russian roulette, with a 2 66 GB07BOptrLeadingParticle::StartTracking( ... ) 67 68 69 Running the program: 70 -------------------- 71 72 The program can be run in batch or interac 73 74 in batch: 75 ./exampleGB07 [-m macro ] [-b bia 76 or 77 ./exampleGB07 [macro.mac] 78 interactive: 79 ./exampleGB07 [-b biasing 80 81 82 83 84