The Gaudi Framework  v37r1 (a7f61348)
GaudiPython.Bindings.AppMgr Class Reference
Inheritance diagram for GaudiPython.Bindings.AppMgr:
Collaboration diagram for GaudiPython.Bindings.AppMgr:

Public Member Functions

def __new__ (cls, *args, **kwargs)
 
def __reset__ (self)
 
def __init__ (self, outputlevel=-1, joboptions=None, selfoptions={}, dllname=None, factname=None)
 
def opts (self)
 
def state (self)
 
def FSMState (self)
 
def targetFSMState (self)
 
def service (self, name, interface=None)
 
def declSvcType (self, svcname, svctype)
 
def createSvc (self, name)
 
def services (self)
 
def algorithm (self, name, createIf=False)
 
def algorithms (self)
 
def tool (self, name)
 
def property (self, name)
 
def datasvc (self, name)
 
def evtsvc (self)
 
def detsvc (self)
 
def filerecordsvc (self)
 
def evtsel (self)
 
def histsvc (self, name="HistogramDataSvc")
 
def ntuplesvc (self, name="NTupleSvc")
 
def partsvc (self)
 
def toolsvc (self, name="ToolSvc")
 
def readOptions (self, file)
 
def addAlgorithm (self, alg)
 
def setAlgorithms (self, algs)
 
def removeAlgorithm (self, alg)
 
def printAlgsSequences (self)
 
def config (self, **args)
 
def configure (self)
 
def start (self)
 
def terminate (self)
 
def run (self, n)
 
def executeEvent (self)
 
def execute (self)
 
def runSelectedEvents (self, pfn, events)
 
def exit (self)
 
def __del__ (self)
 
- Public Member Functions inherited from GaudiPython.Bindings.iService
def __init__ (self, name, isvc=cppyy.nullptr)
 
def retrieveInterface (self)
 
def initialize (self)
 
def stop (self)
 
def finalize (self)
 
def reinitialize (self)
 
def restart (self)
 
def isValid (self)
 
- Public Member Functions inherited from GaudiPython.Bindings.iProperty
def getInterface (self)
 
def __call_interface_method__ (self, ifname, method, *args)
 
def __setattr__ (self, name, value)
 
def __getattr__ (self, name)
 
def properties (self)
 
def name (self)
 

Public Attributes

 JobOptionsType
 
 OutputLevel
 
 topAlg
 

Static Public Attributes

 evtSvc
 
 histSvc
 
 ntupleSvc
 
 evtSel
 
 detSvc
 
 toolSvc
 
 partSvc
 

Detailed Description

Definition at line 863 of file Bindings.py.

Constructor & Destructor Documentation

◆ __init__()

def GaudiPython.Bindings.AppMgr.__init__ (   self,
  outputlevel = -1,
  joboptions = None,
  selfoptions = {},
  dllname = None,
  factname = None 
)

Definition at line 886 of file Bindings.py.

886  def __init__(
887  self,
888  outputlevel=-1,
889  joboptions=None,
890  selfoptions={},
891  dllname=None,
892  factname=None,
893  ):
894  global _gaudi
895  if _gaudi:
896  return
897  # Make sure the python stdout buffer is flushed before c++ runs
898  sys.stdout.flush()
899  # Protection against multiple calls to exit() if the finalization fails
900  self.__dict__["_exit_called"] = False
901  # keep the Gaudi namespace around (so it is still available during atexit shutdown)...
902  self.__dict__["_gaudi_ns"] = Gaudi
903  try:
904  from GaudiKernel.Proxy.Configurable import expandvars
905  except ImportError:
906  # pass-through implementation if expandvars is not defined (AthenaCommon)
907  def expandvars(data):
908  return data
909 
910  if dllname and factname:
911  self.__dict__["_appmgr"] = gbl.Gaudi.createApplicationMgr(dllname, factname)
912  elif dllname:
913  self.__dict__["_appmgr"] = gbl.Gaudi.createApplicationMgr(dllname)
914  else:
915  self.__dict__["_appmgr"] = gbl.Gaudi.createApplicationMgr()
916  self.__dict__["_svcloc"] = gbl.Gaudi.svcLocator()
917  self.__dict__["_algmgr"] = InterfaceCast(gbl.IAlgManager)(self._appmgr)
918  self.__dict__["_evtpro"] = InterfaceCast(gbl.IEventProcessor)(self._appmgr)
919  self.__dict__["_svcmgr"] = InterfaceCast(gbl.ISvcManager)(self._appmgr)
920  self.__dict__["pyalgorithms"] = []
921  iService.__init__(self, "ApplicationMgr", self._appmgr)
922  # ------python specific initialization-------------------------------------
923  if self.FSMState() < Gaudi.StateMachine.CONFIGURED: # Not yet configured
924  self.JobOptionsType = "NONE"
925  if joboptions:
926  from GaudiKernel.ProcessJobOptions import importOptions
927 
928  importOptions(joboptions)
929  # Ensure that the ConfigurableUser instances have been applied
930  import GaudiKernel.Proxy.Configurable
931 
932  if hasattr(GaudiKernel.Proxy.Configurable, "applyConfigurableUsers"):
933  GaudiKernel.Proxy.Configurable.applyConfigurableUsers()
934  # This is the default and could be overridden with "selfopts"
935  self.OutputLevel = 3
936  try:
937  appMgr = Configurable.allConfigurables["ApplicationMgr"]
938  selfprops = expandvars(appMgr.getValuedProperties())
939  except KeyError:
940  selfprops = {}
941  for p, v in selfprops.items():
942  setattr(self, p, v)
943  for p, v in selfoptions.items():
944  setattr(self, p, v)
945  # Override job options
946  if outputlevel != -1:
947  self.OutputLevel = outputlevel
948  self.configure()
949  # ---MessageSvc------------------------------------------------------------
950  ms = self.service("MessageSvc")
951  if "MessageSvc" in Configurable.allConfigurables:
952  msprops = Configurable.allConfigurables["MessageSvc"]
953  ms = self.service("MessageSvc")
954  if hasattr(msprops, "getValuedProperties"):
955  msprops = expandvars(msprops.getValuedProperties())
956  for p, v in msprops.items():
957  setattr(ms, p, v)
958  if outputlevel != -1:
959  ms.OutputLevel = outputlevel
960  # ------Configurables initialization (part2)-------------------------------
961  for n in getNeededConfigurables():
962  c = Configurable.allConfigurables[n]
963  if n in ["ApplicationMgr", "MessageSvc"]:
964  continue # These are already done---
965  for p, v in c.getValuedProperties().items():
966  v = expandvars(v)
967  # Note: AthenaCommon.Configurable does not have Configurable.PropertyReference
968  if hasattr(Configurable, "PropertyReference") and isinstance(
969  v, Configurable.PropertyReference
970  ):
971  # this is done in "getFullName", but the exception is ignored,
972  # so we do it again to get it
973  v = v.__resolve__()
974  if isinstance(v, str):
975  v = repr(v) # need double quotes
976  gbl.GaudiPython.Helpers.setProperty(
977  self._svcloc, ".".join([n, p]), str(v)
978  )
979  if hasattr(Configurable, "_configurationLocked"):
980  Configurable._configurationLocked = True
981 
982  # Ensure that the exit method is called when exiting from Python
983  import atexit
984 
985  atexit.register(self.exit)
986 
987  # ---Hack to avoid bad interactions with the ROOT exit handler
988  # let's install a private version of atexit.register that detects when
989  # the ROOT exit handler is installed and adds our own after it to ensure
990  # it is called before.
991  orig_register = atexit.register
992 
993  def register(func, *targs, **kargs):
994  orig_register(func, *targs, **kargs)
995  if hasattr(func, "__module__") and func.__module__ == "ROOT":
996  orig_register(self.exit)
997  # we do not need to remove out handler from the list because
998  # it can be safely called more than once
999 
1000  register.__doc__ = (
1001  orig_register.__doc__
1002  + "\nNote: version hacked by GaudiPython to work "
1003  + "around a problem with the ROOT exit handler"
1004  )
1005  atexit.register = register
1006 

◆ __del__()

def GaudiPython.Bindings.AppMgr.__del__ (   self)

Definition at line 1308 of file Bindings.py.

1308  def __del__(self):
1309  self.exit()
1310 

Member Function Documentation

◆ __new__()

def GaudiPython.Bindings.AppMgr.__new__ (   cls,
args,
**  kwargs 
)

Definition at line 864 of file Bindings.py.

864  def __new__(cls, *args, **kwargs):
865  global _gaudi
866  if not _gaudi:
867  newobj = object.__new__(cls)
868  cls.__init__(newobj, *args, **kwargs)
869  _gaudi = newobj
870  return _gaudi
871 

◆ __reset__()

def GaudiPython.Bindings.AppMgr.__reset__ (   self)

Definition at line 872 of file Bindings.py.

872  def __reset__(self):
873  global _gaudi
874  # Stop, Finalize and Terminate the current AppMgr
875  self.exit()
876  # release interfaces
877  self._evtpro.release()
878  self._svcloc.release()
879  self._appmgr.release()
880  # Reset the C++ globals
881  gbl.Gaudi.setInstance(makeNullPointer("ISvcLocator"))
882  gbl.Gaudi.setInstance(makeNullPointer("IAppMgrUI"))
883  # Reset the Python global
884  _gaudi = None
885 

◆ addAlgorithm()

def GaudiPython.Bindings.AppMgr.addAlgorithm (   self,
  alg 
)
Add an Algorithm to the list of Top algorithms. It can be either a instance of
an Algorithm class or it name

Definition at line 1107 of file Bindings.py.

1107  def addAlgorithm(self, alg):
1108  """Add an Algorithm to the list of Top algorithms. It can be either a instance of
1109  an Algorithm class or it name"""
1110  if type(alg) is str:
1111  self.topAlg += [alg]
1112  else:
1113  self.pyalgorithms.append(alg)
1114  setOwnership(alg, 0)
1115  if self.targetFSMState() >= Gaudi.StateMachine.INITIALIZED:
1116  alg.sysInitialize()
1117  if self.targetFSMState() == Gaudi.StateMachine.RUNNING:
1118  alg.sysStart()
1119  self.topAlg += [alg.name()]
1120 

◆ algorithm()

def GaudiPython.Bindings.AppMgr.algorithm (   self,
  name,
  createIf = False 
)

Definition at line 1039 of file Bindings.py.

1039  def algorithm(self, name, createIf=False):
1040  alg = Helper.algorithm(self._algmgr, name, createIf)
1041  if not alg:
1042  return iAlgorithm(name, alg)
1043  else:
1044  return iAlgorithm(alg.name(), alg)
1045 

◆ algorithms()

def GaudiPython.Bindings.AppMgr.algorithms (   self)

Definition at line 1046 of file Bindings.py.

1046  def algorithms(self):
1047  l = self._algmgr.getAlgorithms()
1048  return [a.name() for a in l]
1049 

◆ config()

def GaudiPython.Bindings.AppMgr.config (   self,
**  args 
)
Simple utility to perform the configuration of Gaudi application.
It reads the set of input job-options files, and set few
additional parameters 'options' through the usage of temporary *.opts file
Usage:
gaudi.config( files   = [ '$GAUSSOPTS/Gauss.opts'                     ,
                  '$DECFILESROOT/options/10022_010.0GeV.opts' ] ,
      options = [ 'EventSelector.PrintFreq   =   5  '         ] )

Definition at line 1178 of file Bindings.py.

1178  def config(self, **args):
1179  """
1180  Simple utility to perform the configuration of Gaudi application.
1181  It reads the set of input job-options files, and set few
1182  additional parameters 'options' through the usage of temporary *.opts file
1183  Usage:
1184  gaudi.config( files = [ '$GAUSSOPTS/Gauss.opts' ,
1185  '$DECFILESROOT/options/10022_010.0GeV.opts' ] ,
1186  options = [ 'EventSelector.PrintFreq = 5 ' ] )
1187  """
1188  files = args.get("files", [])
1189  for file in files:
1190  sc = self.readOptions(file)
1191  if sc.isFailure():
1192  raise RuntimeError(' Unable to read file "' + file + '" ')
1193  options = args.get("options", None)
1194  if options:
1195  import tempfile
1196 
1197  tmpfilename = tempfile.mktemp()
1198  tmpfile = open(tmpfilename, "w")
1199  tmpfile.write("#pragma print on \n")
1200  tmpfile.write(
1201  '/// File "' + tmpfilename + '" generated by GaudiPython \n\n'
1202  )
1203  for opt in options:
1204  if type(options) is dict:
1205  tmpfile.write(
1206  " \t "
1207  + opt
1208  + " = "
1209  + options[opt]
1210  + " ; // added by GaudiPython \n"
1211  )
1212  else:
1213  tmpfile.write(" \t " + opt + " ; // added by GaudiPython \n")
1214  tmpfile.write(
1215  '/// End of file "' + tmpfilename + '" generated by GaudiPython \n\n'
1216  )
1217  tmpfile.close()
1218  sc = self.readOptions(tmpfilename)
1219  if sc.isFailure():
1220  raise RuntimeError(' Unable to read file "' + tmpfilename + '" ')
1221  os.remove(tmpfilename)
1222 
1223  return SUCCESS
1224 

◆ configure()

def GaudiPython.Bindings.AppMgr.configure (   self)

Definition at line 1225 of file Bindings.py.

1225  def configure(self):
1226  return self._appmgr.configure()
1227 

◆ createSvc()

def GaudiPython.Bindings.AppMgr.createSvc (   self,
  name 
)

Definition at line 1032 of file Bindings.py.

1032  def createSvc(self, name):
1033  return Helper.service(self._svcloc, name, True)
1034 

◆ datasvc()

def GaudiPython.Bindings.AppMgr.datasvc (   self,
  name 
)

Definition at line 1061 of file Bindings.py.

1061  def datasvc(self, name):
1062  if self.state() == Gaudi.StateMachine.CONFIGURED:
1063  self.initialize()
1064  svc = Helper.service(self._svcloc, name)
1065  return iDataSvc(name, svc)
1066 

◆ declSvcType()

def GaudiPython.Bindings.AppMgr.declSvcType (   self,
  svcname,
  svctype 
)

Definition at line 1029 of file Bindings.py.

1029  def declSvcType(self, svcname, svctype):
1030  self._svcmgr.declareSvcType(svcname, svctype)
1031 

◆ detsvc()

def GaudiPython.Bindings.AppMgr.detsvc (   self)

Definition at line 1070 of file Bindings.py.

1070  def detsvc(self):
1071  return self.datasvc("DetectorDataSvc")
1072 

◆ evtsel()

def GaudiPython.Bindings.AppMgr.evtsel (   self)

Definition at line 1076 of file Bindings.py.

1076  def evtsel(self):
1077  if self.state() == Gaudi.StateMachine.CONFIGURED:
1078  self.initialize()
1079  if not hasattr(self, "_evtsel"):
1080  self.__dict__["_evtsel"] = iEventSelector()
1081  return self._evtsel
1082 

◆ evtsvc()

def GaudiPython.Bindings.AppMgr.evtsvc (   self)

Definition at line 1067 of file Bindings.py.

1067  def evtsvc(self):
1068  return self.datasvc("EventDataSvc")
1069 

◆ execute()

def GaudiPython.Bindings.AppMgr.execute (   self)

Definition at line 1248 of file Bindings.py.

1248  def execute(self):
1249  return self._evtpro.executeEvent()
1250 

◆ executeEvent()

def GaudiPython.Bindings.AppMgr.executeEvent (   self)

Definition at line 1245 of file Bindings.py.

1245  def executeEvent(self):
1246  return self._evtpro.executeEvent()
1247 

◆ exit()

def GaudiPython.Bindings.AppMgr.exit (   self)

Definition at line 1293 of file Bindings.py.

1293  def exit(self):
1294  # Protection against multiple calls to exit() if the finalization fails
1295  if not self._exit_called:
1296  self.__dict__["_exit_called"] = True
1297  Gaudi = self._gaudi_ns
1298  if self.FSMState() == Gaudi.StateMachine.RUNNING:
1299  self._appmgr.stop().ignore()
1300  if self.FSMState() == Gaudi.StateMachine.INITIALIZED:
1301  self._appmgr.finalize().ignore()
1302  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1303  self._appmgr.terminate()
1304  return SUCCESS
1305 

◆ filerecordsvc()

def GaudiPython.Bindings.AppMgr.filerecordsvc (   self)

Definition at line 1073 of file Bindings.py.

1073  def filerecordsvc(self):
1074  return self.datasvc("FileRecordDataSvc")
1075 

◆ FSMState()

def GaudiPython.Bindings.AppMgr.FSMState (   self)

Definition at line 1016 of file Bindings.py.

1016  def FSMState(self):
1017  return self._isvc.FSMState()
1018 

◆ histsvc()

def GaudiPython.Bindings.AppMgr.histsvc (   self,
  name = "HistogramDataSvc" 
)

Definition at line 1083 of file Bindings.py.

1083  def histsvc(self, name="HistogramDataSvc"):
1084  svc = Helper.service(self._svcloc, name)
1085  return iHistogramSvc(name, svc)
1086 

◆ ntuplesvc()

def GaudiPython.Bindings.AppMgr.ntuplesvc (   self,
  name = "NTupleSvc" 
)

Definition at line 1087 of file Bindings.py.

1087  def ntuplesvc(self, name="NTupleSvc"):
1088  if name not in self.ExtSvc:
1089  self.ExtSvc += [name]
1090  # if self.HistogramPersistency == 'NONE' : self.HistogramPersistency = 'ROOT'
1091  svc = Helper.service(self._svcloc, name, True)
1092  return iNTupleSvc(name, svc)
1093 

◆ opts()

def GaudiPython.Bindings.AppMgr.opts (   self)

Definition at line 1008 of file Bindings.py.

1008  def opts(self):
1009  if "_svcloc" in self.__dict__:
1010  return self._svcloc.getOptsSvc()
1011  return None
1012 

◆ partsvc()

def GaudiPython.Bindings.AppMgr.partsvc (   self)

Definition at line 1094 of file Bindings.py.

1094  def partsvc(self):
1095  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1096  self.initialize()
1097  svc = Helper.service(self._svcloc, "ParticlePropertySvc")
1098  return InterfaceCast(gbl.IParticlePropertySvc)(svc)
1099 

◆ printAlgsSequences()

def GaudiPython.Bindings.AppMgr.printAlgsSequences (   self)
Print the sequence of Algorithms.

Definition at line 1151 of file Bindings.py.

1151  def printAlgsSequences(self):
1152  """
1153  Print the sequence of Algorithms.
1154  """
1155 
1156  def printAlgo(algName, appMgr, prefix=" "):
1157  print(prefix + algName)
1158  alg = appMgr.algorithm(algName.split("/")[-1])
1159  prop = alg.properties()
1160  if "Members" in prop:
1161  subs = prop["Members"].value()
1162  for i in subs:
1163  printAlgo(i.strip('"'), appMgr, prefix + " ")
1164 
1165  mp = self.properties()
1166  prefix = "ApplicationMgr SUCCESS "
1167  print(
1168  prefix
1169  + "****************************** Algorithm Sequence ****************************"
1170  )
1171  for i in mp["TopAlg"].value():
1172  printAlgo(i, self, prefix)
1173  print(
1174  prefix
1175  + "******************************************************************************"
1176  )
1177 

◆ property()

def GaudiPython.Bindings.AppMgr.property (   self,
  name 
)

Definition at line 1053 of file Bindings.py.

1053  def property(self, name):
1054  if name in self.algorithms():
1055  return self.algorithm(name)
1056  elif name in self.services():
1057  return self.service(name)
1058  else:
1059  return iProperty(name)
1060 

◆ readOptions()

def GaudiPython.Bindings.AppMgr.readOptions (   self,
  file 
)

Definition at line 1104 of file Bindings.py.

1104  def readOptions(self, file):
1105  return self.opts.readOptions(file)
1106 

◆ removeAlgorithm()

def GaudiPython.Bindings.AppMgr.removeAlgorithm (   self,
  alg 
)
Remove an Algorithm to the list of Top algorithms. It can be either a instance of
an Algorithm class or it name

Definition at line 1139 of file Bindings.py.

1139  def removeAlgorithm(self, alg):
1140  """Remove an Algorithm to the list of Top algorithms. It can be either a instance of
1141  an Algorithm class or it name"""
1142  tmp = self.topAlg
1143  if type(alg) is str:
1144  tmp.remove(alg)
1145  else:
1146  tmp.remove(alg.name())
1147  self.pyalgorithms.remove(alg)
1148  setOwnership(alg, 1)
1149  self.topAlg = tmp
1150 

◆ run()

def GaudiPython.Bindings.AppMgr.run (   self,
  n 
)

Definition at line 1234 of file Bindings.py.

1234  def run(self, n):
1235  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1236  sc = self.initialize()
1237  if sc.isFailure() or self.ReturnCode != 0:
1238  return sc
1239  if self.FSMState() == Gaudi.StateMachine.INITIALIZED:
1240  sc = self.start()
1241  if sc.isFailure() or self.ReturnCode != 0:
1242  return sc
1243  return self._evtpro.executeRun(n)
1244 

◆ runSelectedEvents()

def GaudiPython.Bindings.AppMgr.runSelectedEvents (   self,
  pfn,
  events 
)

Definition at line 1251 of file Bindings.py.

1251  def runSelectedEvents(self, pfn, events):
1252  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1253  sc = self.initialize()
1254  if sc.isFailure():
1255  return sc
1256  if self.FSMState() == Gaudi.StateMachine.INITIALIZED:
1257  sc = self.start()
1258  if sc.isFailure():
1259  return sc
1260  # --- Access a number of services ----
1261  if not hasattr(self, "_perssvc"):
1262  self.__dict__["_perssvc"] = self.service(
1263  "EventPersistencySvc", "IAddressCreator"
1264  )
1265  if not hasattr(self, "_filecat"):
1266  self.__dict__["_filecat"] = self.service(
1267  "FileCatalog", "Gaudi::IFileCatalog"
1268  )
1269  if not hasattr(self, "_evtmgr"):
1270  self.__dict__["_evtmgr"] = self.service("EventDataSvc", "IDataManagerSvc")
1271  # --- Get FID from PFN and number of events in file
1272  if pfn.find("PFN:") == 0:
1273  pfn = pfn[4:]
1274  fid, maxevt = _getFIDandEvents(pfn)
1275  # --- Add FID into catalog if needed ---
1276  if not self._filecat.existsFID(fid):
1277  self._filecat.registerPFN(fid, pfn, "")
1278  # --- Loop over events
1279  if type(events) is not list:
1280  events = (events,)
1281  for evt in events:
1282  # --- Create POOL Address from Generic Address
1283  gadd = gbl.GenericAddress(0x02, 1, fid, "/Event", 0, evt)
1284  oadd = makeNullPointer("IOpaqueAddress")
1285  self._perssvc.createAddress(
1286  gadd.svcType(), gadd.clID(), gadd.par(), gadd.ipar(), oadd
1287  )
1288  # --- Clear TES, set root and run all algorithms
1289  self._evtmgr.clearStore()
1290  self._evtmgr.setRoot("/Event", oadd)
1291  self._evtpro.executeEvent()
1292 

◆ service()

def GaudiPython.Bindings.AppMgr.service (   self,
  name,
  interface = None 
)

Definition at line 1022 of file Bindings.py.

1022  def service(self, name, interface=None):
1023  svc = Helper.service(self._svcloc, name)
1024  if interface:
1025  return InterfaceCast(interface)(svc)
1026  else:
1027  return iService(name, svc)
1028 

◆ services()

def GaudiPython.Bindings.AppMgr.services (   self)

Definition at line 1035 of file Bindings.py.

1035  def services(self):
1036  l = self._svcloc.getServices()
1037  return [s.name() for s in l]
1038 

◆ setAlgorithms()

def GaudiPython.Bindings.AppMgr.setAlgorithms (   self,
  algs 
)
Set the list of Top Algorithms.
It can be an individual of a list of algorithms names or instances

Definition at line 1121 of file Bindings.py.

1121  def setAlgorithms(self, algs):
1122  """Set the list of Top Algorithms.
1123  It can be an individual of a list of algorithms names or instances"""
1124  if type(algs) is not list:
1125  algs = [algs]
1126  names = []
1127  for alg in algs:
1128  if type(alg) is str:
1129  names.append(alg)
1130  else:
1131  self.pyalgorithms.append(alg)
1132  if self.targetFSMState() >= Gaudi.StateMachine.INITIALIZED:
1133  alg.sysInitialize()
1134  if self.targetFSMState() == Gaudi.StateMachine.RUNNING:
1135  alg.sysStart()
1136  names.append(alg.name())
1137  self.topAlg = names
1138 

◆ start()

def GaudiPython.Bindings.AppMgr.start (   self)

Reimplemented from GaudiPython.Bindings.iService.

Definition at line 1228 of file Bindings.py.

1228  def start(self):
1229  return self._appmgr.start()
1230 

◆ state()

def GaudiPython.Bindings.AppMgr.state (   self)

Definition at line 1013 of file Bindings.py.

1013  def state(self):
1014  return self._isvc.FSMState()
1015 

◆ targetFSMState()

def GaudiPython.Bindings.AppMgr.targetFSMState (   self)

Definition at line 1019 of file Bindings.py.

1019  def targetFSMState(self):
1020  return self._isvc.targetFSMState()
1021 

◆ terminate()

def GaudiPython.Bindings.AppMgr.terminate (   self)

Definition at line 1231 of file Bindings.py.

1231  def terminate(self):
1232  return self._appmgr.terminate()
1233 

◆ tool()

def GaudiPython.Bindings.AppMgr.tool (   self,
  name 
)

Definition at line 1050 of file Bindings.py.

1050  def tool(self, name):
1051  return iAlgTool(name)
1052 

◆ toolsvc()

def GaudiPython.Bindings.AppMgr.toolsvc (   self,
  name = "ToolSvc" 
)

Definition at line 1100 of file Bindings.py.

1100  def toolsvc(self, name="ToolSvc"):
1101  svc = Helper.service(self._svcloc, name, True)
1102  return iToolSvc(name, svc)
1103 

Member Data Documentation

◆ detSvc

GaudiPython.Bindings.AppMgr.detSvc
static

Definition at line 1315 of file Bindings.py.

◆ evtSel

GaudiPython.Bindings.AppMgr.evtSel
static

Definition at line 1314 of file Bindings.py.

◆ evtSvc

GaudiPython.Bindings.AppMgr.evtSvc
static

Definition at line 1311 of file Bindings.py.

◆ histSvc

GaudiPython.Bindings.AppMgr.histSvc
static

Definition at line 1312 of file Bindings.py.

◆ JobOptionsType

GaudiPython.Bindings.AppMgr.JobOptionsType

Definition at line 917 of file Bindings.py.

◆ ntupleSvc

GaudiPython.Bindings.AppMgr.ntupleSvc
static

Definition at line 1313 of file Bindings.py.

◆ OutputLevel

GaudiPython.Bindings.AppMgr.OutputLevel

Definition at line 928 of file Bindings.py.

◆ partSvc

GaudiPython.Bindings.AppMgr.partSvc
static

Definition at line 1317 of file Bindings.py.

◆ toolSvc

GaudiPython.Bindings.AppMgr.toolSvc
static

Definition at line 1316 of file Bindings.py.

◆ topAlg

GaudiPython.Bindings.AppMgr.topAlg

Definition at line 1137 of file Bindings.py.


The documentation for this class was generated from the following file:
GaudiPython.Bindings.makeNullPointer
makeNullPointer
Definition: Bindings.py:130
Histograms_with_global.algorithms
algorithms
Definition: Histograms_with_global.py:19
GaudiAlg.Algs.iAlgTool
iAlgTool
Definition: Algs.py:68
conf.release
string release
Definition: conf.py:27
GaudiPython.Bindings.setOwnership
setOwnership
Definition: Bindings.py:131
IOTest.start
start
Definition: IOTest.py:108
GaudiAlg.Algs.iAlgorithm
iAlgorithm
Definition: Algs.py:67
GaudiKernel.Proxy.getNeededConfigurables
getNeededConfigurables
Definition: Proxy.py:30
prepareBenchmark.config
config
Definition: prepareBenchmark.py:43
bug_34121.tool
tool
Definition: bug_34121.py:17
gaudirun.opts
opts
Definition: gaudirun.py:338
GaudiKernel.ProcessJobOptions
Definition: ProcessJobOptions.py:1
GaudiPython.Pythonizations.execute
execute
Definition: Pythonizations.py:588
GaudiPython.Pythonizations.executeEvent
executeEvent
Helpers for re-entrant interfaces.
Definition: Pythonizations.py:584
GaudiKernel.ProcessJobOptions.importOptions
def importOptions(optsfile)
Definition: ProcessJobOptions.py:541
GaudiPython.Bindings._getFIDandEvents
def _getFIDandEvents(pfn)
Definition: Bindings.py:1323
gaudirun.type
type
Definition: gaudirun.py:162
ExtendedProperties.configure
def configure(gaudi=None)
Definition: ExtendedProperties.py:39
compareRootHistos.state
state
Definition: compareRootHistos.py:497
GaudiKernel.Configurable.expandvars
def expandvars(data)
Definition: Configurable.py:78
GaudiPython.Pythonizations.items
items
Definition: Pythonizations.py:546