17 if( a%p%code /= 0)
then 18 if( stack_pos .ge. max_stack_size)
then 19 write(msg,*)
'stack area full=',max_stack_size
22 stack_pos = stack_pos + 1
28 write(0,*)
' code=0 appeared subcode=',a%p%subcode
29 write(0,*)
' charge=',a%p%charge
30 write(0,*)
' px,py, pz, E, mass=',a%p%fm%p(1:4), a%p%mass
31 write(0,*)
' neglected for stacking in cstack.f' 32 write(0,*)
'ActiveMdl=',activemdl
37 subroutine cpop(a, remain)
48 if( stack_pos .le. 0)
then 53 stack_pos = stack_pos -1
66 if(stackpos .le. stack_pos .and. stackpos .ge. 1)
then 67 atrack = stack(stackpos)
107 real*8 erg(max_stack_size)
108 type(
track)::sorted(max_stack_size)
109 integer idx(max_stack_size)
114 erg(i) = stack(i)%p%fm%p(4)
117 call kqsortd(erg, idx, stack_pos)
121 sorted(i) = stack(idx(i))
subroutine cerrormsg(msg, needrtn)
subroutine cpop(a, remain)
subroutine kqsortd(A, ORD, N)
subroutine ksortinv(idx, n)
subroutine cgetstacked(stackpos, aTrack, icon)
subroutine cresetstackpos(stackpos)
subroutine cgetcurrentstackpos(stackpos)