Hi Rene,
thanks for the fast response.
Would option a) the TRefArray also work if I'd start to mix events where the contents of the event come from two different files/processes?
Not clear to me how to "associate" the TRef to the TRefArray, what do you mean by that?
(Would I still call TTree::BranchRef())
Thanks,
Constantin
Rene Brun wrote:
> Hi Constantin, > > Constantin Loizides wrote:
> correct. We will implement this possibility in a medium term version. > For the time being you must associate a TRef object to the TRefArray to > force the autoloading of another branch.
> This does not make sense. The TRefArray elements are streamed to the > same buffer.
> You can perfectly merge two trees containing TRef and TRefArray. The > corresponding TProcessID objects from all the files are copied to the > result file.
> This a violation of the good old principles of a TClonesArray, ie having > variable length collections > in a variable length collection.
> Yes, this should be OK, although far much less efficient (memory, time > and file space wise) > than a TRefArray.
> std::vector are automatically trimmed to the exact size and rebuilt at > the correct length > when reading. This is done automatically. > > Rene Brun
-- Phone: +41-22-76 78948 (CERN) Skype: loizides / AOL: ConLoiReceived on Mon Jul 14 2008 - 12:21:45 CEST
This archive was generated by hypermail 2.2.0 : Mon Jul 14 2008 - 17:50:02 CEST