Log of /trunk/bindings/pyroot/src/TPySelector.cxx
Parent Directory
Revision
25078 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 7 00:21:38 2008 UTC (6 years, 5 months ago) by
wlav
File length: 7659 byte(s)
Diff to
previous 23135
o) map __iadd__ of iterable onto take push_back of stl container
o) move operator-> to the normal set of named mappings
o) removed unused data member from MethodProxy
o) added _creates to all MethodProxy's, for ownership rules of return value
o) fix memory leak in CheckedGetItem in Pythonize.cxx
Revision
22759 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 19 21:14:47 2008 UTC (6 years, 10 months ago) by
wlav
Original Path:
trunk/pyroot/src/TPySelector.cxx
File length: 7422 byte(s)
Diff to
previous 22698
o) opt in ObjectProxy.h: skip creating of temporary TClassRef
o) TPython::Exec now returns kFALSE on failure
o) TPySelector now takes a python module, so that that file is
looked up through PYTHONPATH, and it searches for the
TPySelector derived class to instantiate and use
Revision
22698 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Tue Mar 18 01:02:02 2008 UTC (6 years, 10 months ago) by
wlav
Original Path:
trunk/pyroot/src/TPySelector.cxx
File length: 6203 byte(s)
Initial TPySelector prototype for use with PROOF. The prototype
works, but needs improvement error reporting, resilience, and
optimizations. Basic Idea:
from ROOT import TPySelector
class MyPySelector( TPySelector ):
def Begin( self ):
print 'py: beginning'
def SlaveBegin( self, tree ):
print 'py: slave beginning'
def Process( self, entry ):
print 'py: processing for:', self, self.fChain
return 1
def SlaveTerminate( self ):
print 'py: slave terminating'
def Terminate( self ):
print 'py: terminating'
def GetSelector():
return MyPySelector()
The for now conventional "GetSelector()" will be removed soon, in
favor of the same scheme (a derived class check) like with C++
selectors. The code above can then be run like so (localhost):
import time
from ROOT import TDSet, TProof
dataset = TDSet( 'TTree', 'h42' )
dataset.Add( 'root:// .... ' )
proof = TProof.Open('')
time.sleep(1) # needed for GUI to settle
print dataset.Process( 'TPySelector', 'MyPySelector.py' )
Do make sure to transport the MyPySelector.py in a .par file (or
similar), and do make sure that the environment on the other end
is proper.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.