Example displaying two histograms and their ratio.
More...
Go to the source code of this file.
Example displaying two histograms and their ratio.
void ratioplot() {
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 ratioplot.C.