Accessing TNonSplitBrowsable in a TBranchElement

ROOT Version: 6.24/02
Platform: Linux

I want to plot a histogram,the data I need is stored in a TNonSplitBrowsable, within a TBranchElement. I don’t know how to get the data ,for example,the fEvent or fNvertex.

root [0] TFile* f = new TFile(“galice.root”)
Warning in TClass::Init: no dictionary for class AliHeader is available
Warning in TClass::Init: no dictionary for class AliStack is available
Warning in TClass::Init: no dictionary for class AliGenEventHeader is available
(TFile ) 0x558d070033e0
root [1] .ls
TFile
* galice.root
TFile* galice.root
KEY: TTree TE;1 Tree with Headers
root [2] TTree* tree = (TTree*)f->Get(“TE”)
(TTree *) 0x558d078d1990
root [3] tree->Print()


*Tree :TE : Tree with Headers *
*Entries : 0 : Total = 907 bytes File Size = 375 *

  •    :          : Tree compression factor =   1.00                       *
    

*Br 0 :Header : AliHeader *
*Entries : 0 : Total Size= 493 bytes One basket in memory *
*Baskets : 0 : Basket Size= 4000 bytes Compression= 1.00 *

Screenshot from 2022-09-10 15-47-26

Hi @liuha,

from the name of the classes in the branches like AliHeader it seems your are dealing with ROOT files that contain custom ALICE data formats. You should better ask in the ALICE forum on how to deal with them in particular:

Cheers,
Jonas

Thanks for your advice,i’ll do it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.