Re: [ROOT] ntuples

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Oct 21 2003 - 21:31:53 MEST


Hi Alexander,

I suggest going via an histogram. This has the advantage that
you can use all the TTree::Draw machinery, including selections. eg:

ntuple.Draw("px","py>0","goff")'
htemp->GetMean();
htemp->GetRMS();

Rene Brun

On 
Tue, 21 
Oct 2003, Aleksandar Mishev wrote:

> 
> 
>                    Hi all 
>                    I have a ntuple (recording events of simulation 
> code)with the following structure 
>                    1 ,2 , 3 and 4th raws are arrays of floats 
>                    5th raw is float and last one is an array of floats. 
>                    OK reading the ntuple is simple but I m interesting if 
> in ROOT exists a comant or class that permits directly to obtain the mean 
> values and sigmas of all recoreded events 
> Cheers
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET