Skip to content
Snippets Groups Projects
Commit d42f6dd2 authored by Baptiste Ravina's avatar Baptiste Ravina Committed by Edward Moyse
Browse files

CPAlgorithms: enable systematics filtering in config blocks

CPAlgorithms: enable systematics filtering in config blocks
parent bf2d5df3
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ class CommonServicesConfig (ConfigBlock) :
def __init__ (self) :
super (CommonServicesConfig, self).__init__ ('CommonServices')
self.addOption ('runSystematics', None, type=bool)
self.addOption ('filterSystematics', None, type=str)
def makeAlgs (self, config) :
......@@ -26,6 +27,8 @@ class CommonServicesConfig (ConfigBlock) :
runSystematics = config.dataType() != 'data'
if runSystematics :
sysService.sigmaRecommended = 1
if self.filterSystematics is not None:
sysService.systematicsRegex = self.filterSystematics
config.createService( 'CP::SelectionNameSvc', 'SelectionNameSvc')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment