THnSparse

Hi is it possible to impose variable width binning using the THnSparse class?

Thanks

Maki

Hi,

yes, using h->GetAxis(i)->Set(nbins, arrBinEdges) before filling it, and after constructing it with THnSparse(“name”, “title”, ndims, arrNbins). I.e. you don’t have to specify the bin edges in the THnSparse constructor.

Cheers, Axel.