10 #include "Zmanagerp.h" 22 prm%NoOfSamplings = eventsintherun
26 do i = 1, prm%no_of_comps
27 prm%NoOfSampComp(i, 1) =0
28 prm%NoOfSampComp(i, 2) =0
30 temp1 = prm%each(i)%symb
32 temp1 = prm%each(i)%eunit
34 temp1 = prm%each(i)%etype
36 temp1 = prm%each(i)%diff_or_inte
45 write(msg, *)
' correct primary data table' 48 prm%cummInteFlux(1) = prm%each(1)%inte_value
49 do i = 1, prm%no_of_comps-1
50 prm%cummInteFlux(i+1) = prm%cummInteFlux(i)
51 * + prm%each(i+1)%inte_value
54 do i = 1, prm%no_of_comps
55 prm%cummInteFlux(i) = prm%cummInteFlux(i) /
56 * prm%cummInteFlux(prm%no_of_comps)
70 #include "Zprimaryc.h" 76 integer k, pap, massn, chgn
92 if(symb(1:3) .eq.
'iso')
then 94 read(symb(4:12), *) massn, chgn
95 if(massn .le. chgn)
then 96 write(msg,*)
' primary =',symb,
97 *
' invalid(becaus A=',massn,
'<= Z=',chgn
103 elseif(symb(1:3) .eq.
'pdg')
then 105 read(symb(4:12), *) kf
106 call ckf2cos(kf, each%code, each%subcode, each%charge)
113 do while ( k .le. noofsymbols )
114 if(primaryidtbl(k)%symb .eq. symb)
then 115 each%code = primaryidtbl(k)%code
116 each%subcode = primaryidtbl(k)%subcode
117 each%charge = primaryidtbl(k)%charge
123 if(k .ne. noofsymbols + 2)
then 124 write(msg, *) each%label,
'-th primary component=',
125 * each%symb,
' invalid' 131 each%charge = - each%charge
132 if( symb .ne.
'iso' )
then 133 each%subcode = - each%subcode
147 #include "Zprimary.h" 148 #include "Zprimaryc.h" 161 if(ergunittbl(k)%symb .eq. symb)
then 162 each%togev = ergunittbl(k)%togev
168 write(msg, *) each%label,
'-th primary energy unit symbol=',
169 * each%eunit,
' invalid' 174 each%emin = each%energy(1)
175 each%emax = each%energy(each%no_of_seg + 1)
subroutine cerrormsg(msg, needrtn)
subroutine ckf2cos(kf, code, subcode, chg)
subroutine c2lowercase(cu, cl)
subroutine cexmprimsymb(each, icon)
subroutine cprocprimdt(prm)
subroutine cexmprimeu(each, icon)
subroutine cmkprimstbl(each, icon)