Re: Problems using STL vectors in trees with TTree::Draw()

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Fri, 23 Feb 2007 16:23:08 +0100


Hi Nathaniel,

Nathaniel Tagg wrote:
> I'm trying to use STL vectors in trees. Vectors are by FAR easier to
> work with than TClonesArrays, so I want to use them in our code.

Just keep in mind that vectors are also FAR (I mean really: A LOT) less efficient than TClonesArrays; see the doc to TClonesArrays and the relevant user's guide chapter. Once you have them set up they're as easy to use as any other collection in ROOT.

Axel. Received on Fri Feb 23 2007 - 16:22:22 CET

This archive was generated by hypermail 2.2.0 : Fri Feb 23 2007 - 23:50:01 CET