SchedulerMonSvc: add more histograms and clean up python configuration
Add the following new histograms:
- Individual state counts, total and vs time
- State counts divided by N threads, total and vs time
- Individual active state counts divided by sum of all active state counts ("active" = CONTROLREADY, DATAREADY, RESOURCELESS, SCHEDULED), total and vs time
Also reorganise slightly the python configuration by adding helper functions to reduce boilerplate code.
Tagging @tbold, @bwynne, @amete for information and for further suggestions
Examples of the new histograms for various forks-threads-slots configuration can be found here:
https://cernbox.cern.ch/index.php/s/HWADuT1A0EWTCF8
Pasting just two here to show that this is tested and works (this case is with 6 threads, 6 slots):
Edited by Rafal Bielski