The Gaudi Framework  v36r13 (995e4364)
GaudiSvc Namespace Reference

Namespaces

 ExtraModules
 

Functions

def getMetaData (path)
 (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE". More...
 

Function Documentation

◆ getMetaData()

def GaudiSvc.getMetaData (   path)

(c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE".

# # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. #

Extract job metadata recorded by Gaudi::MetaDataSvc from a file.

Definition at line 11 of file __init__.py.

11 def getMetaData(path):
12  """
13  Extract job metadata recorded by Gaudi::MetaDataSvc from a file.
14  """
15  from ROOT import TFile
16 
17  f = TFile.Open(path)
18  if not f:
19  raise RuntimeError("cannot open {0}".format(path))
20  try:
21  return dict(f.info)
22  except AttributeError:
23  return {}
GaudiSvc.getMetaData
def getMetaData(path)
(c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations # # This software i...
Definition: __init__.py:11
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119