ATLAS Offline Software
Loading...
Searching...
No Matches
python.tests.PyTestsLib.MyTool Class Reference
Inheritance diagram for python.tests.PyTestsLib.MyTool:
Collaboration diagram for python.tests.PyTestsLib.MyTool:

Public Member Functions

 __init__ (self, name="MyTool", **kw)
 initialize (self)
 finalize (self)

Public Attributes

 counter = kw.get('counter', 0)
 sg = PyAthena.py_svc("StoreGateSvc")
 name

Detailed Description

Simple test of a py-tool

Definition at line 75 of file PyTestsLib.py.

Constructor & Destructor Documentation

◆ __init__()

python.tests.PyTestsLib.MyTool.__init__ ( self,
name = "MyTool",
** kw )

Definition at line 78 of file PyTestsLib.py.

78 def __init__(self, name = "MyTool", **kw):
79
80 kw['name'] = name
81 super(MyTool,self).__init__(**kw)
82
83 self.counter = kw.get('counter', 0)
84

Member Function Documentation

◆ finalize()

python.tests.PyTestsLib.MyTool.finalize ( self)

Definition at line 91 of file PyTestsLib.py.

91 def finalize(self):
92 self.msg.info( "==> finalize..." )
93 self.msg.info( "cnt: %r",self.counter )
94 return StatusCode.Success
95

◆ initialize()

python.tests.PyTestsLib.MyTool.initialize ( self)

Definition at line 85 of file PyTestsLib.py.

85 def initialize(self):
86 self.sg = PyAthena.py_svc("StoreGateSvc")
87 self.msg.info( "==> initializing [%s]...", self.name )
88 self.msg.info( "cnt: %r",self.counter )
89 return StatusCode.Success
90
void initialize()

Member Data Documentation

◆ counter

python.tests.PyTestsLib.MyTool.counter = kw.get('counter', 0)

Definition at line 83 of file PyTestsLib.py.

◆ name

python.tests.PyTestsLib.MyTool.name

Definition at line 87 of file PyTestsLib.py.

◆ sg

python.tests.PyTestsLib.MyTool.sg = PyAthena.py_svc("StoreGateSvc")

Definition at line 86 of file PyTestsLib.py.


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