Hi Stelios,
TTree::Draw returns the number of entries passing the selection.
You can do:
int nOK = myTree->Draw("i_id1:i_id2","i_id1!=-1 && i_id2!=-1 &&
i_id1==0","goff");
Rene Brun
On Thu, 29
May 2003, Stilianos Kesisoglou wrote:
> Hi,
>
> Is there any way to scan a ROOT tree and count the entries that satisfy some user cuts?
>
> The command below scans the tree and prints the results 25 entries each time, but what I want
> is to avoid the printing and just go through all the entries without stopping every 25.
>
> myTree->Scan("i_id1:i_id2","i_id1!=-1 && i_id2!=-1 && i_id1==0");
>
> Is there any variation of this?
>
> Thanks!
>
> Stelios.
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET