Bug #15602
Missing axis labels in CAFAna spectra
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/20/2017
Due date:
% Done:
0%
Estimated time:
Co-Assignees:
Categorization:
-
Description
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...
Associated revisions
History
#1 Updated by Jeremy Wolcott about 4 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.
#2 Updated by Jeremy Wolcott about 4 years ago
- Status changed from Accepted to Resolved
I believe I've fixed this in novaart:r24178. (At least, it seemed to work in a quick test I did.) Reopen if it doesn't work for you.
#3 Updated by Jeremy Wolcott about 4 years ago
- Status changed from Resolved to Closed
copy axis labels from Spectrum objects where appropriate. should fix
Redmine issue #15602.