RE: treeviewer error

From: Bertrand Bellenot <Bertrand.Bellenot_at_cern.ch>
Date: Wed, 17 Jun 2009 11:29:16 +0200


Hi,

Thanks for the report. We are investigating...

Cheers, Bertrand.

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Luca Grandi
Sent: Wednesday, June 17, 2009 11:08
To: roottalk_at_lxbuild091.cern.ch
Subject: [ROOT] treeviewer error

Hi all,

I am having errors with the following simplified macro (running on the attached root file) which:
- creates two chains from the two trees saved inside a root file (new_event_tree and new_run_tree with respectively 10 and 1 entries) - open a treeviewer that contains both trees

////////////////////////////////////////////////////////////////////////
///////////////////////////////

#include "TROOT.h"
#include "TTree.h"
#include "TFile.h"
#include "TChain.h"
#include "TTreeViewer.h"
#include "TTVLVContainer.h"

void example(){
  TChain *event_chain=new TChain("new_event_tree");   TChain *run_chain=new TChain("new_run_tree");   event_chain->Add("run1208_new.root");
  run_chain->Add("run1208_new.root");
  TTreeViewer *treeview=new TTreeViewer(event_chain);   treeview->AppendTree(run_chain);
}

////////////////////////////////////////////////////////////////////////
///////////////////////////////

The treeviewer is opened without problems BUT IF: - I do a plot by double clicking on a leaf of new_run_tree; - I select through the GUI the second tree and double click on a leaf of new_event_tree;
- I select through the GUI the previo tree and try to do a plot of a leaf of new_event_tree;

I GET the following error:

root [1] <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 (class TTree*)0x9ee6fb8 (class TTree*)0x9ee5f90

Received on Wed Jun 17 2009 - 11:29:32 CEST

This archive was generated by hypermail 2.2.0 : Wed Jun 17 2009 - 17:50:02 CEST