The Gaudi Framework  v36r1 (3e2fb5a8)
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

def evtSvc = evtsvc
 
def histSvc = histsvc
 
def ntupleSvc = ntuplesvc
 
def evtSel = evtsel
 
def detSvc = detsvc
 
def toolSvc = toolsvc
 
def partSvc = partsvc
 

Detailed Description

Definition at line 842 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 865 of file Bindings.py.

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

◆ __del__()

def GaudiPython.Bindings.AppMgr.__del__ (   self)

Definition at line 1276 of file Bindings.py.

1276  def __del__(self):
1277  self.exit()
1278 

Member Function Documentation

◆ __new__()

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

Definition at line 843 of file Bindings.py.

843  def __new__(cls, *args, **kwargs):
844  global _gaudi
845  if not _gaudi:
846  newobj = object.__new__(cls)
847  cls.__init__(newobj, *args, **kwargs)
848  _gaudi = newobj
849  return _gaudi
850 

◆ __reset__()

def GaudiPython.Bindings.AppMgr.__reset__ (   self)

Definition at line 851 of file Bindings.py.

851  def __reset__(self):
852  global _gaudi
853  # Stop, Finalize and Terminate the current AppMgr
854  self.exit()
855  # release interfaces
856  self._evtpro.release()
857  self._svcloc.release()
858  self._appmgr.release()
859  # Reset the C++ globals
860  gbl.Gaudi.setInstance(makeNullPointer('ISvcLocator'))
861  gbl.Gaudi.setInstance(makeNullPointer('IAppMgrUI'))
862  # Reset the Python global
863  _gaudi = None
864 

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

1083  def addAlgorithm(self, alg):
1084  """ Add an Algorithm to the list of Top algorithms. It can be either a instance of
1085  an Algorithm class or it name """
1086  if type(alg) is str:
1087  self.topAlg += [alg]
1088  else:
1089  self.pyalgorithms.append(alg)
1090  setOwnership(alg, 0)
1091  if self.targetFSMState() >= Gaudi.StateMachine.INITIALIZED:
1092  alg.sysInitialize()
1093  if self.targetFSMState() == Gaudi.StateMachine.RUNNING:
1094  alg.sysStart()
1095  self.topAlg += [alg.name()]
1096 

◆ algorithm()

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

Definition at line 1015 of file Bindings.py.

1015  def algorithm(self, name, createIf=False):
1016  alg = Helper.algorithm(self._algmgr, name, createIf)
1017  if not alg:
1018  return iAlgorithm(name, alg)
1019  else:
1020  return iAlgorithm(alg.name(), alg)
1021 

◆ algorithms()

def GaudiPython.Bindings.AppMgr.algorithms (   self)

Definition at line 1022 of file Bindings.py.

1022  def algorithms(self):
1023  l = self._algmgr.getAlgorithms()
1024  return [a.name() for a in l]
1025 

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

1154  def config(self, **args):
1155  """
1156  Simple utility to perform the configuration of Gaudi application.
1157  It reads the set of input job-options files, and set few
1158  additional parameters 'options' through the usage of temporary *.opts file
1159  Usage:
1160  gaudi.config( files = [ '$GAUSSOPTS/Gauss.opts' ,
1161  '$DECFILESROOT/options/10022_010.0GeV.opts' ] ,
1162  options = [ 'EventSelector.PrintFreq = 5 ' ] )
1163  """
1164  files = args.get('files', [])
1165  for file in files:
1166  sc = self.readOptions(file)
1167  if sc.isFailure():
1168  raise RuntimeError(' Unable to read file "' + file + '" ')
1169  options = args.get('options', None)
1170  if options:
1171  import tempfile
1172  tmpfilename = tempfile.mktemp()
1173  tmpfile = open(tmpfilename, 'w')
1174  tmpfile.write('#pragma print on \n')
1175  tmpfile.write('/// File "' + tmpfilename +
1176  '" generated by GaudiPython \n\n')
1177  for opt in options:
1178  if type(options) is dict:
1179  tmpfile.write(' \t ' + opt + ' = ' + options[opt] +
1180  ' ; // added by GaudiPython \n')
1181  else:
1182  tmpfile.write(' \t ' + opt +
1183  ' ; // added by GaudiPython \n')
1184  tmpfile.write('/// End of file "' + tmpfilename +
1185  '" generated by GaudiPython \n\n')
1186  tmpfile.close()
1187  sc = self.readOptions(tmpfilename)
1188  if sc.isFailure():
1189  raise RuntimeError(' Unable to read file "' + tmpfilename +
1190  '" ')
1191  os.remove(tmpfilename)
1192 
1193  return SUCCESS
1194 

◆ configure()

def GaudiPython.Bindings.AppMgr.configure (   self)

Definition at line 1195 of file Bindings.py.

1195  def configure(self):
1196  return self._appmgr.configure()
1197 

◆ createSvc()

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

Definition at line 1008 of file Bindings.py.

1008  def createSvc(self, name):
1009  return Helper.service(self._svcloc, name, True)
1010 

◆ datasvc()

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

Definition at line 1037 of file Bindings.py.

1037  def datasvc(self, name):
1038  if self.state() == Gaudi.StateMachine.CONFIGURED:
1039  self.initialize()
1040  svc = Helper.service(self._svcloc, name)
1041  return iDataSvc(name, svc)
1042 

◆ declSvcType()

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

Definition at line 1005 of file Bindings.py.

1005  def declSvcType(self, svcname, svctype):
1006  self._svcmgr.declareSvcType(svcname, svctype)
1007 

◆ detsvc()

def GaudiPython.Bindings.AppMgr.detsvc (   self)

Definition at line 1046 of file Bindings.py.

1046  def detsvc(self):
1047  return self.datasvc('DetectorDataSvc')
1048 

◆ evtsel()

def GaudiPython.Bindings.AppMgr.evtsel (   self)

Definition at line 1052 of file Bindings.py.

1052  def evtsel(self):
1053  if self.state() == Gaudi.StateMachine.CONFIGURED:
1054  self.initialize()
1055  if not hasattr(self, '_evtsel'):
1056  self.__dict__['_evtsel'] = iEventSelector()
1057  return self._evtsel
1058 

◆ evtsvc()

def GaudiPython.Bindings.AppMgr.evtsvc (   self)

Definition at line 1043 of file Bindings.py.

1043  def evtsvc(self):
1044  return self.datasvc('EventDataSvc')
1045 

◆ execute()

def GaudiPython.Bindings.AppMgr.execute (   self)

Definition at line 1218 of file Bindings.py.

1218  def execute(self):
1219  return self._evtpro.executeEvent()
1220 

◆ executeEvent()

def GaudiPython.Bindings.AppMgr.executeEvent (   self)

Definition at line 1215 of file Bindings.py.

1215  def executeEvent(self):
1216  return self._evtpro.executeEvent()
1217 

◆ exit()

def GaudiPython.Bindings.AppMgr.exit (   self)

Definition at line 1261 of file Bindings.py.

1261  def exit(self):
1262  # Protection against multiple calls to exit() if the finalization fails
1263  if not self._exit_called:
1264  self.__dict__['_exit_called'] = True
1265  Gaudi = self._gaudi_ns
1266  if self.FSMState() == Gaudi.StateMachine.RUNNING:
1267  self._appmgr.stop().ignore()
1268  if self.FSMState() == Gaudi.StateMachine.INITIALIZED:
1269  self._appmgr.finalize().ignore()
1270  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1271  self._appmgr.terminate()
1272  return SUCCESS
1273 

◆ filerecordsvc()

def GaudiPython.Bindings.AppMgr.filerecordsvc (   self)

Definition at line 1049 of file Bindings.py.

1049  def filerecordsvc(self):
1050  return self.datasvc('FileRecordDataSvc')
1051 

◆ FSMState()

def GaudiPython.Bindings.AppMgr.FSMState (   self)

Definition at line 992 of file Bindings.py.

992  def FSMState(self):
993  return self._isvc.FSMState()
994 

◆ histsvc()

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

Definition at line 1059 of file Bindings.py.

1059  def histsvc(self, name='HistogramDataSvc'):
1060  svc = Helper.service(self._svcloc, name)
1061  return iHistogramSvc(name, svc)
1062 

◆ ntuplesvc()

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

Definition at line 1063 of file Bindings.py.

1063  def ntuplesvc(self, name='NTupleSvc'):
1064  if name not in self.ExtSvc:
1065  self.ExtSvc += [name]
1066 # if self.HistogramPersistency == 'NONE' : self.HistogramPersistency = 'ROOT'
1067  svc = Helper.service(self._svcloc, name, True)
1068  return iNTupleSvc(name, svc)
1069 

◆ opts()

def GaudiPython.Bindings.AppMgr.opts (   self)

Definition at line 984 of file Bindings.py.

984  def opts(self):
985  if "_svcloc" in self.__dict__:
986  return self._svcloc.getOptsSvc()
987  return None
988 

◆ partsvc()

def GaudiPython.Bindings.AppMgr.partsvc (   self)

Definition at line 1070 of file Bindings.py.

1070  def partsvc(self):
1071  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1072  self.initialize()
1073  svc = Helper.service(self._svcloc, 'ParticlePropertySvc')
1074  return InterfaceCast(gbl.IParticlePropertySvc)(svc)
1075 

◆ printAlgsSequences()

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

Definition at line 1127 of file Bindings.py.

1127  def printAlgsSequences(self):
1128  """
1129  Print the sequence of Algorithms.
1130  """
1131 
1132  def printAlgo(algName, appMgr, prefix=' '):
1133  print(prefix + algName)
1134  alg = appMgr.algorithm(algName.split("/")[-1])
1135  prop = alg.properties()
1136  if "Members" in prop:
1137  subs = prop["Members"].value()
1138  for i in subs:
1139  printAlgo(i.strip('"'), appMgr, prefix + " ")
1140 
1141  mp = self.properties()
1142  prefix = 'ApplicationMgr SUCCESS '
1143  print(
1144  prefix +
1145  "****************************** Algorithm Sequence ****************************"
1146  )
1147  for i in mp["TopAlg"].value():
1148  printAlgo(i, self, prefix)
1149  print(
1150  prefix +
1151  "******************************************************************************"
1152  )
1153 

◆ property()

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

Definition at line 1029 of file Bindings.py.

1029  def property(self, name):
1030  if name in self.algorithms():
1031  return self.algorithm(name)
1032  elif name in self.services():
1033  return self.service(name)
1034  else:
1035  return iProperty(name)
1036 

◆ readOptions()

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

Definition at line 1080 of file Bindings.py.

1080  def readOptions(self, file):
1081  return self.opts.readOptions(file)
1082 

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

1115  def removeAlgorithm(self, alg):
1116  """ Remove an Algorithm to the list of Top algorithms. It can be either a instance of
1117  an Algorithm class or it name """
1118  tmp = self.topAlg
1119  if type(alg) is str:
1120  tmp.remove(alg)
1121  else:
1122  tmp.remove(alg.name())
1123  self.pyalgorithms.remove(alg)
1124  setOwnership(alg, 1)
1125  self.topAlg = tmp
1126 

◆ run()

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

Definition at line 1204 of file Bindings.py.

1204  def run(self, n):
1205  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1206  sc = self.initialize()
1207  if sc.isFailure() or self.ReturnCode != 0:
1208  return sc
1209  if self.FSMState() == Gaudi.StateMachine.INITIALIZED:
1210  sc = self.start()
1211  if sc.isFailure() or self.ReturnCode != 0:
1212  return sc
1213  return self._evtpro.executeRun(n)
1214 

◆ runSelectedEvents()

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

Definition at line 1221 of file Bindings.py.

1221  def runSelectedEvents(self, pfn, events):
1222  if self.FSMState() == Gaudi.StateMachine.CONFIGURED:
1223  sc = self.initialize()
1224  if sc.isFailure():
1225  return sc
1226  if self.FSMState() == Gaudi.StateMachine.INITIALIZED:
1227  sc = self.start()
1228  if sc.isFailure():
1229  return sc
1230  # --- Access a number of services ----
1231  if not hasattr(self, '_perssvc'):
1232  self.__dict__['_perssvc'] = self.service('EventPersistencySvc',
1233  'IAddressCreator')
1234  if not hasattr(self, '_filecat'):
1235  self.__dict__['_filecat'] = self.service('FileCatalog',
1236  'Gaudi::IFileCatalog')
1237  if not hasattr(self, '_evtmgr'):
1238  self.__dict__['_evtmgr'] = self.service('EventDataSvc',
1239  'IDataManagerSvc')
1240  # --- Get FID from PFN and number of events in file
1241  if pfn.find('PFN:') == 0:
1242  pfn = pfn[4:]
1243  fid, maxevt = _getFIDandEvents(pfn)
1244  # --- Add FID into catalog if needed ---
1245  if not self._filecat.existsFID(fid):
1246  self._filecat.registerPFN(fid, pfn, '')
1247  # --- Loop over events
1248  if type(events) is not list:
1249  events = (events, )
1250  for evt in events:
1251  # --- Create POOL Address from Generic Address
1252  gadd = gbl.GenericAddress(0x02, 1, fid, '/Event', 0, evt)
1253  oadd = makeNullPointer('IOpaqueAddress')
1254  self._perssvc.createAddress(gadd.svcType(), gadd.clID(),
1255  gadd.par(), gadd.ipar(), oadd)
1256  # --- Clear TES, set root and run all algorithms
1257  self._evtmgr.clearStore()
1258  self._evtmgr.setRoot('/Event', oadd)
1259  self._evtpro.executeEvent()
1260 

◆ service()

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

Definition at line 998 of file Bindings.py.

998  def service(self, name, interface=None):
999  svc = Helper.service(self._svcloc, name)
1000  if interface:
1001  return InterfaceCast(interface)(svc)
1002  else:
1003  return iService(name, svc)
1004 

◆ services()

def GaudiPython.Bindings.AppMgr.services (   self)

Definition at line 1011 of file Bindings.py.

1011  def services(self):
1012  l = self._svcloc.getServices()
1013  return [s.name() for s in l]
1014 

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

1097  def setAlgorithms(self, algs):
1098  """ Set the list of Top Algorithms.
1099  It can be an individual of a list of algorithms names or instances """
1100  if type(algs) is not list:
1101  algs = [algs]
1102  names = []
1103  for alg in algs:
1104  if type(alg) is str:
1105  names.append(alg)
1106  else:
1107  self.pyalgorithms.append(alg)
1108  if self.targetFSMState() >= Gaudi.StateMachine.INITIALIZED:
1109  alg.sysInitialize()
1110  if self.targetFSMState() == Gaudi.StateMachine.RUNNING:
1111  alg.sysStart()
1112  names.append(alg.name())
1113  self.topAlg = names
1114 

◆ start()

def GaudiPython.Bindings.AppMgr.start (   self)

Reimplemented from GaudiPython.Bindings.iService.

Definition at line 1198 of file Bindings.py.

1198  def start(self):
1199  return self._appmgr.start()
1200 

◆ state()

def GaudiPython.Bindings.AppMgr.state (   self)

Definition at line 989 of file Bindings.py.

989  def state(self):
990  return self._isvc.FSMState()
991 

◆ targetFSMState()

def GaudiPython.Bindings.AppMgr.targetFSMState (   self)

Definition at line 995 of file Bindings.py.

995  def targetFSMState(self):
996  return self._isvc.targetFSMState()
997 

◆ terminate()

def GaudiPython.Bindings.AppMgr.terminate (   self)

Definition at line 1201 of file Bindings.py.

1201  def terminate(self):
1202  return self._appmgr.terminate()
1203 

◆ tool()

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

Definition at line 1026 of file Bindings.py.

1026  def tool(self, name):
1027  return iAlgTool(name)
1028 

◆ toolsvc()

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

Definition at line 1076 of file Bindings.py.

1076  def toolsvc(self, name='ToolSvc'):
1077  svc = Helper.service(self._svcloc, name, True)
1078  return iToolSvc(name, svc)
1079 

Member Data Documentation

◆ detSvc

def GaudiPython.Bindings.AppMgr.detSvc = detsvc
static

Definition at line 1283 of file Bindings.py.

◆ evtSel

def GaudiPython.Bindings.AppMgr.evtSel = evtsel
static

Definition at line 1282 of file Bindings.py.

◆ evtSvc

def GaudiPython.Bindings.AppMgr.evtSvc = evtsvc
static

Definition at line 1279 of file Bindings.py.

◆ histSvc

def GaudiPython.Bindings.AppMgr.histSvc = histsvc
static

Definition at line 1280 of file Bindings.py.

◆ JobOptionsType

GaudiPython.Bindings.AppMgr.JobOptionsType

Definition at line 899 of file Bindings.py.

◆ ntupleSvc

def GaudiPython.Bindings.AppMgr.ntupleSvc = ntuplesvc
static

Definition at line 1281 of file Bindings.py.

◆ OutputLevel

GaudiPython.Bindings.AppMgr.OutputLevel

Definition at line 909 of file Bindings.py.

◆ partSvc

def GaudiPython.Bindings.AppMgr.partSvc = partsvc
static

Definition at line 1285 of file Bindings.py.

◆ toolSvc

def GaudiPython.Bindings.AppMgr.toolSvc = toolsvc
static

Definition at line 1284 of file Bindings.py.

◆ topAlg

GaudiPython.Bindings.AppMgr.topAlg

Definition at line 1113 of file Bindings.py.


The documentation for this class was generated from the following file:
GaudiPython.Bindings.makeNullPointer
makeNullPointer
Definition: Bindings.py:113
Aida2RootEx.configure
def configure(gaudi=None)
Definition: Aida2RootEx.py:114
conf.release
string release
Definition: conf.py:28
GaudiPython.Bindings.setOwnership
setOwnership
Definition: Bindings.py:114
IOTest.start
start
Definition: IOTest.py:108
GaudiPython.GaudiAlgs.iAlgorithm
iAlgorithm
Definition: GaudiAlgs.py:65
GaudiKernel.Proxy.getNeededConfigurables
getNeededConfigurables
Definition: Proxy.py:31
bug_34121.tool
tool
Definition: bug_34121.py:17
gaudirun.opts
opts
Definition: gaudirun.py:319
GaudiKernel.ProcessJobOptions
Definition: ProcessJobOptions.py:1
GaudiPython.Pythonizations.execute
execute
Definition: Pythonizations.py:566
Histograms_with_global.algorithms
list algorithms
Definition: Histograms_with_global.py:17
GaudiPython.Pythonizations.executeEvent
executeEvent
Helpers for re-entrant interfaces.
Definition: Pythonizations.py:562
GaudiPython.GaudiAlgs.iAlgTool
iAlgTool
Definition: GaudiAlgs.py:66
GaudiKernel.ProcessJobOptions.importOptions
def importOptions(optsfile)
Definition: ProcessJobOptions.py:491
GaudiPython.Bindings._getFIDandEvents
def _getFIDandEvents(pfn)
Definition: Bindings.py:1291
gaudirun.type
type
Definition: gaudirun.py:154
compareRootHistos.state
def state
Definition: compareRootHistos.py:468
gaudirun.config
config
Definition: gaudirun.py:586
GaudiKernel.Configurable.expandvars
def expandvars(data)
Definition: Configurable.py:47
GaudiPython.Pythonizations.items
items
Definition: Pythonizations.py:526