Re: TClonesArray

From: Mario Kadastik <mario.kadastik_at_cern.ch>
Date: Mon, 07 Mar 2005 21:41:29 +0200


Axel Naumann wrote:

>Hi Mario,
>there's no need to copy the particles. Just add them to your TCLonesArray:
>
>(*fpart)[m]=prt;
>
>You can find a working example attached; running it with .L test.C+
>works for me.
>
>
>

thanks, it works now :) I have reduced a 10000 event sample from 171MB to 1.8MB :) 100x less space used means 100x more events available :)

Mario Received on Mon Mar 07 2005 - 20:41:39 MET

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