15 integer sum, i, ncc, nnn
19 sum = sum + a(i)%charge
24 do while( sum .ne. 0 .and. ncc .lt. 10)
26 do while (abs(sum) .ge. 2 .and. nnn .lt. 10)
33 if(u .lt. 0.3333
d0)
then 45 call cchg0c(-1, a, ntp, icon)
48 call cchg0c(-1, a, ntp, icon)
66 if(u .lt. 0.3333
d0)
then 79 call cchg0c(1, a, ntp, icon)
82 call cchg0c(1, a, ntp, icon)
103 call cchg0(1, a, ntp, icon)
107 call cchg0c(-1, a, ntp, icon)
112 elseif(sum .eq. -1)
then 113 call cchg0(-1, a, ntp, icon)
117 call cchg0c(1, a, ntp, icon)
147 do while ( .not. found .and. ncc .lt. ntp*3)
150 found = a(i)%charge .eq. chg .and.
151 * (a(i)%code .eq.
kpion .or. a(i)%code .eq.
kkaon)
165 subroutine cchg0(chg, a, ntp, icon)
179 integer code, subcode
183 do while ( .not. found .and. ncc .lt. ntp*3)
186 found = a(i)%charge .eq. chg .and.
187 * (a(i)%code .eq.
kpion .or. a(i)%code .eq.
kkaon)
197 if(code .eq.
kpion)
then 217 call cmkptc(code, subcode, 0, a(i))
218 call cpm2e(a(i), a(i))
224 subroutine cchg0c(chg, a, ntp, icon)
237 integer code, subcode
242 do while ( .not. found .and. ncc .lt. ntp*3)
245 found = a(i)%charge .eq. 0 .and.
246 * (a(i)%code .eq.
kpion .or. a(i)%code .eq.
kkaon)
254 call cmkptc(code, subcode, chg, a(i))
255 call cpm2e(a(i), a(i))
max ptcl codes in the kseethru ! subcode integer k0l
max ptcl codes in the kseethru ! subcode integer k0s
max ptcl codes in the kkaon
subroutine cchgopposit(chg, a, ntp, icon)
subroutine cchg0(chg, a, ntp, icon)
subroutine cchg0c(chg, a, ntp, icon)
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
subroutine cconsvchg(outc, a, ntp, icon)
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
subroutine cmkptc(code, subcode, charge, p)
max ptcl codes in the kpion