Hi,
I’m trying to subtract two histogram which have the same name in two different root file. Is there any idea?
Thanks.
Hi,
I’m trying to subtract two histogram which have the same name in two different root file. Is there any idea?
Thanks.
do:
TFile *f1 = TFile::Open("file1.root");
TH1 *h1 = (TH1*)f1->Get"Name of hist");
TFile *f2 = TFile::Open("file2.root");
TH1 *h2 = (TH1*)f2->Get"Name of hist");
h1->Add(h2,-1);
Rene