On Thu, 28 Oct 1999, stefan kluth wrote: > That sounds good, but I think it should also be possible to set this per > branch. So TTree::SetAutoDelete(Bool_t mode=kTRUE) could be used to set > the default behaviour for all branches of a tree, but one could also use > TBranch::SetAutoDelete(Bool_t mode=kTRUE) to switch branches individually. > One could also think of a scheme, where it depends on the value of the > pointer in TBranch::fAddress, e.g. if it is 0, ROOT creates and deletes > for every event, and if it is != 0, ROOT doesn't does not delete and > create it. However, I do not like this implicit method, and I prefer > explicit setting of this important behaviour in the way you proposed. I forgot to mention another thing. It is good that ROOT creates the object if the pointer in TBranch::fAddress is 0, and tries to use the one pointed at by the pointer in TBranch::fAddress if it is != 0. I believe this is already the case. cheers, Stefan ---Stefan Kluth---------------Lynen Fellow----------------|\--|\------- - LBNL, MS 50A 2160 - phone: +1 510 495 2376 - |/ |/ - - 1 Cyclotron Rd. - fax: +1 510 495 2957 - |\/\|\/\|' - ---Berkeley, CA94720, USA-----e-mail: SKluth@lbl.gov------|/\/|/\/|----
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:41 MET