598 chargeIDSelectionRun2 = None,
599 recomputeChargeID = None,
601 forceFullSimConfig = None):
602 """Create electron analysis configuration blocks
605 workingPoint -- The working point to use
606 selectionName -- a postfix to apply to decorations and algorithm
607 names. this is mostly used/needed when using this
608 sequence with multiple working points to ensure all
610 recomputeID -- Whether to rerun the LH/DNN ID. If not, use derivation flags
611 chargeIDSelectionRun2 -- Whether or not to perform charge ID/flip selection
612 recomputeChargeID -- Whether to rerun the ECIDS. If not, use derivation flags
613 noEffSF -- Disables the calculation of efficiencies and scale factors
614 forceFullSimConfig -- imposes full-sim config for FastSim for testing
618 config = ElectronWorkingPointConfig (containerName, selectionName)
619 if workingPoint
is not None :
620 splitWP = workingPoint.split (
'.')
621 if len (splitWP) != 2 :
622 raise ValueError (
'working point should be of format "likelihood.isolation", not ' + workingPoint)
623 config.setOptionValue (
'identificationWP', splitWP[0])
624 config.setOptionValue (
'isolationWP', splitWP[1])
625 config.setOptionValue (
'recomputeID', recomputeID)
626 config.setOptionValue (
'chargeIDSelectionRun2', chargeIDSelectionRun2)
627 config.setOptionValue (
'recomputeChargeID', recomputeChargeID)
628 config.setOptionValue (
'noEffSF', noEffSF)
629 config.setOptionValue (
'forceFullSimConfig', forceFullSimConfig)