ATLAS Offline Software
Loading...
Searching...
No Matches
CallBackTest.py
Go to the documentation of this file.
6
7
8# load dict for MyCutClass
9pylcgdict.load_library("libPyAnalysisExamplesDict")
10
11# instantiate a C++ class from python
12obj = g.CallBackTest()
13
14# setup reverse proxy
15g.PyReverseProxy(g.AthPyEx.MyDetObj).setConv(g.PyReverseProxy(g.AthPyEx.MyDetObj).getObj)
16
17# define a python function
18def aPyFunc(dobj):
19 print (" aPyFunc called")
20 print (dobj.name())
21
22# set callback
23obj.setCallBack(aPyFunc)
24
25# test
26obj.test()