Skip to content

Generalised slicing of binned objects

Christian Gutschow requested to merge more_slicing into release-2-0-x

Allows slicing of any (N+1)-dimensional binned object into a vector of N-dimensional binned objects along a given axis.

  • Already existed for BinnedEstimates as mkEstimates()
  • extended to mkHistos() which reduces BH(N+1) -> vec[BH(N)] and BP(N+1) -> BH(N+1) -> vec[BP(N)]
  • extended to mkProfiles() which reduces BP(N+1) -> vec[BP(N)]
  • Calling mkProfiles() on a BinnedHisto doesn't work, but if the histo has at least three dimensions, one could first marginalise over one of them using mkMarginalProfile()

Merge request reports