587 chargeIDSelectionRun2 = None,
588 recomputeChargeID = None,
590 forceFullSimConfig = None):
591 """Create electron analysis configuration blocks
594 workingPoint -- The working point to use
595 selectionName -- a postfix to apply to decorations and algorithm
596 names. this is mostly used/needed when using this
597 sequence with multiple working points to ensure all
599 recomputeID -- Whether to rerun the LH/DNN ID. If not, use derivation flags
600 chargeIDSelectionRun2 -- Whether or not to perform charge ID/flip selection
601 recomputeChargeID -- Whether to rerun the ECIDS. If not, use derivation flags
602 noEffSF -- Disables the calculation of efficiencies and scale factors
603 forceFullSimConfig -- imposes full-sim config for FastSim for testing
607 config = ElectronWorkingPointConfig (containerName, selectionName)
608 if workingPoint
is not None :
609 splitWP = workingPoint.split (
'.')
610 if len (splitWP) != 2 :
611 raise ValueError (
'working point should be of format "likelihood.isolation", not ' + workingPoint)
612 config.setOptionValue (
'identificationWP', splitWP[0])
613 config.setOptionValue (
'isolationWP', splitWP[1])
614 config.setOptionValue (
'recomputeID', recomputeID)
615 config.setOptionValue (
'chargeIDSelectionRun2', chargeIDSelectionRun2)
616 config.setOptionValue (
'recomputeChargeID', recomputeChargeID)
617 config.setOptionValue (
'noEffSF', noEffSF)
618 config.setOptionValue (
'forceFullSimConfig', forceFullSimConfig)