Example displaying two histograms and their ratio.
This macro does not use the class TRatioPlot. For ROOT version >= 6.08 TRatioPlot should be used. See the other ratio plots examples in this folder.
void ratioplotOld( ) {
TH1F *h1 =
new TH1F(
"h1",
"Two gaussian plots and their ratio;x title; h1 and h2 gaussian histograms", 100, -5, 5);
TH1F *h2 =
new TH1F(
"h2",
"h2", 100, -5, 5);
TPad *pad1 =
new TPad(
"pad1",
"pad1", 0, 0.3, 1, 1.0);
TPad *pad2 =
new TPad(
"pad2",
"pad2", 0, 0.05, 1, 0.3);
}
- Author
- Olivier Couet
Definition in file ratioplotOld.C.