Re: TTree Makeclass

From: Axel Naumann <axel-naumann_at_gmx.de>
Date: Tue, 08 Feb 2005 15:06:13 -0600


Hi Gagik,
you can use TTree::MakeProxy, which afaik respects the BranchStatus. Axel.

Gagik Gavalian wrote:
> Hi Brett,
>
> As I mentioned I have more than 500 branches. Takes time to edit the file.
> Being a lazy person I expected a more elegant solution.
> If there is isn't one , I will have to edit the file.
>
> Thanks for reply
> Gagik
>
>
> Brett Viren wrote:
>

>> Gagik Gavalian <gavalian_at_jlab.org> writes:
>>
>>  
>>
>>> Hi,
>>>
>>> I'm trying to generate a class to loop over the events in the tree
>>> with TTree->MakeClass().
>>> My tree has many branches (~500) that might not appear in the final
>>> version of the tree, so I wanted to include
>>> only some of the brunches in the class that loopes over events.
>>>
>>> I was wondering if anyone knows how to make MakeClass to generate code
>>> ony for specific branches.
>>> the methos TTree:SetBranchStatus("L_*",0) does not prevent the
>>> MakeClass from generating code for these branches in the tree.
>>>
>>> If anyone knows a quick way to do it, please let me know.
>>>   
>>
>>
>> What about just editing the resulting files to delete the unwanted
>> leaves?
>>
>> -Brett.
>>  
>>

>
Received on Tue Feb 08 2005 - 22:06:36 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET