import LeptonTaggers.LeptonTaggersConfig as LepTagConfig # Add the PromptLeptonImprovedVeto algorithm to AthSequencer MUON5Seq = CfgMgr.AthSequencer("MUON5Sequence") MUON5Seq += LepTagConfig.GetDecorateImprovedPromptLeptonAlgs() # Get the auxiliary variable list ExtraVariables += LepTagConfig.GetExtraImprovedPromptVariablesForDxAOD() # including all input variables and discriminant variable of the PromptLeptonImprovedVeto. # ExtraVariables += LepTagConfig.GetExtraImprovedPromptVariablesForDxAOD(onlyBDT=True) # only get the discriminant variable and pT bin variable of electron and muon.
isoTool = CfgMgr.CP__IsolationSelectionTool('IsolationSelectionTool') isoTool.MuonWP = "PLImprovedTight" # or "PLImprovedVeryTight" isoTool.ElectronWP = "PLImprovedTight" # or "PLImprovedVeryTight" ToolSvc += isoTool isoLowPtPLVTool = CfgMgr.CP__IsolationLowPtPLVTool( 'IsolationLowPtPLVTool') athTool = CfgMgr.Ath__IsoTool('Ath_IsoTool') athTool.isoTool = isoTool athTool.isoLowPtPLVTool = isoLowPtPLVTool athTool.doPLV = False athTool.varName = 'isoPLImprovedTight' # or "isoPLImprovedVeryTight" ToolSvc += athTool