9import g4py.emcalculator
16g4py.ExN03pl.Construct()
23gRunManager.Initialize()
24gRunManagerKernel.RunInitialization()
29 for i
in range(10,99):
30 elist.append(i/10.*10.**n *MeV)
34xsection_list= g4py.emcalculator.CalculatePhotonCrossSection(material, elist, 1)
39for x
in xsection_list:
40 xlist_tot.append((x[0]/MeV, x[1][
"tot"]/(cm2/g)))
41 xlist_comp.append((x[0]/MeV, x[1][
"compt"]/(cm2/g)))
42 xlist_pe.append((x[0]/MeV, x[1][
"phot"]/(cm2/g)))
43 xlist_conv.append((x[0]/MeV, x[1][
"conv"]/(cm2/g)))
48 "Cross Section (cm^{2}/g)")
50 "Cross Section (cm^{2}/g)", 1)
52 "Cross Section (cm^{2}/g)", 7)
54 "Cross Section (cm^{2}/g)", 3)
def make_plot(xlist, user_title, axis_titile, q_super_impose=0)
def SetMaterial(material_name)