Re: TTree Makeclass

From: Brett Viren <bv_at_bnl.gov>
Date: Tue, 08 Feb 2005 10:30:23 -0500


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 - 16:30:57 MET

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