improving loop method
Merge branch 'master' of github.com:cmsromadaq/H4DQM