The Gaudi Framework  v29r0 (ff2e7097)
__init__.py
Go to the documentation of this file.
1 def getMetaData(path):
2  '''
3  Extract job metadata recorded by Gaudi::MetaDataSvc from a file.
4  '''
5  from cppyy.gbl import TFile
6  f = TFile.Open(path)
7  if not f:
8  raise RuntimeError('cannot open {0}'.format(path))
9  try:
10  return dict((i.first, i.second) for i in f.info)
11  except AttributeError:
12  return {}
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:120
def getMetaData(path)
Definition: __init__.py:1