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  real*8 user
15  real*4 userE(2)
16  integer*2 userI(4)
17  equivalence(user, usere(1)), (user, useri(1))
18  logical kbitest
19  integer codex
20 
21  open(21, file='localhost_skelnode', form='unformatted')
22  do while(.true.)
23  read(21, end=100) cumnum, num, ir, zf
24  write(*,'(a, 4i11)' ) 'h ', cumnum, num, ir
25  write(*,'(a, i3,2i5,4x,g12.3,3x,f8.5,g12.3)')
26  * 'f ',
27  * zf.p.code, zf.p.subcode, zf.p.charge,
28  * zf.p.fm.p(4), zf.vec.coszenith,
29  * zf.pos.depth/10.
30 
31  read(21) np
32  write(*,'(a, i6)' ) 'nob ', np
33  do i = 1, np
34  read(21) oo
35  user=oo.user
36  if( kbitest(usere(2), 1) ) then
37  codex = 4
38  else
39  codex = 6
40  endif
41  write(*,'(g14.6, i3,3g11.3)')
42  * oo.erg, codex, useri(1)/1000., useri(2)/1000.,
43  * usere(2)
44 ! write(*,
45 ! * '(4i3, 1p4E11.3, 0p, 2f8.4,f10.6, i3, 1p g11.3)')
46 ! * ldep, code, aTrack.p.subcode, aTrack.p.charge,
47 ! * Ek, aTrack.t,
48 ! * aTrack.pos.xyz.x, aTrack.pos.xyz.y,
49 ! * -aTrack.vec.w.r(1), -aTrack.vec.w.r(2), wz,
50 ! * userI(1), userE(2)
51 
52  enddo
53  nlow =1
54  do while (nlow .gt. 0)
55  read(21) nlow, pp
56  if(nlow .gt. 0) then
57  write(*,'(a,i8)') 'nl ', nlow
58  if(nlow .gt. 0) then
59  user = pp.user
60  write(*,'(a, 8g13.5,3i3,4g13.6)')
61  * 'p ', pp.posx, pp.posy, pp.posz,pp.coszenith,
62  * pp.depth, pp.colheight,
63  * pp.height, pp.atime, pp.where, pp.code,
64  * pp.asflag, pp.erg, useri(1)/1000.,
65  * useri(2)/1000., usere(2)
66  do i = 1, nlow
67  read(21) cc
68  user = cc.user
69  write(*,'(a, 3i3,5g13.6, 3g11.3)')
70  * 'c ', cc.code, cc.subcode, cc.charge,
71  * cc.fm(1), cc.fm(2),cc.fm(3), cc.fm(4),
72  * cc.mass, useri(1)/1000., useri(2)/1000.,
73  * usere(2)
74  enddo
75  endif
76  endif
77  enddo
78  enddo
79  100 continue
80  end
81 
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos depth
Definition: ZavoidUnionMap.h:1
Definition: Zprivate.h:9
*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 colheight
Definition: ZavoidUnionMap.h:1
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
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
*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 *Zfirst Zfirst Zfirst asflag
Definition: ZavoidUnionMap.h:1
*Zfirst p fm *Zfirst p Zfirst p code
Definition: ZavoidUnionMap.h:1
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos height
Definition: ZavoidUnionMap.h:1
logical function kbitest(i, bit)
Definition: kmanbit.f:13
*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
Definition: Zprivate.h:2
float erg[maxp]
Definition: Zprivate.h:7
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p charge
Definition: ZavoidUnionMap.h:1
Definition: Zprivate.h:25
*Zfirst p fm *Zfirst p mass
Definition: ZavoidUnionMap.h:1
*Zfirst p fm *Zfirst p Zfirst p Zfirst p subcode
Definition: ZavoidUnionMap.h:1