Go to the source code of this file.
◆ chookbgevent()
subroutine chookbgevent |
( |
| ) |
|
Definition at line 97 of file chookSkel.f.
References charge, code, cqincident(), csetemin(), depth, e, kgnuc, p, r, subcode, and x.
109 type(
track)::incident
116 real*8 sveaswait, svethin, kepn
121 kepn = incident.
p.fm.
p(4)
125 ethresh = kepn * waitratio
129 call csetemin(generate2, keminobs2, cutneg, cuteg)
137 eventno = eventno + 1
140 * sngl(obssites(
i).pos.
depth),
149 1000
format(f10.3,i9,3i4,e15.5,3(1
x,f12.8))
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos depth
subroutine cqincident(incident, AngleAtObs)
dE dx *! Nuc Int sampling table e
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
max ptcl codes in the kgnuc
subroutine csetemin(gen, eminob, emin, emCas)
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
*Zfirst p fm *Zfirst p Zfirst p code
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p charge
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
*Zfirst p fm *Zfirst p Zfirst p Zfirst p subcode
◆ chookbgrun()
subroutine chookbgrun |
( |
| ) |
|
Definition at line 11 of file chookSkel.f.
References cerrormsg(), cgetfname(), cprintobs(), cprintprim(), cquhookc(), cquhooki(), cquhookr(), cwriteparam(), true, and where.
12 #include "Zmanagerp.h" 47 write(msg, *)
'Skeleton is judged at obs.pos=',
Where 49 write(msg, *)
' Ngmin=',ngmin,
50 *
' SumEGmin=',sumegmin/1000.,
'TeV' 52 write(msg, *)
' Nhmin=',nhmin,
53 *
' SumEHmin=',sumehmin/1000.,
'TeV' 57 inquire(file=mskel(1:
klena(mskel)), opened=opn, exist=ex)
60 call cerrormsg(
' already opened: starange', 0)
62 * append(1:
klena(append)) .eq.
'append' )
then 63 open(mdev, file=mskel, form=
'unformatted',status=
'old')
64 call cerrormsg(
'skeleton node info. will be appended', 1)
71 * append(1:
klena(append)) .ne.
'append' )
then 73 *
'Old skeleton node info. file exists', 1)
75 *
'but node info. will NOT be appended', 1)
77 open(mdev, file=mskel(1:
klena(mskel)), form=
'unformatted',
83 open(wdev, file=wskel(1:
klena(wskel)), form=
'unformatted',
subroutine cgetfname(fnin, fn)
subroutine cerrormsg(msg, needrtn)
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
subroutine cprintprim(out)
subroutine cwriteparam(io, force)
subroutine cquhookr(i, rv)
integer function klena(cha)
subroutine cquhooki(i, iv)
*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 where
subroutine cquhookc(i, cv)
◆ chookeint()
subroutine chookeint |
( |
integer |
never | ) |
|
Definition at line 354 of file chookSkel.f.
References asflag, cmemonode(), code, kelec, and p.
355 #include "Zprivate.h" 384 if(never .lt. 0)
then 387 pwork(1) = movedtrack.
p 394 if( movedtrack.
asflag .eq. 0 )
then 395 if( movedtrack.
p.fm.
p(4) .lt. ethresh )
then 403 if(movedtrack.
asflag .eq. -1)
then max ptcl codes in the kelec
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
*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
*Zfirst p fm *Zfirst p Zfirst p code
subroutine cmemonode(dev, flag)
◆ chookenevent()
subroutine chookenevent |
( |
| ) |
|
Definition at line 234 of file chookSkel.f.
References cmemorize(), code, cwriteseed(), erg, kelec, kgnuc, knuc, kpion, o, p, and where.
242 #include "Zmanagerp.h" 243 #include "Zprivate.h" 262 sumeg = sumeg +
o(
i).
erg 268 sumeh = sumeh +
o(
i).
erg 276 memorize =(
ng .ge. ngmin .and. sumeg .ge. sumegmin) .or.
277 * (
nh .ge. nhmin .and. sumeh .ge. sumehmin)
282 accepted = accepted + 1
max ptcl codes in the kgnuc
subroutine cmemorize(from, to)
max ptcl codes in the kelec
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
*Zfirst p fm *Zfirst p Zfirst p code
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code knuc
*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 where
max ptcl codes in the kpion
◆ chookenrun()
subroutine chookenrun |
( |
| ) |
|
Definition at line 295 of file chookSkel.f.
References cerrormsg(), and cprintstatus().
296 #include "Zprivate.h" 303 write(msg,
'(i8, a)') accepted,
304 *
' events are memorized as skeleton' 306 call cerrormsg(
'their seeds are also memorized', 1)
subroutine cerrormsg(msg, needrtn)
◆ chookgint()
subroutine chookgint |
( |
integer |
never | ) |
|
◆ chooknepint()
subroutine chooknepint |
( |
integer |
never | ) |
|
◆ chookobs()
Definition at line 162 of file chookSkel.f.
References cerrormsg(), charge, code, coszenith, erg, kneue, kneumu, mass, ng, nth, o, p, r, subcode, t, x, xyz, and y.
171 #include "Zprivate.h" 183 common /testcos/sumg,
ng(20),
nth, eventno
185 integer ng,
nth, eventno
188 if( id .eq. 2 .and. atrack.
p.
code .ne.
kneumu .and.
191 if( np .gt. npmax)
then 193 *
'# of particles >NpMax in observation', 0)
195 o(np).
where = atrack.
where 199 o(np).atime = atrack.
t 200 o(np).
erg = atrack.
p.fm.
p(4)
202 o(np).
x = atrack.pos.
xyz.
r(1)
203 o(np).
y = atrack.pos.
xyz.
r(2)
204 o(np).wx =atrack.vec.w.
r(1)
205 o(np).wy =atrack.vec.w.
r(2)
206 o(np).wz =atrack.vec.w.
r(3)
209 if(
o(np).
code .le. 6 .and.
o(np).
code .ne. 3 )
then 215 * (
o(np).
x ), (
o(np).
y ) ,
220 959
format(3i3,f12.3,2f16.6,4(1
x,f12.8))
subroutine cerrormsg(msg, needrtn)
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
latitude latitude this system is used *****************************************************************! type coord sequence union map real z z in m endmap xyz map real ! latitude in deg is to the north ! longitude in deg is to the east *h ! height in m endmap llh map real ! polar angle ! azimuthal angle *radius ! radial distance endmap sph endunion character *sys ! which system xyz
max ptcl codes in the kneue
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
*Zfirst p fm *Zfirst p Zfirst p code
max ptcl codes in the kneumu
latitude latitude this system is used *****************************************************************! type coord sequence union map real y
*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
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p charge
*Zfirst p fm *Zfirst p mass
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
*Zfirst p fm *Zfirst p Zfirst p Zfirst p subcode
◆ chooktrace()
subroutine chooktrace |
( |
| ) |
|
Definition at line 319 of file chookSkel.f.
References height.
346 h1 = trackbefmove.pos.
height- obssites(noofsites).pos.
height 347 h2 = movedtrack.pos.
height - obssites(noofsites).pos.
height *Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos height
◆ cmemonode()
Definition at line 467 of file chookSkel.f.
References asflag, c, charge, code, colheight, coszenith, depth, erg, height, kelec, mass, p, r, subcode, t, and xyz.
Referenced by chookeint(), chookgint(), and chooknepint().
472 #include "Zprivate.h" 523 *
ke .ge. cuteg ) .or.
525 *
ke .ge. cutneg ) )
then 527 if(flag .ne. -3)
then 528 if(
ke .lt. keminobs)
then 538 if(nlow .eq. 0 )
return 540 p.posx = movedtrack.pos.
xyz.
r(1)
541 p.posy = movedtrack.pos.
xyz.
r(2)
542 p.posz = movedtrack.pos.
xyz.
r(3)
545 if( movedtrack.pos.
colheight .gt. 1.e36)
then 550 p.atime = movedtrack.
t 551 p.
where = movedtrack.
where 554 p.
erg = movedtrack.
p.fm.
p(4)
577 *
ke .ge. cuteg ) .or.
579 *
ke .ge. cutneg ) )
then 581 if(flag .eq. -3 .or.
ke .lt. keminobs)
then 585 c.fm(1) = pwork(
i).fm.
p(1)
586 c.fm(2) = pwork(
i).fm.
p(2)
587 c.fm(3) = pwork(
i).fm.
p(3)
588 c.fm(4) = pwork(
i).fm.
p(4)
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos depth
*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
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
latitude latitude this system is used *****************************************************************! type coord sequence union map real z z in m endmap xyz map real ! latitude in deg is to the north ! longitude in deg is to the east *h ! height in m endmap llh map real ! polar angle ! azimuthal angle *radius ! radial distance endmap sph endunion character *sys ! which system xyz
max ptcl codes in the kelec
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
*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
*Zfirst p fm *Zfirst p Zfirst p code
integer maxn LabEquivE real * ke(maxn) integer indx(maxn) integer nevent integer outzero
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos height
*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
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p charge
*Zfirst p fm *Zfirst p mass
*Zfirst p fm *Zfirst p Zfirst p Zfirst p subcode
dE dx *! Nuc Int sampling table c
◆ cmemorize()
Definition at line 599 of file chookSkel.f.
References cputhes(), cputnodinfo(), cqeventno(), and cqinirn().
Referenced by chookenevent().
609 integer num, cumnum, irevent(2)
622 write(
to) cumnum,
num, irevent, zfirst
subroutine cputnodinfo(from, to)
real(8), dimension(:,:,:,:), allocatable, save num
integer maxbin nregion c minsave drx2 ! drawing region real maxdep integer maxpos integer to
subroutine cqeventno(num, cumnum)
integer maxbin nregion c minsave drx2 ! drawing region real maxdep integer maxpos integer from
◆ cputhes()
Definition at line 630 of file chookSkel.f.
References o.
Referenced by cmemorize().
631 #include "Zprivate.h"
integer maxbin nregion c minsave drx2 ! drawing region real maxdep integer maxpos integer to
◆ cputnodinfo()
Definition at line 647 of file chookSkel.f.
References c, and p.
Referenced by cmemorize().
648 #include "Zprivate.h" 655 do while ( nlow .ge. 0 )
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
integer maxbin nregion c minsave drx2 ! drawing region real maxdep integer maxpos integer to
integer maxbin nregion c minsave drx2 ! drawing region real maxdep integer maxpos integer from
dE dx *! Nuc Int sampling table c