The Gaudi Framework  v37r0 (b608885e)
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 hasattr(Configurable, "PropertyReference") and isinstance(
975  v, Configurable.PropertyReference
976  ):
977  # this is done in "getFullName", but the exception is ignored,
978  # so we do it again to get it
979  v = v.__resolve__()
980  if isinstance(v, str):
981  v = repr(v) # need double quotes
982  if isinstance(v, long):
983  v = "%d" % v # prevent pending 'L'
984  gbl.GaudiPython.Helpers.setProperty(
985  self._svcloc, ".".join([n, p]), str(v)
986  )
987  if hasattr(Configurable, "_configurationLocked"):
988  Configurable._configurationLocked = True
989 
990  # Ensure that the exit method is called when exiting from Python
991  import atexit
992 
993  atexit.register(self.exit)
994 
995  # ---Hack to avoid bad interactions with the ROOT exit handler
996  # let's install a private version of atexit.register that detects when
997  # the ROOT exit handler is installed and adds our own after it to ensure
998  # it is called before.
999  orig_register = atexit.register
1000 
1001  def register(func, *targs, **kargs):
1002  orig_register(func, *targs, **kargs)
1003  if hasattr(func, "__module__") and func.__module__ == "ROOT":
1004  orig_register(self.exit)
1005  # we do not need to remove out handler from the list because
1006  # it can be safely called more than once
1007 
1008  register.__doc__ = (
1009  orig_register.__doc__
1010  + "\nNote: version hacked by GaudiPython to work "
1011  + "around a problem with the ROOT exit handler"
1012  )
1013  atexit.register = register
1014 

◆ __del__()

def GaudiPython.Bindings.AppMgr.__del__ (   self)

Definition at line 1316 of file Bindings.py.

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

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

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

◆ algorithm()

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

Definition at line 1047 of file Bindings.py.

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

◆ algorithms()

def GaudiPython.Bindings.AppMgr.algorithms (   self)

Definition at line 1054 of file Bindings.py.

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

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

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

◆ configure()

def GaudiPython.Bindings.AppMgr.configure (   self)

Definition at line 1233 of file Bindings.py.

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

◆ createSvc()

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

Definition at line 1040 of file Bindings.py.

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

◆ datasvc()

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

Definition at line 1069 of file Bindings.py.

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

◆ declSvcType()

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

Definition at line 1037 of file Bindings.py.

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

◆ detsvc()

def GaudiPython.Bindings.AppMgr.detsvc (   self)

Definition at line 1078 of file Bindings.py.

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

◆ evtsel()

def GaudiPython.Bindings.AppMgr.evtsel (   self)

Definition at line 1084 of file Bindings.py.

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

◆ evtsvc()

def GaudiPython.Bindings.AppMgr.evtsvc (   self)

Definition at line 1075 of file Bindings.py.

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

◆ execute()

def GaudiPython.Bindings.AppMgr.execute (   self)

Definition at line 1256 of file Bindings.py.

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

◆ executeEvent()

def GaudiPython.Bindings.AppMgr.executeEvent (   self)

Definition at line 1253 of file Bindings.py.

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

◆ exit()

def GaudiPython.Bindings.AppMgr.exit (   self)

Definition at line 1301 of file Bindings.py.

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

◆ filerecordsvc()

def GaudiPython.Bindings.AppMgr.filerecordsvc (   self)

Definition at line 1081 of file Bindings.py.

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

◆ FSMState()

def GaudiPython.Bindings.AppMgr.FSMState (   self)

Definition at line 1024 of file Bindings.py.

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

◆ histsvc()

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

Definition at line 1091 of file Bindings.py.

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

◆ ntuplesvc()

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

Definition at line 1095 of file Bindings.py.

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

◆ opts()

def GaudiPython.Bindings.AppMgr.opts (   self)

Definition at line 1016 of file Bindings.py.

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

◆ partsvc()

def GaudiPython.Bindings.AppMgr.partsvc (   self)

Definition at line 1102 of file Bindings.py.

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

◆ printAlgsSequences()

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

Definition at line 1159 of file Bindings.py.

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

◆ property()

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

Definition at line 1061 of file Bindings.py.

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

◆ readOptions()

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

Definition at line 1112 of file Bindings.py.

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

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

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

◆ run()

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

Definition at line 1242 of file Bindings.py.

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

◆ runSelectedEvents()

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

Definition at line 1259 of file Bindings.py.

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

◆ service()

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

Definition at line 1030 of file Bindings.py.

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

◆ services()

def GaudiPython.Bindings.AppMgr.services (   self)

Definition at line 1043 of file Bindings.py.

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

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

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

◆ start()

def GaudiPython.Bindings.AppMgr.start (   self)

Reimplemented from GaudiPython.Bindings.iService.

Definition at line 1236 of file Bindings.py.

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

◆ state()

def GaudiPython.Bindings.AppMgr.state (   self)

Definition at line 1021 of file Bindings.py.

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

◆ targetFSMState()

def GaudiPython.Bindings.AppMgr.targetFSMState (   self)

Definition at line 1027 of file Bindings.py.

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

◆ terminate()

def GaudiPython.Bindings.AppMgr.terminate (   self)

Definition at line 1239 of file Bindings.py.

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

◆ tool()

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

Definition at line 1058 of file Bindings.py.

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

◆ toolsvc()

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

Definition at line 1108 of file Bindings.py.

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

Member Data Documentation

◆ detSvc

GaudiPython.Bindings.AppMgr.detSvc
static

Definition at line 1323 of file Bindings.py.

◆ evtSel

GaudiPython.Bindings.AppMgr.evtSel
static

Definition at line 1322 of file Bindings.py.

◆ evtSvc

GaudiPython.Bindings.AppMgr.evtSvc
static

Definition at line 1319 of file Bindings.py.

◆ histSvc

GaudiPython.Bindings.AppMgr.histSvc
static

Definition at line 1320 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 1321 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 1325 of file Bindings.py.

◆ toolSvc

GaudiPython.Bindings.AppMgr.toolSvc
static

Definition at line 1324 of file Bindings.py.

◆ topAlg

GaudiPython.Bindings.AppMgr.topAlg

Definition at line 1145 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
GaudiAlg.Algs.iAlgTool
iAlgTool
Definition: Algs.py:68
conf.release
string release
Definition: conf.py:27
GaudiPython.Bindings.setOwnership
setOwnership
Definition: Bindings.py:135
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:1331
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