[root] / trunk / bindings / pyroot / inc / TPySelector.h Repository:
ViewVC logotype

Log of /trunk/bindings/pyroot/inc/TPySelector.h

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 36574 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 10 01:27:45 2010 UTC (4 years, 2 months ago) by wlav
File length: 2024 byte(s)
Diff to previous 26817
make TSelector protected datamembers available in TPySelector

Revision 26817 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 11 00:16:46 2008 UTC (6 years, 1 month ago) by wlav
File length: 1843 byte(s)
Diff to previous 23135
 o) comment updates, error checking, refactoring

Revision 23135 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 11 08:16:55 2008 UTC (6 years, 9 months ago) by rdm
File length: 1801 byte(s)
Diff to previous 22698
move the following directories to "bindings":

ruby, pyroot

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/inc/TPySelector.h
File length: 1801 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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9