5 * Revision 1.1.1.1 1995/10/24 10:21:38 cernlib
9 #include "geant321/pilot.h"
10 #if defined(CERNLIB_ASHO)
11 *CMZ : 3.21/02 29/03/94 15.41.25 by S.Giani
16 #include "geant321/gcmate.inc"
17 #include "geant321/gcasho.inc"
18 C-----------------------------------------------------------------------
19 C This program calculates the parameters of the oscillators.
20 C The input data are in the GCASHO. The lowest poten-
21 C tials are convoluted to escape unreasonably high accuracy.
22 C-----------------------------------------------------------------------
23 C Update history: 10-8-93
25 C-----------------------------------------------------------------------
27 PARAMETER (ENERR=0.02,TWOELM=2*511)
28 C-----------------------------------------------------------------------
29 C Convolution of the first shells
30 C-----------------------------------------------------------------------
31 C1 = 153.6*STEP*DENS/(BE2*AMED)
34 X = 2.*LOG(E0MED/PLASM) + 1.
35 CALL GSTCOR(X,E0MED,PLOG,DENS,D)
36 A0 = LOG(TWOELM*TRNSMA/E0MED**2)+C2-D
39 IF (ESMED(I).GT.EMEAN*ENERR/ALFA) GOTO 20
45 S1 = S1 + LOG(ESMED(I))*ZSMED(I)
51 X = ESMED(I + J - 1)/S1
53 EOSC(I) = S1*IOSC(I)*ALFA
54 ZOSC(I) = ZSMED(I + J - 1)
59 C-----------------------------------------------------------------------
60 C Calculation of the oscillator parameters
61 C-----------------------------------------------------------------------
66 X = 2.*LOG(EOSC(I)/PLASM)+1.
67 CALL GSTCOR(X,EOSC(I),PLOG,DENS,D)
68 AOSC(I) = LOG(TWOELM/EOSC(I)) +C3 -D