Original version in DQM/SiStripMonitorDigi/python/