Assuming two files Ideal.root and Misaligned.root containing each a tree
named ZEEL2, you can do something like:
TFile *f1 = TFile::Open("Ideal.root"); TTree *Ideal = (TTree*)f1->Get("ZEEL2"); TFile *f2 = TFile::Open("Misaligned.root"); TTree *Misaligned = (TTree*)f2->Getr("ZEEL2");TCanvas *c1 = new TCanvas("c1");
//possibly divide your canvas into subpads //c1->Divide(4,4); //c1->cd(1);
Rene brun
Daniel Andrade Leon wrote:
> Hi ROOTERS !!!
>
> I'm new in ROOT.
> Please help me...!!!
> I have one ntuple with information about Ideal Geometry and 4 ntuples with information about Misaligned Geometry.
> I have to plot about 60 variables that are in the tree named "ZEEL2" inside the ntuples and change the cuts or scale of some of the variables in order to get a good plot.
> After that, I have to compare the ideal and the misaligned geometry by plotting both in the same canvas.
>
> Thanks for your help.
> ;)
>
> Daniel
>
>
>
>
>
Received on Thu Aug 09 2007 - 09:18:46 CEST
This archive was generated by hypermail 2.2.0 : Thu Aug 09 2007 - 17:50:02 CEST