The plot will contain one line for each filled bin, with the bin's coordinates on each axis, and the bin's content on the rightmost axis.
 
 
{
   
   
   
 
   Int_t dim = 
h->GetNdimensions();
 
   TString title(
h->GetTitle()); title += 
" tree";
 
 
 
   }
   tree->Branch(
"bincontent", &
x[dim], 
"bincontent/D");
 
 
   for (
Long64_t i = 0; i < 
h->GetNbins(); ++i) {
 
      x[dim] = 
h->GetBinContent(i, bins);
 
         x[
d] = 
h->GetAxis(
d)->GetBinCenter(bins[
d]);
 
      }
 
      tree->Fill();
   }
 
   delete [] bins;
   
   return tree;
}
 
 
{
   
 
   h);
 
   tree->GetListOfLeaves());
   }
   whatToDraw, "", "para");
 
   }
}
 
{
   
 
   Int_t bins[
ndims] = {10, 10, 5, 30, 10, 4, 18, 12};
 
 
   
   for (
Long_t i = 0; i < 100000; ++i) {
 
            case 0:
               break;
            case 1:
            case 2:
            case 3:
               break;
            default:
         }
      }
   }
 
 
   auto canv = 
new TCanvas(
"hDrawSparse", 
"Drawing a sparse hist");
 
 
   
 
   
   h3proj->SetDirectory(
nullptr);
 
 
   
 
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
THnSparseT< TArrayD > THnSparseD
 
R__EXTERN TRandom * gRandom
 
Class to manage histogram axis.
 
const char * GetTitle() const override
Returns title of object.
 
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
 
3-D histogram with a double per channel (see TH1 documentation)
 
Efficient multidimensional histogram.
 
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
 
const char * GetName() const override
Returns name of object.
 
void SetTitle(const char *) override
Set the title of the TNamed.
 
void SetHistogramBinning(Int_t n=100)
Set the histogram binning.
 
void SetCurrentLimits(Double_t min, Double_t max)
Set the limits within which one the entries must be painted.
 
Parallel Coordinates class.
 
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
 
Double_t Rndm() override
Machine independent random number generator.
 
A TTree represents a columnar dataset.