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