Hi ROOTers,
I have two different types of root files.
I want to overlap these two in one.
I have attached these files.
How can I do this?
Thanks in advance,
Hi ROOTers,
I have two different types of root files.
I want to overlap these two in one.
I have attached these files.
How can I do this?
Thanks in advance,
Not clear what you want to do. Your files contain a canvas each. If you simply want to overlap the two canvases
you can do something like in the few lines below
Rene
void cmerge() {
TFile *f3 = TFile::Open("x3.root");
TCanvas *c3 = (TCanvas*)f3->Get("c1");
TGraph *g = (TGraph*)c1->GetPrimitive("Graph");
TFile *f1 = TFile::Open("x1.root");
TCanvas *c1 = (TCanvas*)f1->Get("Canvas 1");
c1->Draw();
g->Draw("lp");
}