COSMOS v7.655  COSMOSv7655
(AirShowerMC)
showSpec.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 cosmin, cosmax, rigc
23  real*8 flux, E, azmmin, azmmax, dE, zen1, zen2
24 
25 
26  call creadparam(5)
27  call cbeginrun
28  call cprintprim(errorout)
29  cosmax = imag_p(coszenith)
30  cosmin = real(coszenith)
31  azmmax = imag_p(azimuth) + xaxisfromsouth
32  azmmin = real(Azimuth) + XaxisFromSouth
33  de=10.**0.05
34  if(cutofffile .eq. ' ') then
35  rigc = 0.
36  call csetcosdeg(.false., .false.)
37  else
38  rigc = 100.
39  if(zenvalue .eq. 'deg') then
40  call csetcosdeg(.false., .true.)
41  else
42  call csetcosdeg(.false., .false.)
43  endif
44  endif
45  zen1 = cosmin
46  zen2 = cosmax
47  do i = 1, prim%no_of_comps
48  e = prim%each(i)%energy(1)
49  do j = 1, 10000
50  call cprimflux(prim%each(i), e, rigc, zen1, zen2,
51  * azmmin, azmmax, flux)
52 ! if(flux .gt. 0.) then
53  write(*,*)
54  * prim%each(i)%label, sngl(e), sngl(flux)
55 ! endif
56  e = e*de
57  if(e .gt. prim%each(i)%energy(prim%each(i)%no_of_seg+1))
58  * goto 100
59  enddo
60  100 continue
61 ! write(*,*)
62  enddo
63  end
64  subroutine chooktrace
65  end
66  subroutine chookceren
67  end
68  subroutine chookcerens
69  end
70  subroutine chookcerene
71  end
72  subroutine chookbgrun
73  end
real zen2
Definition: Zflux.h:1
subroutine cprimflux(comp, e_or_p, rigth, cos1, cos2, fai1, fai2, flux)
Definition: cprimFlux.f:4
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