ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.PyAthenaComps.AlgTool Class Reference
Inheritance diagram for python.PyAthenaComps.AlgTool:
Collaboration diagram for python.PyAthenaComps.AlgTool:

Public Member Functions

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

Private Attributes

 _pyath_evtstore
 init base class More...
 
 _pyath_detstore
 
 _pyath_condstore
 
 __component_type__
 

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__()

def 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()

def 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()

def 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()

def 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()

def 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()

def 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 

◆ reinitialize()

def 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()

def python.PyAthenaComps.AlgTool.sysFinalize (   self)

Definition at line 294 of file PyAthenaComps.py.

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

◆ sysInitialize()

def 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()

def 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__

python.PyAthenaComps.AlgTool.__component_type__
private

Definition at line 247 of file PyAthenaComps.py.

◆ _pyath_condstore

python.PyAthenaComps.AlgTool._pyath_condstore
private

Definition at line 246 of file PyAthenaComps.py.

◆ _pyath_detstore

python.PyAthenaComps.AlgTool._pyath_detstore
private

Definition at line 245 of file PyAthenaComps.py.

◆ _pyath_evtstore

python.PyAthenaComps.AlgTool._pyath_evtstore
private

init base class

Definition at line 244 of file PyAthenaComps.py.


The documentation for this class was generated from the following file:
grepfile.info
info
Definition: grepfile.py:38
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
initialize
void initialize()
Definition: run_EoverP.cxx:894
pool::DbPrintLvl::setLevel
void setLevel(MsgLevel l)
Definition: DbPrint.h:32
python.PyAthenaComps._get_prop_value
def _get_prop_value(pycomp, propname)
helper methods ---------------------------------------------------------—
Definition: PyAthenaComps.py:48
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18