Missing axis labels in CAFAna spectra
When some (all?) ana::Spectrum are saved, the histograms in the file ("sp/hist") don't have axis labels, so they don't show up in the validation plots. A fix that should work for all modern 1D spectra (after Revision r23330) is to read the label from (TObjString) "sp/label0". Not sure about 2D, or backwards compatibility...
#1 Updated by Jeremy Wolcott over 3 years ago
- Status changed from New to Accepted
So far I'd just been using the output of
h.GetTitle() and splitting on
; , but I think this started before the reorganization of
Spectrum that moved the histogram axis titles around. Thanks for suggesting a better approach, though... will look into it.