]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gphys/gprela.F
This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / gphys / gprela.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1995/10/24 10:21:32 cernlib
6* Geant
7*
8*
9#include "geant321/pilot.h"
10*CMZ : 3.21/02 29/03/94 15.41.23 by S.Giani
11*-- Author :
12 SUBROUTINE GPRELA
13C.
14C. ******************************************************************
15C. * *
16C. * Initialise energy loss due to direct pair-production and *
17C. * nuclear interactions by muons. *
18C. * *
19C * A, Direct pair production <======= *
20C * *
21C. * The DE/DX expression of MANDO and RONCHI(NUOVO CIMENTO *
22C. * 9(1952),517) is used which attempts to account for the effect *
23C. * of atomic electron screening. The screening correction is *
24C. * applied above the energy limit defined by C. RICHARD-SERRE *
25C. * (CERN 71-18). *
26C. * *
27C * B, Nuclear interactions <======= *
28C. * *
29C. * the following expression derived from the Williams-Weizsacker *
30C. * relation for the virtual photon flux is used : *
31C. * *
32C. * DE/DX = FACTOR * XSEC * E *
33C. * *
34C. * where, *
35C. * FACTOR = 2. * N * ALPHA / PI *
36C. * XSEC = total photo-nuclear cross-section assumed to *
37C. * be independent of energy. Value of 140 mubarns *
38C. * calculated by averaging the results of Hesse *
39C. * et al(Phys. Rev. Lett 25(1970),613). *
40C. * *
41C. * ==>Called by : GPHYSI *
42C. * Author G.Patrick ********* *
43C. * *
44C. ******************************************************************
45C.
46#include "geant321/gcbank.inc"
47#include "geant321/gcjloc.inc"
48#include "geant321/gcmulo.inc"
49#include "geant321/gcmate.inc"
50#include "geant321/gcphys.inc"
51#include "geant321/gconsp.inc"
52#include "geant321/gccuts.inc"
53#include "geant321/gctrak.inc"
54 DATA XSEC /140.E-30/
55 DATA FACTOR/2.7976238E+21/
56C.
57C. ------------------------------------------------------------------
58C.
59 IF(Z.LT.1.) GOTO 999
60 ICHAN=IEKBIN
61 T = ELOW(ICHAN)
62 T1 = 10.**(EKBIN(1)+(ICHAN-0.5)/GEKA)
63 IF(T.LT.1.)GO TO 999
64 E = T+EMMU
65 E1 = T1+EMMU
66 IF(JMIXT.EQ.0)THEN
67C
68C Element
69C
70 DEDX = GPRELM(Z,T,PPCUTM)
71 DEDX = AVO*DENS*DEDX/A
72*
73* *** auxiliary integration point for Range tables
74 IF(ICHAN.NE.NEK1) THEN
75 DEDX1 = GPRELM(Z,T1,PPCUTM)
76 DEDX1 = AVO*DENS*DEDX1/A
77 ENDIF
78 ELSE
79C
80C Compound/Mixture
81C
82 NLMAT = Q(JMA+11)
83 NLM = IABS(NLMAT)
84 DEDX = 0.
85 DEDX1 = 0.
86 DO 10 L=1,NLM
87 J = JMIXT+NLM+L
88 AA = Q(J-NLM)
89 ZZ = Q(J)
90 WMAT = Q(J+NLM)
91 S = GPRELM(ZZ,T,PPCUTM)
92 S = WMAT*S/AA
93 DEDX = DEDX+AVO*DENS*S
94*
95* *** auxiliary integration point for Range tables
96 IF(ICHAN.NE.NEK1) THEN
97 S = GPRELM(ZZ,T1,PPCUTM)
98 S = WMAT*S/AA
99 DEDX1 = DEDX1+AVO*DENS*S
100 ENDIF
101 10 CONTINUE
102 ENDIF
103C
104C Nuclear interactions
105C
106 IF(IMUNU.EQ.0.AND.E.GE.10.) THEN
107 DENU=DENS*FACTOR*XSEC*E
108*
109* *** auxiliary integration point for Range tables
110 IF(ICHAN.NE.NEK1) THEN
111 DENU1=DENS*FACTOR*XSEC*E1
112 ENDIF
113 ELSE
114 DENU=0.0
115 DENU1=0.0
116 ENDIF
117 IF(DEDX.LT.0.)DEDX=0.
118 IF(DENU.LT.0.)DENU=0.
119 JEL2=LQ(JMA-2)
120 Q(JEL2+ICHAN)=Q(JEL2+ICHAN)+DEDX+DENU
121*
122* *** auxiliary integration point for Range tables
123 IF(ICHAN.NE.NEK1) THEN
124 IF(DEDX1.LT.0.)DEDX1=0.
125 IF(DENU1.LT.0.)DENU1=0.
126 WS(NEKBIN*2+ICHAN)=WS(NEKBIN*2+ICHAN)+DEDX1+DENU1
127 ENDIF
128C
129 999 END