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

From: Jordi Nadal <jnadal_at_ifae.es>
Date: Thu, 10 Nov 2011 11:26:10 +0100


Hello Philippe,

another quick question ;)

is there a way to save the output of :

HangingTree->Scan("k_ttbar", "", "", 1, 0) HangingTree->Scan("k_ttbar", "", "", 1, 1)

in a variable?

something like int k = HangingTree->Scan("k_ttbar", "", "", 1, 0) ??

Thanks!

Jordi

On Nov 9, 2011, at 5:50 PM, Philippe Canal wrote:

> 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
>>

Jordi Nadal

--
Avís - Aviso - Legal Notice - (LOPD) - http://legal.ifae.es
Received on Thu Nov 10 2011 - 11:26:20 CET

This archive was generated by hypermail 2.2.0 : Thu Nov 10 2011 - 17:50:01 CET