346 qualitySelectionOutput = None,
347 systematicBreakdown = None,
349 onlyRecoEffSF = None ):
350 """Create muon analysis algorithms for a single working point
353 workingPoint -- The working point to use
354 selectionName -- a postfix to apply to decorations and algorithm
355 names. this is mostly used/needed when using this
356 sequence with multiple working points to ensure all
358 qualitySelectionOutput -- Whether or not to apply muon quality selection
359 when creating output containers.
360 systematicBreakdown -- enables the full breakdown of eff SF systematics
361 noEffSF -- Disables the calculation of efficiencies and scale factors
362 onlyRecoEffSF -- Only enables the reconstruction scale factor
366 config = MuonWorkingPointConfig (containerName, selectionName)
367 if workingPoint
is not None :
368 splitWP = workingPoint.split (
'.')
369 if len (splitWP) != 2 :
370 raise ValueError (
'working point should be of format "quality.isolation", not ' + workingPoint)
371 config.setOptionValue (
'quality', splitWP[0])
372 config.setOptionValue (
'isolation', splitWP[1])
373 config.setOptionValue (
'qualitySelectionOutput', qualitySelectionOutput)
374 config.setOptionValue (
'systematicBreakdown', systematicBreakdown)
375 config.setOptionValue (
'noEffSF', noEffSF)
376 config.setOptionValue (
'onlyRecoEffSF', onlyRecoEffSF)