Castor DQM

Castor DQM routine upgraded to match the specifications of the new framework.