Use of THnSparse

I’ve been getting an error that I cannot understand while trying to use the class THnSparse. I have even tried searching for it on internet but that did not help much.
Here is a sample of code from its reference page image
Here is the error

and here is my code
image ___
Please read tips for efficient and successful posting and posting code

ROOT Version: 16.18/04
Platform: Windows
Compiler: Not Provided

@couet This is a bug in the THnSparse documentation. You need to use e.g. a THnSparseD.


This code is giving me a blank canvas, not to say the previous one was giving nothing

@Wile_E_Coyote. Now fixed. Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.