Hi, thanks for replying my post.
I run your script and give this output:
root [0]
Processing MergePlot.C…
In file included from input_line_8:1:
/home/msb/garfield/Examples/GenerateGasTable_Ar90_ch4_10/build/MergePlot.C:29:28: error: use of undeclared identifier ‘h1’
fr1->GetObject(“cT1;1”, h1);
^
/home/msb/garfield/Examples/GenerateGasTable_Ar90_ch4_10/build/MergePlot.C:33:28: error: use of undeclared identifier ‘h2’
fr2->GetObject(“cT2;1”, h2);
^
/home/msb/garfield/Examples/GenerateGasTable_Ar90_ch4_10/build/MergePlot.C:36:4: error: use of undeclared identifier ‘h1’
h1->Draw();
^
/home/msb/garfield/Examples/GenerateGasTable_Ar90_ch4_10/build/MergePlot.C:37:4: error: use of undeclared identifier ‘h2’
h2->Draw(“same”);
That’s not trivial because canvases are complete pictures. If you want to superimpose the histograms which are inside the canvases you can get the histograms from the canvases and superimpose them using SAME. You better store histograms and note canvases.
Hi Olivier
Thanks for answered my question.
I ran your script and gave a output. But when I run it today, give an error.
I send the error as a txt file.
If it possible help me to solve it. error.txt (2.4 KB)
I have another question.
Suppose I have a root file.
How can I find out what information this file contains? For example, if it is a histogram, what is its x and y axis?