I am trying something very simple: open multiple root files, plot a histogram and fit a function. I can do that for a single root file without error but am stumped about how to draw histograms from several root files.
Hi, did not want to create a separate topic for this, in my quite big macro, but also in the tutorial example[1], if I try to save the canvas as .C file, it is not working, since in the tutorial script it is:
TH1F *h1st = new TH1F(“h1st”,“test hstack”,100,-4,4);
…
hs->Add(h3st);
while the canvas saved macro contains:
TH1F *h1st__1 = new TH1F(“h1st__1”,“test hstack”,100,-4,4);
…
hs->Add(h1st,"");
so there is a mismatch between the original names and what is stored and called by stack.
Do you happen to know if there is a simple way to fix it?
Cheers.