Hi Marc,
If you have a large number of object, you should consider placing them in a TTree. When using the TTree, the allocation and constructor calls are effectively eliminated.
Cheers,
Philippe.
PS. The direct answer to your question is TDirectoryFile::ReadTObject
On 11/10/11 3:21 PM, Marc de Kamps wrote:
> Hi,
>
> I have a great many objects of the same type that I need to get out of a root file.
>
> To my understanding the Get method calls operator new (and thus allocates) which becomes hurtful. Is the a placement new equivalent?
>
> Is this possible?
>
> Thanks,
> Marc
Received on Fri Nov 11 2011 - 00:10:40 CET
This archive was generated by hypermail 2.2.0 : Fri Nov 11 2011 - 23:50:02 CET