This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / gphys / gbrsgm.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1995/10/24 10:21:22  cernlib
6 * Geant
7 *
8 *
9 #include "geant321/pilot.h"
10 *CMZ :  3.21/02 29/03/94  15.41.21  by  S.Giani
11 *-- Author :
12       FUNCTION GBRSGM(Z,T,BCUT)
13 C.
14 C.    ******************************************************************
15 C.    *                                                                *
16 C.    *  Calculates cross-section in current material                  *
17 C.    *  for discrete(hard) muon BREMSSTRAHLUNG.                       *
18 C.    *         (SIG in barn/atom)                                     *
19 C.    *                                                                *
20 C.    *    ==>Called by : GBRSGA                                       *
21 C.    *       Author  L.Urban  *********                               *
22 C.    *                                                                *
23 C.    ******************************************************************
24 C.
25 #include "geant321/gconsp.inc"
26       DIMENSION C(52)
27       SAVE C
28       PARAMETER (AKSI=2.30,ALFA=1.06,GAM=0.63)
29 C
30       PARAMETER (CONMX=0.130653)
31 C       CONMX=0.75*SQRT(2.7182...)*EMMU
32       DATA C/ 0.949313E-07,-0.819600E-07, 0.529075E-07,-0.832023E-08
33      +      , 0.539299E-09,-0.127042E-10,-0.165784E-08,-0.307788E-07
34      +      , 0.977905E-08,-0.113658E-08, 0.574481E-10,-0.106221E-11
35      +      , 0.968339E-09,-0.108640E-08,-0.177634E-09, 0.889497E-10
36      +      ,-0.876878E-11, 0.264303E-12, 0.216263E-08,-0.152680E-08
37      +      , 0.380989E-09,-0.455274E-10, 0.264172E-11,-0.596016E-13
38      +      , 0.444927E-09,-0.272978E-09, 0.645634E-10,-0.748783E-11
39      +      , 0.424890E-12,-0.940837E-14, 0.162289E-10,-0.362486E-11
40      +      ,-0.576652E-12, 0.211269E-12,-0.185482E-13, 0.522065E-15
41      +      ,-0.215590E-09, 0.112204E-09,-0.819133E-11, 0.145128E-12
42      +      ,-0.206029E-09, 0.559940E-10,-0.483350E-11, 0.134252E-12
43      +      ,-0.368469E-10, 0.999457E-11,-0.904967E-12, 0.272717E-13
44      +      ,-0.303446E-11, 0.853429E-12,-0.785466E-13, 0.236435E-14/
45 C.
46 C.    ------------------------------------------------------------------
47 C.
48       GBRSGM=0.
49       IF(BCUT.GE.T) GOTO 99
50 C
51       E=T+EMMU
52       ECMAX=E-CONMX*Z**0.333333
53       IF(BCUT.GE.ECMAX) GOTO 99
54       X=LOG(E/EMMU)
55       Y=LOG(BCUT/EMMU)
56 C
57       S=0.
58       YY=1.
59       DO 30 I=1,6
60          XX=1.
61          DO 20 J=1,6
62             K=6*I+J-6
63             S=S+C(K)*XX*YY
64             XX=XX*X
65   20     CONTINUE
66          YY=YY*Y
67   30  CONTINUE
68       SS=0.
69       YY=1.
70       DO 50 I=1,4
71          XX=1.
72          DO 40 J=1,4
73             K=4*I+J+32
74             SS=SS+C(K)*XX*YY
75             XX=XX*X
76   40     CONTINUE
77          YY=YY*Y
78   50  CONTINUE
79       S=S+Z*SS
80       IF(S.LE.0.) GOTO 99
81 C
82       FAC=LOG(ECMAX/BCUT)
83       IF(FAC.LE.0.) GOTO 99
84       FAC=Z*(Z+AKSI*(1.+GAM*LOG(Z)))*FAC**ALFA
85       GBRSGM=FAC*S
86 C
87   99  RETURN
88       END