On Wed, 10 Nov 1999, Rene Brun wrote: > At the branch creation time, the branch compression level is > automatically > set to the file compression level. This is to facilitate an easy switch > between compression and no compression. You have only one statement > to change, the TFile constructor or the file->SetCompressionLevel. > Note that if you create branches yourself and if you do not want the > automatic > assignement of the compression level, you can do as follows: > file->SetCompressionLevel(1); > tree->Branch("b1",... > file->SetCompressionLevel(0); > tree->Branch("b2".. > etc.. I am using TBranch::SetCompressionLevel( int ) to set the compression level per branch right after creation. My problem is that if I create a branch with split-mode, the call to TBranch::SetCompressionLevel( int ) for that branch doesn't change the compression level of the subbranches. I think this would be a desirable feature which could be added to TBranch::SetCompressionLevel( int ) (one only needs to add a loop over all subbranches in case of split mode). Otherwise, the ability to choose the compression level per branch is lost for branches in split-mode or one has to do a workaround in the way you suggest. 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:42 MET