From 4ec7ca77a72a935146ad1bd45dabef1985a02c68 Mon Sep 17 00:00:00 2001 From: Olivier Couet <olivier.couet@cern.ch> Date: Tue, 9 Jul 2019 11:38:27 +0200 Subject: [PATCH] Fix the typo mentioned here: https://root-forum.cern.ch/t/reading-from-thnsparse/34925 --- hist/hist/src/THnSparse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hist/hist/src/THnSparse.cxx b/hist/hist/src/THnSparse.cxx index 34412cf4dbd..1b1a7148dba 100644 --- a/hist/hist/src/THnSparse.cxx +++ b/hist/hist/src/THnSparse.cxx @@ -518,7 +518,7 @@ axis. A TH2 h("h","h",10, 0., 10., 20, -5., 5.) would correspond to Int_t bins[2] = {10, 20}; Double_t xmin[2] = {0., -5.}; Double_t xmax[2] = {10., 5.}; - THnSparse hs("hs", "hs", 2, bins, min, max); + THnSparse hs("hs", "hs", 2, bins, xmin, xmax); ## Filling A THnSparse is filled just like a regular histogram, using -- GitLab