cms-sw/cmssw — pull request #280 by wmtan (2013-08-10 04:18:21+00:00)
Title: Add function to calculate ID of empty parameter set without registering ...

There are at least three different places in CMSSW outside the framework, where the empty parameter set is explicitly registered. A previously merged pull request registered the empty parameter set up front during the initialization of the EventProcessor.
Unfortunately, there is currently no public member function of ParameterSet that calculates the ID of a given parameter set without attempting to register it, even if the empty parameter set is already registered. Some places outside the framework need the ability to get the ID of the empty parameter set without attempting to register it.
This pull request adds a static function of ParameterSet that returns the ID of the empty parameter set without registering it. This pull request also replaces a registration of the empty parameter set in a unit test in the framework.
After this request is merged, I will remove the explicit registrations of the empty parameter set outside the framework.
This will reduce the number of places in the code where the registries are updated.