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 75 of file PyTestsLib.py.

Constructor & Destructor Documentation

◆ __init__()

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

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

def 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 

Member Data Documentation

◆ counter

python.tests.PyTestsLib.MyTool.counter

init base class

Definition at line 83 of file PyTestsLib.py.

◆ sg

python.tests.PyTestsLib.MyTool.sg

Definition at line 86 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:50
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