Re: How to get only a value in tree->Scan

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Wed, 9 Nov 2011 10:50:05 -0600


Hi,

Try:

     HangingTree->Scan("k_ttbar","","col=d");

See description TTree::Scan / TTreePlayer::ScanSelect for details.

Cheers,
Philippe.

On 11/9/11 9:51 AM, Jordi Nadal wrote:
> Hello experts,
>
> Quick question:
>
> Is there a way to get only the value for 0, or 1, ...
>
> root [18] HangingTree->Scan("k_ttbar")
> ************************
> * Row * k_ttbar *
> ************************
> * 0 * 0.9779894 *
> * 1 * 0.9909867 *
> * 2 * 0.9958174 *
> * 3 * 1.0182429 *
> * 4 * 1.0084756 *
> * 5 * 1.0146944 *
> * 6 * 0.9960489 *
> * 7 * 1.0123547 *
> * 8 * 0.9920289 *
> * 9 * 0.9788400 *
> ************************
> (Long64_t)10
> root [19]
>
> Thanks you!
>
>
> Jordi Nadal
>
> --
> Avís - Aviso - Legal Notice - (LOPD) - http://legal.ifae.es <http://legal.ifae.es/>
>
Received on Wed Nov 09 2011 - 17:50:18 CET

This archive was generated by hypermail 2.2.0 : Thu Nov 10 2011 - 11:50:02 CET