6 #include "geant321/gcflag.inc"
7 #include "geant321/gckine.inc"
8 #include "geant321/gctrak.inc"
13 CHARACTER*20 parnam,matnam
14 CHARACTER*4 unit1,unit2
18 call gfpart(ikine,parnam,ityp,dum,duc,dut,udu,idu)
19 call gfmate(imat ,matnam,dua,duz,dud,dur,dui,udu,idu)
20 CALL gevkev(pkine(1),ekine,unit1)
21 print 750, ievent,parnam,ekine,unit1,sizex,matnam
31 CALL gevkev(etot,avee,unit1)
32 CALL gevkev(
rms ,rmse ,unit2)
33 print 752, avee,unit1,rmse,unit2
38 rms =
sqrt(abs(trlen2-trlen**2))
42 call gftmat(imat,ikine,
'RANG',1,pkine(1),csdarang,dum,ixst)
47 xtrlen2 = fnorm*xtrlen2
48 rms =
sqrt(abs(xtrlen2-xtrlen**2))
52 fnbstep = fnorm*nbstep
53 fnbstep2 = fnorm*nbstep2
54 rms1 =
sqrt(abs(fnbstep2-fnbstep**2))
56 steplen = fnorm*steplen
57 steplen2 = fnorm*steplen2
58 rms2 =
sqrt(abs(steplen2-steplen**2))
59 print 755, fnbstep,rms1,steplen,rms2
63 transmit = fnorm*100*kcoef(2)
64 reflected = fnorm*100*kcoef(3)
76 if (iswit(2).eq.1)
then
78 99
format(/,15
x,
'histogram file --> Name: ',a25)
79 CALL hrput(0,filename,
'N')
83 749
FORMAT(/, 60(1h-),/)
84 750
FORMAT( 1
x,
'The run is',i8,1
x,a10,
' of',f8.2,a4,
' through ',
85 & e12.4,
' cm of ',a10)
86 752
FORMAT( 1
x,
'Total Energy deposited = ',
87 & f8.3, a4,
' +- ', f8.3, a4)
88 753
FORMAT(/,1
x,
'Track length of primary track = ',
89 & e12.5,
' cm +- ', e12.5,
' cm')
90 763
FORMAT( 1
x,
'csda Range from table = ',
92 754
FORMAT(/,1
x,
'Projected range = ',
93 & e12.5,
' cm +- ', e12.5,
' cm')
94 755
FORMAT(/,1
x,
'Nb of steps of primary track = ',
96 & 3
x,
'Step size = ', e12.5,
' cm +- ', e12.5,
' cm')
97 756
FORMAT(/,1
x,
'absorbed = ',f6.2,
' %',3
x,
'transmit = ', f6.2,
' %',
98 & 3
x,
'reflected = ', f6.2,
' %')
static c2_sqrt_p< float_type > & sqrt()
make a *new object
void print(const std::vector< T > &data)