treeviewer error

From: Luca Grandi <luca.grandi_at_pv.infn.it>
Date: Wed, 17 Jun 2009 11:07:36 +0200


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:07:47 CEST

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