Make Convention and FileFormat enums public (in order to be used by static functions in the source file).
Remove code duplication for Online and Offline conventions: added static function for generating file names for ROOT and PB format, modified doSaveForOnline for saving the contents of DQMStore for ROOT and PB format.