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) {
34 const Double_t val = 1. - (x * x + y * y + z *
z);
tomato 3-D histogram with a float per channel (see TH1 documentation)}
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
R__EXTERN TStyle * gStyle
void SetCanvasPreferGL(Bool_t prefer=kTRUE)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
THist< 3, float, THistStatContent, THistStatUncertainty > TH3F
you should not use this method at all Int_t Int_t z