RE: TTree::Draw + Projection = segfault?

From: Philippe Canal <>
Date: Thu, 09 Feb 2006 10:52:45 -0600


I can reproduce the problem.
You can work around it by using a different name for the 2nd histogram.
More later.


-----Original Message-----
From: [] On Behalf Of Alexander Bürger
Sent: Thursday, February 09, 2006 5:28 AM To:
Subject: [ROOT] TTree::Draw + Projection = segfault?

Dear ROOTers,

using TTree::Draw to make a matrix which is then projected, the second time the matrix is produced (with different dimensions), there is a segfault when projecting again:

root [] T->Draw("nbf : bf.q >> nqbf(100,0,10000,20,0,20)","","colz") <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 (Long64_t)16318
root [] nqbf->ProjectionX()->Draw()
root [] T->Draw("nbf : bf.q >> nqbf(100,0,10000,22,0,22)","","colz") (Long64_t)16318
root [] nqbf->ProjectionX()->Draw()

How can the segfault be avoided?

The ROOT version I have is CVS (from a few days ago) compiled on Scientific Linux (g++ 3.2.3).

Best wishes,

Alexander Received on Thu Feb 09 2006 - 17:57:42 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET