I noticed while trying to make a plot recently that there is no support for 2D plots using SpillVar, MultiVar or SpillMultiVar. This PR utilises the current infrastructure for Vars to allow for the creation of spectrums of such types.
I also noticed that the function in Utilities that converts the Spectrum to a TH2 has the title and name fields inverted, I have corrected this.
Below is an example of a dE/dx residual range curve for contained muons created using the SpillMutliVar functionality.
I noticed while trying to make a plot recently that there is no support for 2D plots using
SpillVar
,MultiVar
orSpillMultiVar
. This PR utilises the current infrastructure forVar
s to allow for the creation of spectrums of such types.I also noticed that the function in Utilities that converts the Spectrum to a TH2 has the title and name fields inverted, I have corrected this.
Below is an example of a dE/dx residual range curve for contained muons created using the SpillMutliVar functionality.