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 230 of file PyAthenaComps.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 235 of file PyAthenaComps.py.

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

Member Function Documentation

◆ condStore()

python.PyAthenaComps.AlgTool.condStore ( self)

Definition at line 264 of file PyAthenaComps.py.

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

◆ detStore()

python.PyAthenaComps.AlgTool.detStore ( self)

Definition at line 257 of file PyAthenaComps.py.

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

◆ evtStore()

python.PyAthenaComps.AlgTool.evtStore ( self)

Definition at line 250 of file PyAthenaComps.py.

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

◆ finalize()

python.PyAthenaComps.AlgTool.finalize ( self)

Definition at line 296 of file PyAthenaComps.py.

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

◆ initialize()

python.PyAthenaComps.AlgTool.initialize ( self)

Definition at line 277 of file PyAthenaComps.py.

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

◆ reinitialize()

python.PyAthenaComps.AlgTool.reinitialize ( self)

Definition at line 289 of file PyAthenaComps.py.

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

◆ sysFinalize()

python.PyAthenaComps.AlgTool.sysFinalize ( self)

Definition at line 293 of file PyAthenaComps.py.

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

◆ sysInitialize()

python.PyAthenaComps.AlgTool.sysInitialize ( self)

Definition at line 270 of file PyAthenaComps.py.

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

◆ sysReinitialize()

python.PyAthenaComps.AlgTool.sysReinitialize ( self)

Definition at line 282 of file PyAthenaComps.py.

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

Member Data Documentation

◆ __component_type__

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

Definition at line 246 of file PyAthenaComps.py.

◆ _pyath_condstore

python.PyAthenaComps.AlgTool._pyath_condstore = None
protected

Definition at line 245 of file PyAthenaComps.py.

◆ _pyath_detstore

python.PyAthenaComps.AlgTool._pyath_detstore = None
protected

Definition at line 244 of file PyAthenaComps.py.

◆ _pyath_evtstore

python.PyAthenaComps.AlgTool._pyath_evtstore = None
protected

init base class

Definition at line 243 of file PyAthenaComps.py.

◆ OutputLevel

python.PyAthenaComps.AlgTool.OutputLevel

Definition at line 272 of file PyAthenaComps.py.


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