Demonstrates how to combine Timur's GL plots with other scene elements.
void glplot_geom()
{
auto h31 =
new TH3F(
"h31",
"h31", 20, -3, 3, 20, -3, 3, 20, -3, 3);
auto gxy =
new TF3(
"gaus2",
"xygaus");
gxy->SetParameters(1,0,1,0,0.3);
h31->FillRandom("gaus2");
h31->SetFillColor(2);
x->SetPlot(h31,
"glbox");
x->RefMainTrans().Scale(800, 800, 1000);
}
R__EXTERN TEveManager * gEve
void AddElement(TEveElement *element, TEveElement *parent=nullptr)
Add an element.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Description of TEvePlot3D.
static void Macro(const char *mac)
Execute macro 'mac'. Do not reload the macro.
A 3-Dim function with parameters.
3-D histogram with a float per channel (see TH1 documentation)
constexpr Double_t PiOver2()
- Author
- Matevz Tadel
Definition in file glplot_geom.C.