DQMOffline/EGamma Implement updates for multithreading in offline clients 

please avoid returning huge collection by value.