| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Private Attributes | Static Private Attributes | List of all members
GaudiKernel.Configurable.ConfigurableAlgTool Class Reference
Inheritance diagram for GaudiKernel.Configurable.ConfigurableAlgTool:
[legend]
Collaboration diagram for GaudiKernel.Configurable.ConfigurableAlgTool:
[legend]

## Public Member Functions
def | __init__
def | getHandle (self)
def | getGaudiType (self)
def | getGaudiHandle (self)
def | getPrintTitle (self)
def | setParent (self, parentName)
def | getParent (self)
def | hasParent (self, parent)
def | getJobOptName (self)
def | isPublic (self)
def | isInToolSvc (self)
def | toStringProperty (self)
def | getFullName (self)
Public Member Functions inherited from GaudiKernel.Configurable.Configurable
def | __new__ (cls, args, kwargs)
def | __init__
def | __getstate__ (self)
def | __getnewargs__ (self)
def | __setstate__ (self, dict)
def | __len__ (self)
def | __iter__ (self)
def | __deepcopy__ (self, memo)
def | __iadd__
def | __getattr__ (self, attr)
def | __setattr__ (self, name, value)
def | __delattr__ (self, attr)
def | __nonzero__ (self)
def | remove (self, items)
def | removeAll (self)
def | copyChild (self, child)
def | setParent (self, parentName)
def | getParent (self)
def | hasParent (self, parent)
def | copyChildAndSetParent (self, cfg, parent)
def | getChildren (self)
def | getTools (self)
def | children (self)
def | getAllChildren (self)
def | getSequence (self)
def | setup (self)
def | getProperties (self)
def | getPropertiesWithDescription (self)
def | getValuedProperties (self)
def | properties (self)
def | getDefaultProperties (cls)
def | getDefaultProperty (cls, name)
def | getProp (self, name)
def | setProp (self, name, value)
def | isPropertySet (self, name)
def | getType (cls)
def | getName (self)
def | name (self)
def | getJobOptName (self)
def | isPublic (self)
def | jobOptName (self)
def | getFullName (self)
def | getFullJobOptName (self)
def | getPrintTitle (self)
def | getTitleName (self)
def | setDefaults (cls, handle)
def | clone (self, name=None, kwargs)
def | splitName (self)
def | addTool
def | __repr__ (self)
def | __str__

## Private Attributes
| _name
| _jobOptName

## Static Private Attributes
dictionary | __slots__

## Additional Inherited Members
Static Public Attributes inherited from GaudiKernel.Configurable.Configurable
string | indentUnit = '| '
int | printHeaderWidth = 100
int | printHeaderPre = 5
dictionary | allConfigurables = {}
dictionary | configurableServices = {}

## Detailed Description

Definition at line 1028 of file Configurable.py.

## Constructor & Destructor Documentation

def GaudiKernel.Configurable.ConfigurableAlgTool.__init__ | ( |  | self,
|  |  | name = `Configurable.DefaultName`
| ) |  |

Definition at line 1032 of file Configurable.py.

1032 def __init__( self, name = Configurable.DefaultName ):
1033 super( ConfigurableAlgTool, self ).__init__( name )
1034 if '.' not in self._name:
1035 # Public tools must have ToolSvc as parent
1036 self._name = "ToolSvc." + self._name
1037 name = self.getName()
1038 name = name[ name.find('/')+1 : ] # strips class, if any
1039 self._jobOptName = name
1040
GaudiKernel.Configurable.ConfigurableAlgTool._jobOptName
_jobOptName
Definition: Configurable.py:1039
GaudiKernel.Configurable.ConfigurableAlgTool.__init__
def __init__
Definition: Configurable.py:1032
GaudiKernel.Configurable.Configurable._name
_name
Definition: Configurable.py:290
GaudiKernel.Configurable.Configurable.getName
def getName(self)
Definition: Configurable.py:687

## Member Function Documentation

def GaudiKernel.Configurable.ConfigurableAlgTool.getFullName | ( |  | self | ) |

Definition at line 1098 of file Configurable.py.

1098 def getFullName( self ) :
1099 # for Tools, the "full name" means "Type/LocalName",
1100 # without the names of the parents
1101 name = self.getName()
1102 # strip off everything before the last '.'
1103 name = name[name.rfind('.')+1:]
1104 return str( self.getType() + '/' + name )
1105
1106
GaudiKernel.Configurable.ConfigurableAlgTool.getFullName
def getFullName(self)
Definition: Configurable.py:1098
GaudiKernel.Configurable.Configurable.getName
def getName(self)
Definition: Configurable.py:687
GaudiKernel.Configurable.Configurable.getType
def getType(cls)
Definition: Configurable.py:684

def GaudiKernel.Configurable.ConfigurableAlgTool.getGaudiHandle | ( |  | self | ) |

Definition at line 1048 of file Configurable.py.

1048 def getGaudiHandle( self ):
1049 if self.isPublic():
1050 return PublicToolHandle( self.toStringProperty() )
1051 else:
1052 return PrivateToolHandle( self.toStringProperty() )
1053
GaudiKernel.GaudiHandles.PrivateToolHandle
Definition: GaudiHandles.py:80
GaudiKernel.Configurable.ConfigurableAlgTool.toStringProperty
def toStringProperty(self)
Definition: Configurable.py:1094
GaudiKernel.Configurable.ConfigurableAlgTool.getGaudiHandle
def getGaudiHandle(self)
Definition: Configurable.py:1048
GaudiKernel.GaudiHandles.PublicToolHandle
Definition: GaudiHandles.py:71
GaudiKernel.Configurable.Configurable.isPublic
def isPublic(self)
Definition: Configurable.py:696

def GaudiKernel.Configurable.ConfigurableAlgTool.getGaudiType | ( |  | self | ) |

Definition at line 1045 of file Configurable.py.

1045 def getGaudiType( self ):
1046 return 'AlgTool'
1047
GaudiKernel.Configurable.ConfigurableAlgTool.getGaudiType
def getGaudiType(self)
Definition: Configurable.py:1045

def GaudiKernel.Configurable.ConfigurableAlgTool.getHandle | ( |  | self | ) |

Definition at line 1041 of file Configurable.py.

1041 def getHandle( self ):
1042 # iAlgTool isn't useful, unless one knows for sure that the tool exists
1043 return iProperty( self.getJobOptName() )
1044
GaudiKernel.Configurable.Configurable.getJobOptName
def getJobOptName(self)
Definition: Configurable.py:693
GaudiKernel.Configurable.ConfigurableAlgTool.getHandle
def getHandle(self)
Definition: Configurable.py:1041

def GaudiKernel.Configurable.ConfigurableAlgTool.getJobOptName | ( |  | self | ) |

Definition at line 1085 of file Configurable.py.

1085 def getJobOptName( self ):
1086 return self._jobOptName
1087
GaudiKernel.Configurable.ConfigurableAlgTool._jobOptName
_jobOptName
Definition: Configurable.py:1039
GaudiKernel.Configurable.ConfigurableAlgTool.getJobOptName
def getJobOptName(self)
Definition: Configurable.py:1085

def GaudiKernel.Configurable.ConfigurableAlgTool.getParent | ( |  | self | ) |

Definition at line 1075 of file Configurable.py.

1075 def getParent( self ):
1076 dot = self._jobOptName.rfind('.')
1077 if dot != -1:
1078 return self._jobOptName[:dot]
1079 else:
1080 return ""
1081
GaudiKernel.Configurable.ConfigurableAlgTool._jobOptName
_jobOptName
Definition: Configurable.py:1039
GaudiKernel.Configurable.ConfigurableAlgTool.getParent
def getParent(self)
Definition: Configurable.py:1075

def GaudiKernel.Configurable.ConfigurableAlgTool.getPrintTitle | ( |  | self | ) |

Definition at line 1054 of file Configurable.py.

1054 def getPrintTitle(self):
1055 if self.isPublic():
1056 pop = 'Public '
1057 else:
1058 pop = 'Private '
1059 return pop + Configurable.getPrintTitle(self)
1060
GaudiKernel.Configurable.ConfigurableAlgTool.getPrintTitle
def getPrintTitle(self)
Definition: Configurable.py:1054
GaudiKernel.Configurable.Configurable.isPublic
def isPublic(self)
Definition: Configurable.py:696

def GaudiKernel.Configurable.ConfigurableAlgTool.hasParent | ( |  | self,
|  |  | parent
| ) |  |

Definition at line 1082 of file Configurable.py.

1082 def hasParent( self, parent ):
1083 return self._jobOptName.startswith( parent + '.' )
1084
GaudiKernel.Configurable.ConfigurableAlgTool.hasParent
def hasParent(self, parent)
Definition: Configurable.py:1082

def GaudiKernel.Configurable.ConfigurableAlgTool.isInToolSvc | ( |  | self | ) |

Definition at line 1091 of file Configurable.py.

1091 def isInToolSvc( self ):
1092 return self._jobOptName.startswith('ToolSvc.')
1093
GaudiKernel.Configurable.ConfigurableAlgTool.isInToolSvc
def isInToolSvc(self)
Definition: Configurable.py:1091

def GaudiKernel.Configurable.ConfigurableAlgTool.isPublic | ( |  | self | ) |

Definition at line 1088 of file Configurable.py.

1088 def isPublic( self ):
1089 return self.isInToolSvc()
1090
GaudiKernel.Configurable.ConfigurableAlgTool.isInToolSvc
def isInToolSvc(self)
Definition: Configurable.py:1091
GaudiKernel.Configurable.ConfigurableAlgTool.isPublic
def isPublic(self)
Definition: Configurable.py:1088

def GaudiKernel.Configurable.ConfigurableAlgTool.setParent | ( |  | self,
|  |  | parentName
| ) |  |

Definition at line 1061 of file Configurable.py.

1061 def setParent( self, parentName ):
1062 # print "ConfigurableAlgTool.setParent(%s@%x,%r)" % (self.getName(),id(self),parentName)
1063 # print "Calling stack:"
1064 # import traceback
1065 # traceback.print_stack()
1066 # propagate parent to AlgTools in children
1067 for c in self.getAllChildren():
1068 if isinstance(c,ConfigurableAlgTool): c.setParent( parentName )
1069
1070 # update my own parent
1071 name = self.getName()
1072 name = name[name.rfind('.')+1:] # Name of the instance
1073 self._jobOptName = self._name = parentName + '.' + name
1074
GaudiKernel.Configurable.ConfigurableAlgTool._jobOptName
_jobOptName
Definition: Configurable.py:1039
GaudiKernel.Configurable.ConfigurableAlgTool.setParent
def setParent(self, parentName)
Definition: Configurable.py:1061
GaudiKernel.Configurable.Configurable._name
_name
Definition: Configurable.py:290
GaudiKernel.Configurable.Configurable.getName
def getName(self)
Definition: Configurable.py:687
GaudiKernel.Configurable.Configurable.getAllChildren
def getAllChildren(self)
Definition: Configurable.py:490

def GaudiKernel.Configurable.ConfigurableAlgTool.toStringProperty | ( |  | self | ) |

Definition at line 1094 of file Configurable.py.

1094 def toStringProperty( self ):
1095 # called on conversion to a string property for the jocat
1096 return self.getFullName()
1097
GaudiKernel.Configurable.ConfigurableAlgTool.toStringProperty
def toStringProperty(self)
Definition: Configurable.py:1094
GaudiKernel.Configurable.Configurable.getFullName
def getFullName(self)
Definition: Configurable.py:705

## Member Data Documentation

dictionary GaudiKernel.Configurable.ConfigurableAlgTool.__slots__
| static private

Initial value:
1 = { '_jobOptName' : '', 'OutputLevel' : 0, \
2 'AuditTools' : 0, 'AuditInitialize' : 0, 'AuditFinalize' : 0 }

Definition at line 1029 of file Configurable.py.

GaudiKernel.Configurable.ConfigurableAlgTool._jobOptName
| private

Definition at line 1039 of file Configurable.py.

GaudiKernel.Configurable.ConfigurableAlgTool._name
| private

Definition at line 1036 of file Configurable.py.

The documentation for this class was generated from the following file:

- GaudiKernel/python/GaudiKernel/Configurable.py