7 __doc__ =
"""Module containing a set of py-components to test various aspects
10 __author__ =
"Sebastien Binet <binet@cern.ch>"
13 import AthenaPython.PyAthena
as PyAthena
14 from AthenaPython.PyAthena
import StatusCode
17 """Simple test of a py-algorithm
24 self.
px = kw.get(
'px', 10.*Units.GeV)
25 self.
eta = kw.get(
'eta', 2.5)
26 self.
pt = kw.get(
'pt', 40.*Units.GeV)
31 self.
sg = PyAthena.py_svc(
"StoreGateSvc")
32 self.
msg.
info(
"==> initializing [%s]...", self.name )
38 return StatusCode.Success
42 _info(
"==> execute..." )
45 _info(
"hasattr('_cppHandle'): %s", hasattr(self,
'_cppHandle'))
48 return StatusCode.Success
51 self.msg.
info(
"==> finalize..." )
52 return StatusCode.Success
55 """Simple test of a py-service
65 self.
sg = PyAthena.py_svc(
"StoreGateSvc")
66 self.msg.
info(
"==> initializing [%s]...", self.name )
68 return StatusCode.Success
71 self.msg.
info(
"==> finalize..." )
73 return StatusCode.Success
76 """Simple test of a py-tool
86 self.
sg = PyAthena.py_svc(
"StoreGateSvc")
87 self.msg.
info(
"==> initializing [%s]...", self.name )
89 return StatusCode.Success
92 self.msg.
info(
"==> finalize..." )
94 return StatusCode.Success
97 """Simple test of a py-auditor
102 super(MyNameAud,self).
__init__(**kw)
105 self.msg.
info(
"==> initializing [%s]...", self.name)
106 return StatusCode.Success
109 self.msg.
info(
"==> finalizing [%s]...", self.name)
110 return StatusCode.Success
113 self.msg.
info(
"Entering %s [%s]...", evt_name.lower(), comp_name)
116 def after (self, evt_name, comp_name, sc):
117 self.msg.
info(
"Exiting %s [%s]...", evt_name.lower(), comp_name)