5 * Revision 1.1.1.1 1995/10/24 10:21:22 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.21 by S.Giani
14 C. ******************************************************************
16 C. * Simulates discrete hard BREMSSTRAHLUNG by muons. *
19 C. * ==>Called by : GTMUON *
20 C. * Author L.Urban ********* *
22 C. ******************************************************************
24 #include "geant321/gcbank.inc"
25 #include "geant321/gcphys.inc"
26 #include "geant321/gconsp.inc"
27 #include "geant321/gctrak.inc"
28 #include "geant321/gcjloc.inc"
29 #include "geant321/gckine.inc"
30 #include "geant321/gcking.inc"
31 #include "geant321/gccuts.inc"
34 C. ------------------------------------------------------------------
36 C Ensure cut-off avoids infra-red catastrophe.
39 IF (GEKIN.LE.BCUTM) GO TO 900
54 C Compute rejection function
57 F1 = C1-LOG(1.+CREJ*V/V1)
58 SCREJ= (V1+0.75*V*V)*F1/C1
59 IF(RNDM(2).GT.SCREJ)GO TO 50
65 C CUT ON ENERGY THRESHOLD ?
67 IF((IBREM.NE.1).OR.(EGAMMA.LE.CUTGAM)) THEN
69 DESTEP = DESTEP + EGAMMA
73 C Generate emitted photon angles with respect to a Z-axis
74 C defined along parent track. PHI is generated isotropically
75 C and THETA is assigned a universal angular distribution
77 THETA = GBTETH(EEM1, AMASS, V)*AMASS/EEM1
85 C Polar co-ordinates to momentum components.
88 GKIN(1,1)=EGAMMA*SINTH*COSPHI
89 GKIN(2,1)=EGAMMA*SINTH*SINPHI
90 GKIN(3,1)=EGAMMA*COSTH
98 C Rotate photon into GEANT system
100 CALL GVROT(VECT(4),GKIN)
102 C Correct track for lost energy
105 GEKIN = GEKIN - EGAMMA
106 GETOT = GEKIN + AMASS
107 VECT(7)=SQRT (ABS((GETOT+AMASS)*GEKIN))
110 C Update probabilities
112 900 CALL GRNDM(RNDM,1)