RE: TTree::Draw + Projection = segfault?

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


HI,

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

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Alexander Bürger
Sent: Thursday, February 09, 2006 5:28 AM To: roottalk_at_pcroot.cern.ch
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