Re: compression level of subbranches?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Nov 10 1999 - 08:44:26 MET


Hi Stefan,
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..

Rene Brun

stefan kluth wrote:
> 
> Hi,
> 
> I am setting the compression level individually for every branch I create.
> This works fine for branches which are not split. However, when I have a
> branch (TObjectBranch) containing an object containing in turn a
> TClonesArray and turn on the split-mode, the subbranches have the
> compression level of the file and not of their superbranch as I was
> hoping. Is this on purpose? I would think that a behaviour of
> TObjectBranch where it passes its compression level on to its subbranches
> in case of split-mode is more natural.
> 
> 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