14 const Double_t xMin = -1., xMax = 1., xStep = (xMax - xMin) / (nX - 1);
17 const Double_t yMin = -1., yMax = 1., yStep = (yMax - yMin) / (nY - 1);
20 const Double_t zMin = -1., zMax = 1., zStep = (zMax - zMin) / (nZ - 1);
22 TH3F *hist =
new TH3F(
"glvoxel",
"glvoxel", 30, -1., 1., 30, -1., 1., 30, -1., 1.);
25 for (
UInt_t i = 0; i < nZ; ++i) {
28 for (
UInt_t j = 0; j < nY; ++j) {
31 for (
UInt_t k = 0; k < nX; ++k) {
R__EXTERN TStyle * gStyle
virtual void Draw(Option_t *option="")
Draw this histogram with options.
3-D histogram with a float per channel (see TH1 documentation)}
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
void SetCanvasPreferGL(Bool_t prefer=kTRUE)