Re: [ROOT] Ntuples, cuts and lists

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jan 14 2004 - 19:18:47 MET


Hi Niels,

You can produce an ascii file directly with

tree.Scan("var1:var2","some selection"); >subtree.dat

or create a new Tree with the subsets. See an example in tutorial
$ROOTSYS/tutorials/copytree3.C

Rene Brun

Niels Madsen wrote:
> 
> Dear Rooters,
> 
> I have an ntuple and I wish to output a simple list (ascii file) with
> two of it's
> parameters, applying a specific cut. Does anyone know how to do this ?
> I presume that one way would be to generate a second ntuple with the
> cut applied and run though this ntuple - but I can't figure out how to
> do
> that ???
> 
> Thanks,
> Niels Madsen
> 
> -----------------------------------------
> Dr. Niels Madsen
> Department of Physics
> University of Aarhus
> DK-8000 Aarhus C
> Denmark
> 
> Stationed at :
> CERN - PH/UAD - 545-R-018
> CH-1211 Geneva 23
> Switzerland
> Tel. +41 22 767 2387    Fax. +41 22 767 8955
> Lab. +41 22 767 9814    Mob. +41 76 487 0835
> 
>



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