[ROOT] SetVirtual in TTree leaf

From: Anton Fokin (anton.fokin@smartquant.com)
Date: Wed Aug 01 2001 - 15:36:29 MEST


Hello,

I would like to use SetVirtual(kFALSE) feature in non-split mode. Could you
please check if I am doing right thing below. I do not observe any size
reduction in NO COMPRESSION mode.

Basically my question is: should it be "Daily" leaf of the tree "TDaily"
leaf of "Daili" branch?

Regards,
Anton


        OutDailyTree      = new TTree("DailyTree", "Daily tree");
        OutDailyTree     ->Branch("Daily", "TDaily", &fDaily, fBasketSize,
fSplitMode);

        if (fSplitMode == 0)

((TLeafObject*)OutDailyTree->GetLeaf("Daily"))->SetVirtual(kFALSE);

        if (!InDailyTree)
          Warning("Rebuild", "No input daily tree");
        else
          OutDailyTree   ->CopyEntries(InDailyTree);

        OutDailyTree     ->Write();


http://www.smartquant.com



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:53 MET