ATLAS Offline Software
Functions | Variables
ToolTest Namespace Reference

Functions

def convFunc ()
 
def py_execute (obj)
 

Variables

 topSequence = AlgSequence()
 
 tool = theApp.toolsvc().retrieve(ToolSvc.MyTool.getFullJobOptName())._itool
 
 proxy = g.PyReverseProxy.getProxy("MyObj_Proxy")
 
int counter = 567
 

Function Documentation

◆ convFunc()

def ToolTest.convFunc ( )

Definition at line 32 of file ToolTest.py.

32 def convFunc():
33  ptr = cppyy.libPyROOT.MakeNullPointer(g.AthPyEx.MyObj)
34  proxy = g.PyReverseProxy.getProxy("MyObj_Proxy")
35  proxy.getObj(ptr)
36  return ptr

◆ py_execute()

def ToolTest.py_execute (   obj)

Definition at line 42 of file ToolTest.py.

42 def py_execute(obj):
43  print ("PyExecute begin")
44  print (" name : %s" % obj.name())
45  print (" A : %s" % obj.getA())
46  print ("setA float in Python")
47  obj.setA(1.22)
48  print ("setA int in Python" )
49  global counter
50  obj.setA(counter)
51  counter += 1
52  print ("PyExecute end" )
53  return True
54 tool.py_execute = py_execute
55 
56 
57 # run 1 event
58 theApp.nextEvent()
59 
60 # set different parameter to AlgTool
61 tool.setA(50)
62 
63 # run 1 event
64 theApp.nextEvent()
65 
66 

Variable Documentation

◆ counter

int ToolTest.counter = 567

Definition at line 40 of file ToolTest.py.

◆ proxy

ToolTest.proxy = g.PyReverseProxy.getProxy("MyObj_Proxy")

Definition at line 37 of file ToolTest.py.

◆ tool

ToolTest.tool = theApp.toolsvc().retrieve(ToolSvc.MyTool.getFullJobOptName())._itool

Definition at line 28 of file ToolTest.py.

◆ topSequence

ToolTest.topSequence = AlgSequence()

Definition at line 13 of file ToolTest.py.

ToolTest.py_execute
def py_execute(obj)
Definition: ToolTest.py:42
ToolTest.convFunc
def convFunc()
Definition: ToolTest.py:32