RootTalk


ROOT Discussion Forums

TTree::Branch segmentation violation if splitlevel = 0

Discuss installing and running ROOT here. Please post bug reports here.

Moderator: rootdev

TTree::Branch segmentation violation if splitlevel = 0

Unread postby Wile E. Coyote » Fri Feb 01, 2013 13:56

Why?
Code: Select all
{
  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;
}
Wile E. Coyote
 
Posts: 469
Joined: Sun Sep 30, 2012 10:50

Re: TTree::Branch segmentation violation if splitlevel = 0

Unread postby pcanal » Fri Feb 15, 2013 4:56

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.
pcanal
 
Posts: 6147
Joined: Wed Aug 27, 2003 14:22
Location: Fermilab


Return to ROOT Support

Who is online

Users browsing this forum: No registered users and 1 guest