Home | News | Documentation | Download

TTree::Branch segmentation violation if splitlevel = 0


#1

Why? { TVector3 Pos(1, 2, 3); TFile *f = TFile::Open("test.root", "recreate"); TTree *t = new TTree("tree", "tree with vector"); t->Branch("Pos", &Pos, 32000, 0); // segmentation violation if splitlevel = 0 t->Fill(); t->Write(); delete f; }


#2

Hi,

This particular combination was broken (i.e. can not use TVector3 with split level 0). This is corrected in the v5.34 patch branch (5.34/06 and up) and in the trunk.

Thanks for reporting this issue.
Philippe.