HeavyIonAnalysis/AnalysisTree

Bug in AnalysisTree::MakeChain

Closed this issue · 1 comments

Segfault is happening if more than one file is set.

Segfaulting here:

t->GetEntry(0);//init pointers

I removed cout in AnalysisTree::MakeChain and put chain->ls() instead. Here is the output:

OBJ: TChain aTree : 0 at: 0x8793f0
/home/eugene/STORAGE/data/analysistree/na61/pbpb/13agev/data/16_025/run-026184.analysistree.roottree:aTree entries=
Adding files to chain:
OBJ: TChain aTree : 0 at: 0x1cee4a0
/home/eugene/STORAGE/data/analysistree/na61/pbpb/13agev/data/16_025/run-026184.centrality.roottree:aTree entries=
Adding files to chain:
OBJ: TChain aTree : 0 at: 0x1dfc3f0

The last chain seems to be not initialized.