COSMOS v7.655  COSMOSv7655
(AirShowerMC)
getAcceptance.f
Go to the documentation of this file.
1 #include "BlockData/cblkGene.h"
2  implicit none
3 #include "Zglobalc.h"
4 #include "Zmanagerp.h"
5 #include "ZrigCut.h"
6 #include "Zptcl.h"
7 #include "Zobs.h"
8 #include "Zobsp.h"
9 #include "Zprimary.h"
10 #include "Zprimaryc.h"
11 #include "Zprimaryv.h"
12 #include "Zincidentp.h"
13 #ifdef NEXT486
14 #define IMAG_P dimag
15 #else
16 #define IMAG_P imag
17 #endif
18 
19 
20  integer i, j
21 
22  real*8 prob
23  real*8 rigc
24  real*8 E, azmmin, azmmax, dE, zen1, zen2
25 
26  call creadparam(5)
27  call cbeginrun
28  call cprintprim(errorout)
29  write(errorout,*) ' XaxisFromSouth=',xaxisfromsouth
30  zen2 = imag_p(coszenith)
31  zen1 = real(coszenith)
32  azmmax =imag_p(azimuth) + xaxisfromsouth
33  azmmin =real(Azimuth) + XaxisFromSouth
34  de=10.**0.05
35  if(cutofffile .eq. ' ') then
36  rigc = 0.
37  call csetcosdeg(.false., .false.)
38  else
39  if(abs(latit-latitofsite) .gt. 5. .or.
40  * abs(longi-longitofsite) .gt. 5. ) then
41  write(errorout, *)
42  * 'check LatitOfSite and LongitOfSite; they differ'//
43  * ' from those in CutoffFile'
44  stop 999
45  endif
46  rigc = 100.
47  if(zenvalue .eq. 'deg') then
48  call csetcosdeg(.false., .true.)
49  else
50  call csetcosdeg(.false., .false.)
51  endif
52  endif
53  do i = 1, prim%no_of_comps
54  e = prim%each(i)%energy(1)
55  do j = 1, 10000
56  call cprimacceptance(prim%each(i), e, rigc, zen1, zen2,
57  * azmmin, azmmax, prob)
58  write(*,*) prim%each(i)%label, sngl(e), sngl(prob)
59  e = e*de
60  if(e .gt. prim%each(i)%energy(prim%each(i)%no_of_seg+1))
61  * goto 100
62  enddo
63  100 continue
64  write(*,*)
65  enddo
66  end
67  subroutine chooktrace
68  end
69  subroutine chookceren
70  end
71  subroutine chookcerens
72  end
73  subroutine chookcerene
74  end
75  subroutine chookbgrun
76  end
real zen2
Definition: Zflux.h:1
real zen1
Definition: Zflux.h:1
dE dx *! Nuc Int sampling table e
Definition: cblkMuInt.h:130
nodes i
real * azmmin
Definition: Zflux.h:1
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon true
Definition: cblkElemag.h:7
subroutine cprintprim(out)
Definition: cprintPrim.f:3
subroutine csetcosdeg(cosin, degin)
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
Definition: cblkHeavy.h:36
subroutine chookceren
Definition: det2Exyz.f:63
real rigc
Definition: Zflux.h:1
subroutine creadparam(io)
Definition: creadParam.f:5
subroutine chooktrace
Definition: chook.f:275
subroutine chookcerene
Definition: det2Exyz.f:67
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos *Zfirst pos *Zfirst Zfirst vec w *Zfirst vec w Zfirst vec coszenith
Definition: ZavoidUnionMap.h:1
subroutine chookcerens(no, primary, angle)
Definition: ctemplCeren.f:19
block data cblkElemag data *AnihiE ! Eposi< 1 TeV, anihilation considered *X0/365.667/, ! radiation length of air in kg/m2 *Ecrit/81.e-3/, ! critical energy of air in GeV *MaxComptonE/1./, ! compton is considered below 1 GeV *MaxPhotoE/1.e-3/, ! above this, PhotoElectric effect neg. *MinPhotoProdE/153.e-3/, ! below 153 MeV, no gp --> hadrons ! scattering const not MeV *Knockon ! knockon is considered Obsolete *PhotoProd false
Definition: cblkElemag.h:7
real azmmax
Definition: Zflux.h:1
subroutine cbeginrun
Definition: cbeginRun.f:7
subroutine chookbgrun
Definition: chook.f:15
subroutine cprimacceptance(comp, e_or_p, rigth, cos1, cos2, fai1, fai2, prob)