ATLAS Offline Software
Functions
test_PMGCrossSectionTool Namespace Reference

Functions

def main ()
 

Function Documentation

◆ main()

def test_PMGCrossSectionTool.main ( )

Definition at line 6 of file python/test_PMGCrossSectionTool.py.

6 def main():
7  from PathResolver import PathResolver
8 
9  tool = ROOT.PMGTools.PMGCrossSectionTool('MyXSectionTool')
10 
11  fn = '/eos/atlas/atlascerngroupdisk/asg-calib/dev/PMGTools/PMGxsecDB_mc16.txt'
13  vv = ROOT.std.vector('std::string')()
14  vv.push_back(fn)
15 
16  tool.readInfosFromFiles(vv)
17 
18  # take a ttbar sample as example ( users should get this from the EventInfo )
19  sample_id = 410000
20 
21  print('%d sample loaded' % tool.getLoadedDSIDs().size())
22  print()
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))
31 
32  print()
33 
PathResolver::FindCalibFile
static std::string FindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.h:108
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
test_PMGCrossSectionTool.main
def main()
Definition: python/test_PMGCrossSectionTool.py:6
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28