[root] / trunk / bindings / pyroot / src / TPySelector.cxx Repository:
ViewVC logotype

Log of /trunk/bindings/pyroot/src/TPySelector.cxx

Parent Directory Parent Directory


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

Revision 48883 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 15 16:07:42 2013 UTC (22 months, 1 week ago) by wlav
File length: 11901 byte(s)
Diff to previous 46806
svn mv all filenames of 'T' classes for consistency

Revision 46806 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 25 13:12:36 2012 UTC (2 years, 2 months ago) by wlav
File length: 11900 byte(s)
Diff to previous 41693
allow user options in addition to python module

Revision 41693 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 1 18:23:36 2011 UTC (3 years, 2 months ago) by wlav
File length: 11541 byte(s)
Diff to previous 36960
conform to R.RS4

Revision 36960 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 26 04:25:44 2010 UTC (4 years, 1 month ago) by wlav
File length: 11485 byte(s)
Diff to previous 35499
TPyMultiGenFunction

Revision 35499 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 23:04:28 2010 UTC (4 years, 4 months ago) by wlav
File length: 11508 byte(s)
Diff to previous 35214
intial, somewhat functional, python3 support

Revision 35214 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 8 17:32:23 2010 UTC (4 years, 4 months ago) by wlav
File length: 11487 byte(s)
Diff to previous 30605
initial p3.0 support and make coverity happy

Revision 30605 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 7 16:10:35 2009 UTC (5 years, 3 months ago) by wlav
File length: 11486 byte(s)
Diff to previous 30586
 o) fix for: "warning: suggest explicit braces to avoid ambiguous 'else'" on slc4_amd64_gcc43

Revision 30586 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 6 18:11:04 2009 UTC (5 years, 3 months ago) by wlav
File length: 11479 byte(s)
Diff to previous 26856
 o) fix to make TTree::Process( void* selector ) work
 o) fix to allow user call to TPySelector default constructor

Revision 26856 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 08:02:41 2008 UTC (6 years, 1 month ago) by brun
File length: 11018 byte(s)
Diff to previous 26817
Fix a compilation warning with gcc4.3

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: 11012 byte(s)
Diff to previous 25101
 o) comment updates, error checking, refactoring

Revision 25101 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 9 00:01:18 2008 UTC (6 years, 5 months ago) by wlav
File length: 7639 byte(s)
Diff to previous 25078
remove spurious iostream include

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 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: 7635 byte(s)
Diff to previous 22790
move the following directories to "bindings":

ruby, pyroot

Revision 22790 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 20 14:42:45 2008 UTC (6 years, 10 months ago) by wlav
Original Path: trunk/pyroot/src/TPySelector.cxx
File length: 7635 byte(s)
Diff to previous 22788
 o) remove unnecessary const char* casts on GetOption() returns

Revision 22788 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 20 14:33:49 2008 UTC (6 years, 10 months ago) by wlav
Original Path: trunk/pyroot/src/TPySelector.cxx
File length: 7661 byte(s)
Diff to previous 22759
 o) implement proper const char* -> char* casting for older pythons

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9