Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/errorpropagation/errProp/README.md is written in an unsupported language. File is not indexed.

0001 \page ExampleerrProp Example errProp
0002 
0003 This is an example illustrating the use of the error propagation utility.
0004 
0005 A G4ErrorFreeTrajState is created to simulate a muon track of 20 GeV along the X axis. Then the track is propagated until the target is reached.
0006 
0007 The geometry is a simplified typical HEP detector:
0008   - An air beamline ( BEAM )
0009   - An air central detector ( CDET )
0010   - A copper calorimeter, divided in four ( ECAL )
0011   - An aluminium calorimeter, divided in ten ( HCAL )
0012   - An air muon detector ( MUON )
0013 
0014 It is inmersed in a magnetic field along the Z axis with default value -1 kilogauss. This value can be changed with the command `/exerror/setField`.
0015 
0016 
0017 The type of target can be chosen with the enviromental variable G4ERROR_TARGET:
0018  - PLANE_SURFACE :  use a G4ErrorPlaneSurfaceTarget perpendicular to X at (2241. mm, 0, 0)
0019  - CYL_SURFACE : use a G4ErrorCylSurfaceTarget parallel to Z of radius 2220 mm
0020  - VOLUME : use a G4ErrorGeomVolumeTarget with volume name "MUON"
0021  - TRKLEN : use a G4ErrorTrackLengthTarget with track length 2230 mm
0022 
0023 
0024 The user may also choose if the propagation is done forwards (the natural way, loosing energy) or backwards (in opposite direction, gaining energy), with the enviromental variable G4ERROR_MODE:
0025  - FORWARDS : propagate in the forward direction
0026  - BACKWARDS : propagate in the backward direction
0027 
0028 
0029 There are also two modes of propagation, that can be chosen with the enviromental variable G4ERROR_PROP
0030  - UNTIL_TARGET : propagate until target, all steps in one go
0031  - STEP_BY_STEP  propagate until target, returning control to the user at each step