ATLAS Offline Software
Loading...
Searching...
No Matches
ToolTest Namespace Reference

Functions

 convFunc ()
 py_execute (obj)

Variables

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

Function Documentation

◆ convFunc()

ToolTest.convFunc ( )

Definition at line 32 of file ToolTest.py.

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

ToolTest.py_execute ( obj)

Definition at line 42 of file ToolTest.py.

42def 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

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.

◆ py_execute

ToolTest.py_execute

Definition at line 54 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.