3A test for comparing the total absolute photon counts on the surface of a
4source with the expected value. A uniform spectrum between 15keV-25keV in a
5near-vaccuum source is used so the expected spectrum can easily be calculated
15EGSINP =
"spec_absolute.egsinp"
16TIME_LIMIT_S_PER_MHZ = 6/2993.
18EMIN, EMAX = 0.015, 0.025
27 energies, counts, uncs = read_csv_spectrum(inp_name+
".surfcount.csv")
29 for e, c
in zip(energies, counts):
31 if not values_close(c, exp, 0.005):
32 return False,
"Count at %f=%f" %(e, c),
"Expected %f" % exp
compare_results(egslst, inp_name)