source: trunk/MagicSoft/Simulation/Corsika/Mmcs/photo.f@ 10083

Last change on this file since 10083 was 286, checked in by harald, 25 years ago
This is the start point for further developments of the Magic Monte Carlo Simulation written by Jose Carlos Gonzales. Now it is under control of one CVS repository for the whole collaboration. Everyone should use this CVS repository for further developments.
File size: 2.7 KB
Line 
1 SUBROUTINE PHOTO
2C VERSION 4.00 -- 26 JAN 1986/1900
3C******************************************************************
4 DOUBLE PRECISION PEIG
5*KEEP,EPCONT.
6 COMMON/EPCONT/ EDEP,RATIO,TSTEP,TUSTEP,USTEP,TVSTEP,VSTEP,IDISC,
7 * IROLD,IRNEW,RHOFAC, EOLD,ENEW,EKE,ELKE,BETA2,GLE,
8 * TSCAT,IAUSFL
9 DOUBLE PRECISION EDEP,RATIO
10 REAL TSTEP,TUSTEP,USTEP,TVSTEP,VSTEP,RHOFAC,EOLD,ENEW,
11 * EKE,ELKE,BETA2,GLE,TSCAT
12 INTEGER IDISC,IROLD,IRNEW,IAUSFL(29)
13*KEND.
14 COMMON/PHOTIN/EBINDA,GE0,GE1, MPGEM(1),GMFP0(500),GMFP1(500),GBR10
15 *(500),GBR11(500),GBR20(500),GBR21(500),GBR30(500),GBR31(500),GBR40
16 *(500),GBR41(500),NGR,RCO0,RCO1, RSCT0(100),RSCT1(100), COHE0(500),
17 *COHE1(500)
18*KEEP,RUNPAR.
19 COMMON /RUNPAR/ FIXHEI,THICK0,HILOECM,HILOELB,
20 * STEPFC,NRRUN,NSHOW,PATAPE,MONIIN,
21 * MONIOU,MDEBUG,NUCNUC,
22 * CETAPE,
23 * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
24 * N1STTR,MDBASE,
25 * DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
26 * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
27 * ,GHEISH,GHESIG
28 COMMON /RUNPAC/ DSN,HOST,USER
29 DOUBLE PRECISION FIXHEI,THICK0,HILOECM,HILOELB
30 REAL STEPFC
31 INTEGER NRRUN,NSHOW,PATAPE,MONIIN,MONIOU,MDEBUG,NUCNUC,
32 * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
33 * N1STTR,MDBASE
34 INTEGER CETAPE
35 CHARACTER*79 DSN
36 CHARACTER*20 HOST,USER
37
38 LOGICAL DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
39 * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
40 * ,GHEISH,GHESIG
41*KEEP,STACKE.
42 COMMON/STACKE/ E,TIME,X,Y,Z,U,V,W,DNEAR,IQ,IGEN,IR,IOBS,LPCTE,NP
43 DOUBLE PRECISION E(60),TIME(60)
44 REAL X(60),Y(60),Z(60),U(60),V(60),W(60),DNEAR(60)
45 INTEGER IQ(60),IGEN(60),IR(60),IOBS(60),LPCTE(60),NP
46*KEND.
47 DOUBLE PRECISION PZERO,PRM,PRMT2,RMI,VC
48 COMMON/USEFUL/PZERO,PRM,PRMT2,RMI,VC,RM,MEDIUM,MEDOLD,IBLOBE,ICALL
49 COMMON/ACLOCK/NCLOCK,JCLOCK
50C_____IF (NCLOCK.GT.JCLOCK) THEN
51C______WRITE(MDEBUG,* )' PHOTO: NP=',NP,' IR=',IR(NP),' IOBS=',IOBS(NP)
52C______CALL AUSGB2
53C_____END IF
54 PEIG=E(NP)
55 IF (E(NP).LE.EBINDA) THEN
56 EDEP=PEIG
57 IBLOBE=1
58 ELSE
59 EDEP=EBINDA
60 E(NP)=EDEP
61 IBLOBE=0
62 END IF
63 IRL=IR(NP)
64 IF (IBLOBE.EQ.1) THEN
65 E(NP)=PZERO
66 RETURN
67 END IF
68 IQ(NP)=3
69 E(NP)=PEIG-EDEP+PRM
70 RETURN
71 END
Note: See TracBrowser for help on using the repository browser.