Create an image from a 2-D histogram and manipulate it.
void hist2image()
{
TCanvas *canv =
new TCanvas(
"image",
"xygaus + xygaus(5) + xylandau(10)");
TF2 *f2 =
new TF2(
"f2",
"(xygaus + xygaus(5) + xylandau(10))",-4,4,-4,4);
Double_t params[] = {130,-1.4,1.8,1.5,1, 150,2,0.5,-2,0.5, 3600,-2,0.7,-3,0.3};
TH2D *h2 =
new TH2D(
"h2",
"xygaus + xygaus(5) + xylandau(10)",100,-4,4,100,-4,4);
}
- Author
- Valeriy Onuchin
Definition in file hist2image.C.