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