new code to make validation plots

These changes are only affecting offline scripts to be used to produce some validation plots from DQM root files.