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.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 2359 bytes       2024-12-05 15:16:16
File GNUmakefile 366 bytes       2024-12-05 15:16:16
File History 733 bytes       2024-12-05 15:16:16
File README 3312 bytes       2024-12-05 15:16:16
C++ file exampleGB07.cc 7293 bytes       2024-12-05 15:16:16
File exampleGB07.in 145 bytes       2024-12-05 15:16:16
File exampleGB07.out 85556 bytes       2024-12-05 15:16:16
File vis.mac 1941 bytes       2024-12-05 15:16:16

  1                 Example GB07 : leading particle biasing
  2                 ----------------------------------------
  3 
  4     This example illustrates how to use the leading particle biasing option.
  5 
  6     It uses the G4BOptnLeadingParticle biasing operation located in:
  7 
  8                      source/processes/biasing/generic ,
  9 
 10 and defines the following biasing operation to handle it:
 11 
 12                         GB07OptrLeadingParticle.
 13 
 14     As a reminder, the generic biasing scheme consists of a G4VBiasingOperator
 15 that takes decisions on what sort of biasing technique to be applied. The
 16 techniques are called biasing operations, represented by the G4VBiasingOperation
 17 class. The operator is attached to a logical volume in which the biasing must
 18 happen. Decisions are made on requests of the G4BiasingProcessInterface process
 19 that messages the operator when the track is travelling in the volume. To equip
 20 the phyics list with this process, the G4GenericBiasingPhysics physics
 21 constructor is used. In this example, several processes -to which the technique
 22 is applied- are wrapped by this process to control their final state production
 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 to which an instance of
 31       GB07OptrLeadingParticle is attached,
 32     - a thin volume placed after the above volume, that is used to tally the
 33       particles exiting biasing volume.
 34     - a sensitive detector is attached to the thin volume to simply print the
 35       particles entering here. In particular the statistical weight is printed,
 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 leading particle biasing are
 45 visible in the main program exampleGB07.cc, these are:
 46 
 47         pi+ and pi-,            inelastic process,
 48   proton and anti-proton, inelastic process,
 49   neutron,                inelastic and capture processes,
 50   anti-neutron,           inelastic process,
 51 
 52   gamma,                  conversion and photonNuclear processes,
 53   electron,               electronNuclear process,
 54   positron,               annihilation and positronNuceal processes,
 55 
 56   pi0,                    decay process.
 57 
 58     For the inelastic and lepto/gamma-nuclear processes, leading particle is applied in a rather
 59 classical way:
 60       - keep the leading particle,
 61   - keep one particle of each species (particles and anti-particles are considered a one
 62 species, and all hadrons with Z>=2 are counted as one species too).
 63     For e+, e-, gamma and pi0 processes (which means in practice main conversion, annihililation
 64 and pi0 decay processes), the leading particle is kept, and the companion track(s) is(are) randomly
 65 kept/killed under a Russian roulette, with a 2/3 killing probabilty. See
 66 GB07BOptrLeadingParticle::StartTracking( ... ) for this killing probability setting.
 67 
 68 
 69 Running the program:
 70 --------------------
 71 
 72     The program can be run in batch or interactive mode and has the following options:
 73 
 74 in batch:
 75             ./exampleGB07 [-m macro ]  [-b biasing {'on' = default,'off'}]
 76                     or
 77         ./exampleGB07 [macro.mac]
 78 interactive:
 79                     ./exampleGB07 [-b biasing {'on' = default,'off'}]
 80 
 81 
 82 
 83 
 84