ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.tests.PyTestsLib.MyTool Class Reference
Inheritance diagram for python.tests.PyTestsLib.MyTool:
Collaboration diagram for python.tests.PyTestsLib.MyTool:

Public Member Functions

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

Public Attributes

 counter
 init base class More...
 
 sg
 

Detailed Description

Simple test of a py-tool

Definition at line 78 of file PyTestsLib.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 81 of file PyTestsLib.py.

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

Member Function Documentation

◆ finalize()

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

Definition at line 94 of file PyTestsLib.py.

94  def finalize(self):
95  self.msg.info( "==> finalize..." )
96  self.msg.info( "cnt: %r",self.counter )
97  return StatusCode.Success
98 

◆ initialize()

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

Definition at line 88 of file PyTestsLib.py.

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

Member Data Documentation

◆ counter

python.tests.PyTestsLib.MyTool.counter

init base class

Definition at line 86 of file PyTestsLib.py.

◆ sg

python.tests.PyTestsLib.MyTool.sg

Definition at line 89 of file PyTestsLib.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:53
initialize
void initialize()
Definition: run_EoverP.cxx:894
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18