COSMOS v7.655  COSMOSv7655
(AirShowerMC)
read_show_skel.f
Go to the documentation of this file.
1  implicit none
2 !
3 ! read skelton data and show it;
4 ! This is another version of showing skelton data in ascii
5 ! (see seeascii.f)
6 !
7 #include "Ztrack.h"
8  include "Zprivate.h"
9  type(ob)::oo
10  type(child)::cc
11  type(parent)::pp
12  integer i, nlow, cumnum, num, ir(2)
13  type(track)::zf
14 
15  open(21, file='localhost_skelnode', form='unformatted')
16  do while(.true.)
17  read(21, end=100) cumnum, num, ir, zf
18  write(*,'(a, 4i11)' ) 'h ', cumnum, num, ir
19  write(*,'(a, i3,2i5,4x,g12.3,3x,f8.5,g12.3)')
20  * 'f ',
21  * zf%p%code, zf%p%subcode, zf%p%charge,
22  * zf%p%fm%p(4), zf%vec%coszenith,
23  * zf%pos%depth/10.
24 
25  read(21) np
26  write(*,'(a, i6)' ) 'nob ', np
27  do i = 1, np
28  read(21) oo
29 
30  write(*,'(4i3,9g14.6)') oo%where, oo%code, oo%subcode,
31  * oo%charge, oo%atime, oo%erg,
32  * oo%mass, oo%x, oo%y, oo%wx, oo%wy, oo%wz,
33  * oo%zenith
34  enddo
35  nlow =1
36  do while (nlow .gt. 0)
37  read(21) nlow, pp
38  if(nlow .gt. 0) then
39  write(*,'(a,i8)') 'nl ', nlow
40  if(nlow .gt. 0) then
41  write(*,'(a, 8g13.6,3i3,g13.6)')
42  * 'p ', pp%posx, pp%posy, pp%posz,pp%coszenith,
43  * pp%depth, pp%colHeight,
44  * pp%height, pp%atime, pp%where, pp%code,
45  * pp%asflag, pp%erg
46  do i = 1, nlow
47  read(21) cc
48  write(*,'(a, 3i3,5g13.6)')
49  * 'c ', cc%code, cc%subcode, cc%charge,
50  * cc%fm(1), cc%fm(2),cc%fm(3), cc%fm(4),
51  * cc%mass
52  enddo
53  endif
54  endif
55  enddo
56  enddo
57  100 continue
58  end
59 
Definition: Zprivate.h:9
nodes i
Definition: Ztrack.h:44
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
Definition: Zprivate.h:2
Definition: Zprivate.h:25