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