ATLAS Offline Software
Loading...
Searching...
No Matches
python.PyAthenaComps.AlgTool Class Reference
Inheritance diagram for python.PyAthenaComps.AlgTool:
Collaboration diagram for python.PyAthenaComps.AlgTool:

Public Member Functions

 __init__ (self, name=None, parent=None, **kw)
 evtStore (self)
 detStore (self)
 condStore (self)
 sysInitialize (self)
 initialize (self)
 sysReinitialize (self)
 reinitialize (self)
 sysFinalize (self)
 finalize (self)

Public Attributes

 OutputLevel

Protected Attributes

 _pyath_evtstore = None
 init base class
 _pyath_detstore = None
 _pyath_condstore = None

Private Attributes

str __component_type__ = "AlgTool"

Detailed Description

Base class from which all concrete algtool classes should be derived.

Definition at line 231 of file PyAthenaComps.py.

Constructor & Destructor Documentation

◆ __init__()

python.PyAthenaComps.AlgTool.__init__ ( self,
name = None,
parent = None,
** kw )

Definition at line 236 of file PyAthenaComps.py.

236 def __init__(self, name=None, parent=None, **kw):
237 kw.setdefault('OutputLevel', 3) #INFO
238 if name is None: name = kw.get('name', self.__class__.__name__)
239 if not (parent is None):
240 if isinstance(parent, str): name = "%s.%s" % (parent,name)
241 else: name = "%s.%s" % (parent.name(),name)
242
243 super(AlgTool, self).__init__(name, **kw)
244 self._pyath_evtstore = None # handle to the evt store
245 self._pyath_detstore = None # handle to the det store
246 self._pyath_condstore = None # handle to the cond store
247 self.__component_type__ = "AlgTool"
248 return
249

Member Function Documentation

◆ condStore()

python.PyAthenaComps.AlgTool.condStore ( self)

Definition at line 265 of file PyAthenaComps.py.

265 def condStore(self):
266 if not self._pyath_condstore:
267 import AthenaPython.PyAthena as PyAthena
268 self._pyath_condstore = PyAthena.py_svc('StoreGateSvc/ConditionStore')
269 return self._pyath_condstore
270

◆ detStore()

python.PyAthenaComps.AlgTool.detStore ( self)

Definition at line 258 of file PyAthenaComps.py.

258 def detStore(self):
259 if not self._pyath_detstore:
260 import AthenaPython.PyAthena as PyAthena
261 self._pyath_detstore = PyAthena.py_svc('StoreGateSvc/DetectorStore')
262 return self._pyath_detstore
263

◆ evtStore()

python.PyAthenaComps.AlgTool.evtStore ( self)

Definition at line 251 of file PyAthenaComps.py.

251 def evtStore(self):
252 if not self._pyath_evtstore:
253 import AthenaPython.PyAthena as PyAthena
254 self._pyath_evtstore = PyAthena.py_svc('StoreGateSvc/StoreGateSvc')
255 return self._pyath_evtstore
256

◆ finalize()

python.PyAthenaComps.AlgTool.finalize ( self)

Definition at line 297 of file PyAthenaComps.py.

297 def finalize(self):
298 raise NotImplementedError(
299 "You have to implement PyAthena.AlgTool.finalize() !"
300 )
301

◆ initialize()

python.PyAthenaComps.AlgTool.initialize ( self)

Definition at line 278 of file PyAthenaComps.py.

278 def initialize(self):
279 raise NotImplementedError(
280 "You have to implement PyAthena.AlgTool.initialize() !"
281 )
282
void initialize()

◆ reinitialize()

python.PyAthenaComps.AlgTool.reinitialize ( self)

Definition at line 290 of file PyAthenaComps.py.

290 def reinitialize(self):
291 self.msg.info( "==> re-initialize..." )
292 return StatusCode.Success
293

◆ sysFinalize()

python.PyAthenaComps.AlgTool.sysFinalize ( self)

Definition at line 294 of file PyAthenaComps.py.

294 def sysFinalize(self):
295 return self.finalize()
296

◆ sysInitialize()

python.PyAthenaComps.AlgTool.sysInitialize ( self)

Definition at line 271 of file PyAthenaComps.py.

271 def sysInitialize(self):
272 if hasattr(self, 'OutputLevel'):
273 self.msg.setLevel(self.OutputLevel)
274 else:
275 self.msg.setLevel(_get_prop_value(self,'OutputLevel'))
276 return self.initialize()
277

◆ sysReinitialize()

python.PyAthenaComps.AlgTool.sysReinitialize ( self)

Definition at line 283 of file PyAthenaComps.py.

283 def sysReinitialize(self):
284 if hasattr(self, 'OutputLevel'):
285 self.msg.setLevel(self.OutputLevel)
286 else:
287 self.msg.setLevel(_get_prop_value(self,'OutputLevel'))
288 return self.reinitialize()
289

Member Data Documentation

◆ __component_type__

str python.PyAthenaComps.AlgTool.__component_type__ = "AlgTool"
private

Definition at line 247 of file PyAthenaComps.py.

◆ _pyath_condstore

python.PyAthenaComps.AlgTool._pyath_condstore = None
protected

Definition at line 246 of file PyAthenaComps.py.

◆ _pyath_detstore

python.PyAthenaComps.AlgTool._pyath_detstore = None
protected

Definition at line 245 of file PyAthenaComps.py.

◆ _pyath_evtstore

python.PyAthenaComps.AlgTool._pyath_evtstore = None
protected

init base class

Definition at line 244 of file PyAthenaComps.py.

◆ OutputLevel

python.PyAthenaComps.AlgTool.OutputLevel

Definition at line 273 of file PyAthenaComps.py.


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