7 from PathResolver
import PathResolver
9 tool = ROOT.PMGTools.PMGCrossSectionTool(
'MyXSectionTool')
11 fn =
'/eos/atlas/atlascerngroupdisk/asg-calib/dev/PMGTools/PMGxsecDB_mc16.txt'
13 vv = ROOT.std.vector(
'std::string')()
16 tool.readInfosFromFiles(vv)
21 print(
'%d sample loaded' % tool.getLoadedDSIDs().
size())
23 print(
'Sample dsid = ', sample_id)
24 print(
'Sample name = ', tool.getSampleName(sample_id))
25 print(
'xsection [pb] = ', tool.getSampleXsection(sample_id))
26 print(
'filter eff = ', tool.getFilterEff(sample_id))
27 print(
'k factor = ', tool.getKfactor(sample_id))
28 print(
'xsection uncertainty = ', tool.getXsectionUncertainty(sample_id))
29 print(
'xsection uncertainty up = ', tool.getXsectionUncertaintyUP(sample_id))
30 print(
'xsection uncertainty down = ', tool.getXsectionUncertaintyDOWN(sample_id))