AthenaMonitoringKernel: Refactor TProfile filling
The dedicated code to fill TProfile
histograms was entirely redundant. Make the existing TH2
filler templated on the histogram type such that it can be used for both TH2
and TProfile
. Apart from removing code duplication, TProfile can now also be filled via alphanumeric values just like any other histogram.
Also in this MR:
- make the
fill
methodconst
- add a unit test for
TProfile
filling
Tested and validated with Run3DQTestingDriver.py. cc @tbold @ponyisi @cburton