Hi ROOT users,
I have been facing a very strange segfault. I have a couple of ROOT files with lots of histograms and some ntuples. I was trying to write a few methods to navigate through the root files and find the desired ntuple and plot one of the variables on to a histogram. And then scale these and overlay them on one canvas.
It works fine when I try to Draw them individually, or when I read them explicitly by using their names and Draw and overlay. But when I try to search and find them something goes wrong.
Where am I going wrong? Thanks for any help on this.
And a sample of the macro is attached. The root files I used are here: <http://hep.phys.sfu.ca/~suvayu/4roottalk/>
Backtrace: (ROOT 5.26)
> at tree/treeplayer/src/TTreePlayer.cxx:2796
> #16 0x00007f5cb768dfb1 in TTreePlayer::DrawSelect (this=0x1c30700, varexp0=0x7f5cb73aed73 "MET>>tmp_histo(100,0,100)", selection=0x7f5cb7f1d400 "",
> option=0x7f5cb7f1d400 "", nentries=1000000000, firstentry=0) at tree/treeplayer/src/TTreePlayer.cxx:1073
> #17 0x00007f5cb7e3a906 in TTree::Draw (this=0x1bcb720, varexp=0x7f5cb73aed73 "MET>>tmp_histo(100,0,100)", selection=0x7f5cb7f1d400 "", option=0x7f5cb7f1d400 "",
> nentries=1000000000, firstentry=0) at tree/tree/src/TTree.cxx:3442
-- Suvayu Open source is the future. It sets us free.Received on Fri Jun 04 2010 - 08:53:10 CEST
- text/x-c++src attachment: sample.C
This archive was generated by hypermail 2.2.0 : Fri Jun 04 2010 - 11:50:01 CEST