6 #include "geant321/gcflag.inc"
7 #include "geant321/gctrak.inc"
12 dimension edeptot(maxabs)
15 CHARACTER*4 unit1, unit2
25 call gfmate(materabs(k),matnam,dua,duz,dud,dur,dui,udu,idu)
26 aveedep = fnorm*sumedep(k)
27 aveedep2 = fnorm*su2edep(k)
28 rmsedep =
sqrt(abs(aveedep2-aveedep**2))
29 avetrck = fnorm*sumtrck(k)
30 avetrck2 = fnorm*su2trck(k)
31 rmstrck =
sqrt(abs(avetrck2-avetrck**2))
33 CALL gevkev(aveedep,edmean,unit1)
34 CALL gevkev(rmsedep,edrms ,unit2)
35 print 752,k,matnam,edmean,unit1,edrms,unit2,avetrck,rmstrck
40 iplmax = nbabsor*nblayer + 1
43 enerflow(k) = enerflow(k)*fnorm
44 eleaklat(k) = eleaklat(k)*fnorm
46 if (histo(ih)) call hfill(ih, fk, 0., enerflow(k)/amev)
48 if (histo(ih)) call hfill(ih, fk, 0., eleaklat(k)/amev)
56 idmax = nbabsor*nblayer
58 iabsor =
mod(k,nbabsor)
59 if (iabsor.eq.0) iabsor = nbabsor
60 ebalance = enerflow(k) - enerflow(k+1) - eleaklat(k)
61 edeptot(iabsor) = edeptot(iabsor) + ebalance
66 call gfmate(materabs(k),matnam,dua,duz,dud,dur,dui,udu,idu)
67 CALL gevkev(abs(edeptot(k)),edtot,unit1)
68 if (edeptot(k).lt.0.) edtot = -edtot
69 print 762,k,matnam,edtot,unit1
81 CALL hrput(0,filename,
'N')
86 749
FORMAT(/, 60(1h-),/)
87 750
FORMAT(1
x,
'Nb of events:',i6)
88 751
FORMAT(1
x,
'AbsNo Material',5
x,
'Energy deposit',14
x,
'Trck length')
89 752
FORMAT(i5,3
x,a10,f8.3,a4,
' +- ',f6.2,a4,f9.3,
' cm +- ',f6.2,
' cm')
90 761
FORMAT(
' Energy deposition from energy flow balance:',/,/,
91 & 1
x,
'AbsNo Material',5
x,
'Total Edep')
92 762
FORMAT(i5,3
x,a10,f10.3,a4)
G4int mod(G4int a, G4int b)
static c2_sqrt_p< float_type > & sqrt()
make a *new object
void print(const std::vector< T > &data)