# ensure that /TRIGGER/HLT/PrescaleKey is always loaded # it is not loaded by TriggerConfigGetter when trigger metadata is missing # but it should have been loaded. We need LB-wise HLT prescale key if trigcfg.hasLBwiseHLTPrescalesAndL1ItemDef is False and inputFileSummary['evt_type'][0] == "IS_DATA": from IOVDbSvc.CondDB import conddb conddb.addFolderWithTag("TRIGGER", "/TRIGGER/HLT/PrescaleKey", "HEAD") conddb.addFolderWithTag("TRIGGER", "/TRIGGER/HLT/Prescales", "HEAD") conddb.addFolderWithTag("TRIGGER", "/TRIGGER/LVL1/ItemDef", "HEAD") from AthenaCommon.AppMgr import ToolSvc from TrigDecisionTool.TrigDecisionToolConf import Trig__TrigDecisionTool if job.pool2ei.HaveXHlt: tdt = Trig__TrigDecisionTool(name="TrigDecisionTool", TrigConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc") tdt.TrigDecisionKey = 'xTrigDecision' tdt.UseAODDecision = False else: # use old decision tdt = Trig__TrigDecisionTool(name="TrigDecisionTool", TrigConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc") tdt.TrigDecisionKey = 'TrigDecision' tdt.UseAODDecision = True ToolSvc += tdt if job.pool2ei.HaveXHlt: from TrigEDMConfig.TriggerEDM import EDMLibraries ToolSvc.TrigDecisionTool.Navigation.Dlls = [e for e in EDMLibraries if 'TPCnv' not in e] from TriggerJobOpts.Lvl1ResultBuilderGetter import Lvl1ResultBuilderGetter hltouput = Lvl1ResultBuilderGetter()
SFtool.OutputLevel = INFO from MuonMomentumCorrections.MuonMomentumCorrectionsConf import CP__MuonCalibrationAndSmearingTool CalibrationTool = CP__MuonCalibrationAndSmearingTool() CalibrationTool.Year = 'Data12' CalibrationTool.Release = 'Rel17.2Sum13' CalibrationTool.OutputLevel = INFO from MuonSelectorTools.MuonSelectorToolsConf import CP__MuonSelectionTool SelectionTool = CP__MuonSelectionTool() SelectionTool.OutputLevel = INFO from TrigDecisionTool.TrigDecisionToolConf import Trig__TrigDecisionTool TriggerTool = Trig__TrigDecisionTool("TrigDecTool") ToolSvc += TriggerTool TriggerTool.TrigDecisionKey = "xTrigDecision" TriggerTool.OutputLevel = INFO from TrigMuonMatching.TrigMuonMatchingConf import Trig__TrigMuonMatching MatchingTool = Trig__TrigMuonMatching("TrigMatchTool") MatchingTool.dRmin = 0.1 MatchingTool.LVL1dRmin = 0.2 MatchingTool.TriggerTool = TriggerTool MatchingTool.OutputLevel = INFO # Create an instance of the Resonance selection tool for Zmumu from MuonResonanceTools.MuonResonanceToolsConf import MuonResonanceSelectionTool ToolSvc += MuonResonanceSelectionTool("MuonZSelectionTool") ToolSvc.MuonZSelectionTool.PtCut = 20000 ToolSvc.MuonZSelectionTool.EtaCut = 2.5 ToolSvc.MuonZSelectionTool.IsoCaloCut = 0.12