]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gphys/gmoli2.F
Updated Course TDR geometry for coding convensions and the like
[u/mrichter/AliRoot.git] / GEANT321 / gphys / gmoli2.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1995/10/24 10:21:27 cernlib
6* Geant
7*
8*
9#include "geant321/pilot.h"
10#if defined(CERNLIB_VER314)
11*CMZ : 3.21/02 29/03/94 15.41.22 by S.Giani
12*-- Author :
13 SUBROUTINE GMOLI2(AC,ZC,WMAT,NLM,DENS,BETA2,OMC)
14C.
15C. ******************************************************************
16C. * *
17C. * Initializes material constants OMC,CHC for Moliere *
18C. * scattering. *
19C. * *
20C. * WMAT=proportion by weight of NLM individual constituents of *
21C. * charge ZC and atomic weight AC for the mixture/compound *
22C. * DENS=density in gm/cm**3 *
23C. * *
24C. * ==>Called by : GMULOF *
25C. * Author M.S. Dixit NRCC Ottawa ********* *
26C. * *
27C. ******************************************************************
28C.
29C ZETA=factor for scattering by atomic electrons
30C
31 DIMENSION WMAT(1),AC(1),ZC(1)
32 DATA ZETA / 1. /
33*
34* ------------------------------------------------------------------
35*
36 ZS=0.
37 ZE=0.
38 ZX=0.
39 DO 15 I=1,NLM
40 TMP=(WMAT(I)/AC(I))*ZC(I)*(ZC(I)+ZETA)
41 ZS=ZS+TMP
42 ZE=ZE-0.66666*TMP*LOG(ZC(I))
43 ZX=ZX+TMP*LOG(1.+3.34*(ZC(I)/(BETA2*137.036))**2)
4415 CONTINUE
45 OMC=6702.33*ZS*DENS*EXP((ZE-ZX)/ZS)
46*
47 END
48
49#endif