]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gphys/gmoli.F
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / GEANT321 / gphys / gmoli.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*CMZ : 3.21/02 29/03/94 15.41.22 by S.Giani
11*-- Author :
12 SUBROUTINE GMOLI (AC,ZC,WMAT,NLM,DENS,OMC,CHC)
13C.
14C. ******************************************************************
15C. * *
16C. * Initializes material constants OMC,CHC for Moliere *
17C. * scattering. *
18C. * *
19C. * WMAT=proportion by weight of NLM individual constituents of *
20C. * charge ZC and atomic weight AC for the mixture/compound *
21C. * DENS=density in gm/cm**3 *
22C. * Warning : the beta and charge dependance of ZX is omitted *
23C. * *
24C. * ==>Called by : GPROBI *
25C. * Author M.S. Dixit NRCC Ottawa ********* *
26C. * *
27C. ******************************************************************
28C.
29C ZETA=factor for scattering by atomic electrons
30C
31 DIMENSION WMAT(*),AC(*),ZC(*)
32 PARAMETER (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)/137.036)**2)
4415 CONTINUE
45 CHC=0.39612E-3*SQRT(DENS*ZS)
46 OMC=6702.33*ZS*DENS*EXP((ZE-ZX)/ZS)
47*
48 END