15 TF2 *f2 =
new TF2(
"f2",
"xygaus + xygaus(5) + xylandau(10)",-4,4,-4,4);
16 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};
18 TH2F h2(
"h2",
"xygaus + xygaus(5) + xylandau(10)",20,-4,4,20,-4,4);
20 h2.FillRandom(
"f2",40000);
24 Float_t xMin=0.67, yMin=0.875, xMax=0.85, yMax=0.95;
26 TCanvas c2h(
"c2h",
"2-d options",10,10,800,600);
28 c2h.SetFillColor(cancolor);
30 h2.Draw(); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"SCAT",
"brNDC");
32 h2.Draw(
"box"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"BOX",
"brNDC");
34 h2.Draw(
"arr"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"ARR",
"brNDC");
36 h2.Draw(
"colz"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"COLZ",
"brNDC");
40 TCanvas ctext(
"ctext",
"text option",50,50,800,600);
42 ctext.SetFillColor(cancolor);
44 h2.Draw(
"text"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"TEXT",
"brNDC");
48 TCanvas cont(
"contours",
"contours",100,100,800,600);
51 cont.SetFillColor(cancolor);
53 h2.Draw(
"contz"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"CONTZ",
"brNDC");
56 h2.Draw(
"cont1"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"CONT1",
"brNDC");
59 h2.Draw(
"cont2"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"CONT2",
"brNDC");
62 h2.Draw(
"cont3"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"CONT3",
"brNDC");
66 TCanvas lego(
"lego",
"lego options",150,150,800,600);
68 lego.SetFillColor(cancolor);
70 h2.Draw(
"lego"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"LEGO",
"brNDC");
72 h2.Draw(
"lego1"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"LEGO1",
"brNDC");
74 gPad->SetTheta(61);
gPad->SetPhi(-82);
75 h2.Draw(
"surf1pol"); pl.
DrawPaveLabel(xMin,yMin,xMax+0.05,yMax,
"SURF1POL",
"brNDC");
77 gPad->SetTheta(21);
gPad->SetPhi(-90);
78 h2.Draw(
"surf1cyl"); pl.
DrawPaveLabel(xMin,yMin,xMax+0.05,yMax,
"SURF1CYL",
"brNDC");
82 TCanvas surf(
"surfopt",
"surface options",200,200,800,600);
84 surf.SetFillColor(cancolor);
86 h2.Draw(
"surf1"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"SURF1",
"brNDC");
88 h2.Draw(
"surf2z"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"SURF2Z",
"brNDC");
90 h2.Draw(
"surf3"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"SURF3",
"brNDC");
92 h2.Draw(
"surf4"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"SURF4",
"brNDC");
virtual void SetParameters(const Double_t *params)
R__EXTERN TStyle * gStyle
void SetCanvasColor(Color_t color=19)
void SetFrameFillColor(Color_t color=1)
virtual void DrawPaveLabel(Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char *label, Option_t *option="")
Draw this pavelabel with new coordinates.
A Pave (see TPave) with a text centered in the Pave.
2-D histogram with a float per channel (see TH1 documentation)}
A 2-Dim function with parameters.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...