The Gaudi Framework  v36r16 (ea80daf8)
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 869 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 892 of file Bindings.py.

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

◆ __del__()

def GaudiPython.Bindings.AppMgr.__del__ (   self)

Definition at line 1317 of file Bindings.py.

1317  def __del__(self):
1318  self.exit()
1319 

Member Function Documentation

◆ __new__()

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

Definition at line 870 of file Bindings.py.

870  def __new__(cls, *args, **kwargs):
871  global _gaudi
872  if not _gaudi:
873  newobj = object.__new__(cls)
874  cls.__init__(newobj, *args, **kwargs)
875  _gaudi = newobj
876  return _gaudi
877 

◆ __reset__()

def GaudiPython.Bindings.AppMgr.__reset__ (   self)

Definition at line 878 of file Bindings.py.

878  def __reset__(self):
879  global _gaudi
880  # Stop, Finalize and Terminate the current AppMgr
881  self.exit()
882  # release interfaces
883  self._evtpro.release()
884  self._svcloc.release()
885  self._appmgr.release()
886  # Reset the C++ globals
887  gbl.Gaudi.setInstance(makeNullPointer("ISvcLocator"))
888  gbl.Gaudi.setInstance(makeNullPointer("IAppMgrUI"))
889  # Reset the Python global
890  _gaudi = None
891 

◆ 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 1116 of file Bindings.py.

1116  def addAlgorithm(self, alg):
1117  """Add an Algorithm to the list of Top algorithms. It can be either a instance of
1118  an Algorithm class or it name"""
1119  if type(alg) is str:
1120  self.topAlg += [alg]
1121  else:
1122  self.pyalgorithms.append(alg)
1123  setOwnership(alg, 0)
1124  if self.targetFSMState() >= Gaudi.StateMachine.INITIALIZED:
1125  alg.sysInitialize()
1126  if self.targetFSMState() == Gaudi.StateMachine.RUNNING:
1127  alg.sysStart()
1128  self.topAlg += [alg.name()]
1129 

◆ algorithm()

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

Definition at line 1048 of file Bindings.py.

1048  def algorithm(self, name, createIf=False):
1049  alg = Helper.algorithm(self._algmgr, name, createIf)
1050  if not alg:
1051  return iAlgorithm(name, alg)
1052  else:
1053  return iAlgorithm(alg.name(), alg)
1054 

◆ algorithms()

def GaudiPython.Bindings.AppMgr.algorithms (   self)

Definition at line 1055 of file Bindings.py.

1055  def algorithms(self):
1056  l = self._algmgr.getAlgorithms()
1057  return [a.name() for a in l]
1058 

◆ 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 1187 of file Bindings.py.

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

◆ configure()

def GaudiPython.Bindings.AppMgr.configure (   self)

Definition at line 1234 of file Bindings.py.

1234  def configure(self):
1235  return self._appmgr.configure()
1236 

◆ createSvc()

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

Definition at line 1041 of file Bindings.py.

1041  def createSvc(self, name):
1042  return Helper.service(self._svcloc, name, True)
1043 

◆ datasvc()

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

Definition at line 1070 of file Bindings.py.

1070  def datasvc(self, name):
1071  if self.state() == Gaudi.StateMachine.CONFIGURED:
1072  self.initialize()
1073  svc = Helper.service(self._svcloc, name)
1074  return iDataSvc(name, svc)
1075 

◆ declSvcType()

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

Definition at line 1038 of file Bindings.py.

1038  def declSvcType(self, svcname, svctype):
1039  self._svcmgr.declareSvcType(svcname, svctype)
1040 

◆ detsvc()

def GaudiPython.Bindings.AppMgr.detsvc (   self)

Definition at line 1079 of file Bindings.py.

1079  def detsvc(self):
1080  return self.datasvc("DetectorDataSvc")
1081 

◆ evtsel()

def GaudiPython.Bindings.AppMgr.evtsel (   self)

Definition at line 1085 of file Bindings.py.

1085  def evtsel(self):
1086  if self.state() == Gaudi.StateMachine.CONFIGURED:
1087  self.initialize()
1088  if not hasattr(self, "_evtsel"):
1089  self.__dict__["_evtsel"] = iEventSelector()
1090  return self._evtsel
1091 

◆ evtsvc()

def GaudiPython.Bindings.AppMgr.evtsvc (   self)

Definition at line 1076 of file Bindings.py.

1076  def evtsvc(self):
1077  return self.datasvc("EventDataSvc")
1078 

◆ execute()

def GaudiPython.Bindings.AppMgr.execute (   self)

Definition at line 1257 of file Bindings.py.

1257  def execute(self):
1258  return self._evtpro.executeEvent()
1259 

◆ executeEvent()

def GaudiPython.Bindings.AppMgr.executeEvent (   self)

Definition at line 1254 of file Bindings.py.

1254  def executeEvent(self):
1255  return self._evtpro.executeEvent()
1256 

◆ exit()

def GaudiPython.Bindings.AppMgr.exit (   self)

Definition at line 1302 of file Bindings.py.

1302  def exit(self):
1303  # Protection against multiple calls to exit() if the finalization fails
1304  if not self._exit_called:
1305  self.__dict__["_exit_called"] = True
1306  Gaudi = self._gaudi_ns
1307  if self.FSMState() == Gaudi.StateMachine.RUNNING:
1308  self._appmgr.stop().ignore()
1309  if self.FSMState() == Gaudi.StateMachine.INITIALIZED:
1310  self._appmgr.finalize().ignore()
1311  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1312  self._appmgr.terminate()
1313  return SUCCESS
1314 

◆ filerecordsvc()

def GaudiPython.Bindings.AppMgr.filerecordsvc (   self)

Definition at line 1082 of file Bindings.py.

1082  def filerecordsvc(self):
1083  return self.datasvc("FileRecordDataSvc")
1084 

◆ FSMState()

def GaudiPython.Bindings.AppMgr.FSMState (   self)

Definition at line 1025 of file Bindings.py.

1025  def FSMState(self):
1026  return self._isvc.FSMState()
1027 

◆ histsvc()

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

Definition at line 1092 of file Bindings.py.

1092  def histsvc(self, name="HistogramDataSvc"):
1093  svc = Helper.service(self._svcloc, name)
1094  return iHistogramSvc(name, svc)
1095 

◆ ntuplesvc()

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

Definition at line 1096 of file Bindings.py.

1096  def ntuplesvc(self, name="NTupleSvc"):
1097  if name not in self.ExtSvc:
1098  self.ExtSvc += [name]
1099  # if self.HistogramPersistency == 'NONE' : self.HistogramPersistency = 'ROOT'
1100  svc = Helper.service(self._svcloc, name, True)
1101  return iNTupleSvc(name, svc)
1102 

◆ opts()

def GaudiPython.Bindings.AppMgr.opts (   self)

Definition at line 1017 of file Bindings.py.

1017  def opts(self):
1018  if "_svcloc" in self.__dict__:
1019  return self._svcloc.getOptsSvc()
1020  return None
1021 

◆ partsvc()

def GaudiPython.Bindings.AppMgr.partsvc (   self)

Definition at line 1103 of file Bindings.py.

1103  def partsvc(self):
1104  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1105  self.initialize()
1106  svc = Helper.service(self._svcloc, "ParticlePropertySvc")
1107  return InterfaceCast(gbl.IParticlePropertySvc)(svc)
1108 

◆ printAlgsSequences()

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

Definition at line 1160 of file Bindings.py.

1160  def printAlgsSequences(self):
1161  """
1162  Print the sequence of Algorithms.
1163  """
1164 
1165  def printAlgo(algName, appMgr, prefix=" "):
1166  print(prefix + algName)
1167  alg = appMgr.algorithm(algName.split("/")[-1])
1168  prop = alg.properties()
1169  if "Members" in prop:
1170  subs = prop["Members"].value()
1171  for i in subs:
1172  printAlgo(i.strip('"'), appMgr, prefix + " ")
1173 
1174  mp = self.properties()
1175  prefix = "ApplicationMgr SUCCESS "
1176  print(
1177  prefix
1178  + "****************************** Algorithm Sequence ****************************"
1179  )
1180  for i in mp["TopAlg"].value():
1181  printAlgo(i, self, prefix)
1182  print(
1183  prefix
1184  + "******************************************************************************"
1185  )
1186 

◆ property()

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

Definition at line 1062 of file Bindings.py.

1062  def property(self, name):
1063  if name in self.algorithms():
1064  return self.algorithm(name)
1065  elif name in self.services():
1066  return self.service(name)
1067  else:
1068  return iProperty(name)
1069 

◆ readOptions()

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

Definition at line 1113 of file Bindings.py.

1113  def readOptions(self, file):
1114  return self.opts.readOptions(file)
1115 

◆ 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 1148 of file Bindings.py.

1148  def removeAlgorithm(self, alg):
1149  """Remove an Algorithm to the list of Top algorithms. It can be either a instance of
1150  an Algorithm class or it name"""
1151  tmp = self.topAlg
1152  if type(alg) is str:
1153  tmp.remove(alg)
1154  else:
1155  tmp.remove(alg.name())
1156  self.pyalgorithms.remove(alg)
1157  setOwnership(alg, 1)
1158  self.topAlg = tmp
1159 

◆ run()

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

Definition at line 1243 of file Bindings.py.

1243  def run(self, n):
1244  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1245  sc = self.initialize()
1246  if sc.isFailure() or self.ReturnCode != 0:
1247  return sc
1248  if self.FSMState() == Gaudi.StateMachine.INITIALIZED:
1249  sc = self.start()
1250  if sc.isFailure() or self.ReturnCode != 0:
1251  return sc
1252  return self._evtpro.executeRun(n)
1253 

◆ runSelectedEvents()

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

Definition at line 1260 of file Bindings.py.

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

◆ service()

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

Definition at line 1031 of file Bindings.py.

1031  def service(self, name, interface=None):
1032  svc = Helper.service(self._svcloc, name)
1033  if interface:
1034  return InterfaceCast(interface)(svc)
1035  else:
1036  return iService(name, svc)
1037 

◆ services()

def GaudiPython.Bindings.AppMgr.services (   self)

Definition at line 1044 of file Bindings.py.

1044  def services(self):
1045  l = self._svcloc.getServices()
1046  return [s.name() for s in l]
1047 

◆ 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 1130 of file Bindings.py.

1130  def setAlgorithms(self, algs):
1131  """Set the list of Top Algorithms.
1132  It can be an individual of a list of algorithms names or instances"""
1133  if type(algs) is not list:
1134  algs = [algs]
1135  names = []
1136  for alg in algs:
1137  if type(alg) is str:
1138  names.append(alg)
1139  else:
1140  self.pyalgorithms.append(alg)
1141  if self.targetFSMState() >= Gaudi.StateMachine.INITIALIZED:
1142  alg.sysInitialize()
1143  if self.targetFSMState() == Gaudi.StateMachine.RUNNING:
1144  alg.sysStart()
1145  names.append(alg.name())
1146  self.topAlg = names
1147 

◆ start()

def GaudiPython.Bindings.AppMgr.start (   self)

Reimplemented from GaudiPython.Bindings.iService.

Definition at line 1237 of file Bindings.py.

1237  def start(self):
1238  return self._appmgr.start()
1239 

◆ state()

def GaudiPython.Bindings.AppMgr.state (   self)

Definition at line 1022 of file Bindings.py.

1022  def state(self):
1023  return self._isvc.FSMState()
1024 

◆ targetFSMState()

def GaudiPython.Bindings.AppMgr.targetFSMState (   self)

Definition at line 1028 of file Bindings.py.

1028  def targetFSMState(self):
1029  return self._isvc.targetFSMState()
1030 

◆ terminate()

def GaudiPython.Bindings.AppMgr.terminate (   self)

Definition at line 1240 of file Bindings.py.

1240  def terminate(self):
1241  return self._appmgr.terminate()
1242 

◆ tool()

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

Definition at line 1059 of file Bindings.py.

1059  def tool(self, name):
1060  return iAlgTool(name)
1061 

◆ toolsvc()

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

Definition at line 1109 of file Bindings.py.

1109  def toolsvc(self, name="ToolSvc"):
1110  svc = Helper.service(self._svcloc, name, True)
1111  return iToolSvc(name, svc)
1112 

Member Data Documentation

◆ detSvc

GaudiPython.Bindings.AppMgr.detSvc
static

Definition at line 1324 of file Bindings.py.

◆ evtSel

GaudiPython.Bindings.AppMgr.evtSel
static

Definition at line 1323 of file Bindings.py.

◆ evtSvc

GaudiPython.Bindings.AppMgr.evtSvc
static

Definition at line 1320 of file Bindings.py.

◆ histSvc

GaudiPython.Bindings.AppMgr.histSvc
static

Definition at line 1321 of file Bindings.py.

◆ JobOptionsType

GaudiPython.Bindings.AppMgr.JobOptionsType

Definition at line 923 of file Bindings.py.

◆ ntupleSvc

GaudiPython.Bindings.AppMgr.ntupleSvc
static

Definition at line 1322 of file Bindings.py.

◆ OutputLevel

GaudiPython.Bindings.AppMgr.OutputLevel

Definition at line 934 of file Bindings.py.

◆ partSvc

GaudiPython.Bindings.AppMgr.partSvc
static

Definition at line 1326 of file Bindings.py.

◆ toolSvc

GaudiPython.Bindings.AppMgr.toolSvc
static

Definition at line 1325 of file Bindings.py.

◆ topAlg

GaudiPython.Bindings.AppMgr.topAlg

Definition at line 1146 of file Bindings.py.


The documentation for this class was generated from the following file:
GaudiPython.Bindings.makeNullPointer
makeNullPointer
Definition: Bindings.py:134
Histograms_with_global.algorithms
algorithms
Definition: Histograms_with_global.py:19
Aida2RootEx.configure
def configure(gaudi=None)
Definition: Aida2RootEx.py:126
conf.release
string release
Definition: conf.py:27
GaudiPython.Bindings.setOwnership
setOwnership
Definition: Bindings.py:135
IOTest.start
start
Definition: IOTest.py:108
GaudiPython.GaudiAlgs.iAlgorithm
iAlgorithm
Definition: GaudiAlgs.py:67
GaudiKernel.Proxy.getNeededConfigurables
getNeededConfigurables
Definition: Proxy.py:30
prepareBenchmark.config
config
Definition: prepareBenchmark.py:44
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
GaudiPython.GaudiAlgs.iAlgTool
iAlgTool
Definition: GaudiAlgs.py:68
GaudiKernel.ProcessJobOptions.importOptions
def importOptions(optsfile)
Definition: ProcessJobOptions.py:541
GaudiPython.Bindings._getFIDandEvents
def _getFIDandEvents(pfn)
Definition: Bindings.py:1332
gaudirun.type
type
Definition: gaudirun.py:162
compareRootHistos.state
state
Definition: compareRootHistos.py:498
GaudiKernel.Configurable.expandvars
def expandvars(data)
Definition: Configurable.py:78
GaudiPython.Pythonizations.items
items
Definition: Pythonizations.py:546