12 gStyle->SetCanvasPreferGL(kTRUE);
15 TGLTH3Composition * comp =
new TGLTH3Composition;
16 TH3F * h1 =
new TH3F(
"h1",
"h1", 10, -1., 1., 10, -1., 1., 10, -1., 1.);
17 TF3 * g3 =
new TF3(
"gaus3",
"xyzgaus");
18 g3->SetParameters(1,0,1,0,1,0,1);
19 h1->FillRandom(
"gaus3");
20 h1->SetFillColor(kRed);
21 TH3F * h2 =
new TH3F(
"h2",
"h2", 10, -1., 1., 10, -1., 1., 10, -1., 1.);
22 TF3 * l3 =
new TF3(
"landau3",
"landau(x,[0],[1],[2])*gaus(y,1,[3],[4])*gaus(z,1,[3],[4])");
23 l3->SetParameters(1,0,1,0.,0.5);
24 h2->FillRandom(
"landau3");
25 h2->SetFillColor(kGreen);
26 TH3F * h3 =
new TH3F(
"h3",
"h3", 10, -1., 1., 10, -1., 1., 10, -1., 1.);
27 TF3 * gx =
new TF3(
"gaus1",
"gaus(x)");
28 gx->SetParameters(1,0,1);
29 h3->FillRandom(
"gaus1");
30 h3->SetFillColor(kBlue);
33 comp->AddTH3(h2, TGLTH3Composition::kSphere);
38 TPaveLabel *title =
new TPaveLabel(0.04, 0.86, 0.96, 0.98,
40 title->SetFillColor(32);