[ROOT] TTree Process question

From: Pietro Govoni (Pietro.Govoni@mib.infn.it)
Date: Mon Sep 13 2004 - 15:52:16 MEST


Dear Rooters,

I have a data tree, for which I prepared a loop class with the usual
TTree::MakeSelector tool.
I would like to make a preliminary short loop over a sub sample of the
events, say the first 100 events, to evaluate some parameters.

The first thing that I did was to insert a cut like:

if (loop_counter > 100) return kFALSE ;

in the Process method.
Nevertheless, I would like to avoid looping over all the other total - 100
events.
Is there a way to do it?

Thank you very much

pietro



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET