Re: Independent branches in a TTree

From: Julien Piot <julien.piot_at_IReS.in2p3.fr>
Date: Wed, 18 Jun 2008 15:03:26 +0200


Hi,

It is indeed the conclusion I was also brought to.

Thanks for your help.

Julien

Le 18 juin 08 à 14:46, Philippe Canal a écrit :

> Hi Julien,
>
>> The TTree->Fill() function doesn't suit my needs since it will link
>> the branches together via the entry number.
>
> To create branches that are not linked via entry number you would
> create independent trees (with sets of branches that are linked
> by entry number) and connect the TTrees via TTree friendship and
> an index (that tells how the entries in each of the tree are
> connected) See TTree::AddFriend and TTree::BuildIndex.
>
> Cheers,
> Philippe.
>
> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-
> roottalk_at_root.cern.ch] On
> Behalf Of Julien Piot
> Sent: Wednesday, June 18, 2008 4:35 AM
> To: roottalk_at_lxbuild091.cern.ch
> Subject: [ROOT] Independent branches in a TTree
>
> Dear ROOTers,
>
> I have data from raw files that I want to store in TTrees via user
> made classes defining particles (Gammas, alphas, etc...). The events
> are not reconstructed yet, so I need as much independence as possible
> between the branches so I can go through branches in order to find
> coincidences.
>
> The TTree->Fill() function doesn't suit my needs since it will link
> the branches together via the entry number.
>
> Is there a possibility to do this with TTrees or do I need to look for
> another storage format ?
>
> Thanks a lot.
>
> Cordially,
>
> Julien
> ==========================================
> Julien Piot
>
> IPHC/DRS
> bat.27 bureau 216
> 23 rue du Loess
> 67037 Strasbourg
>
> 03.88.10.64.19
>
> julien.piot_at_ires.in2p3.fr
>
> =======================================
>



Julien Piot

IPHC/DRS
bat.27 bureau 216
23 rue du Loess
67037 Strasbourg

03.88.10.64.19

julien.piot_at_ires.in2p3.fr


Received on Wed Jun 18 2008 - 15:03:34 CEST

This archive was generated by hypermail 2.2.0 : Wed Jun 18 2008 - 17:50:01 CEST