ATLAS Offline Software
Loading...
Searching...
No Matches
MuonTriggerCountConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
4
5def MuonTriggerCountConfig(helper):
6
7 from AthenaConfiguration.ComponentFactory import CompFactory
8
9 GroupName = 'TriggerCount'
10
11 from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
12 from .MuonMatchingToolConfig import MuonMatchingToolConfig
13 monAlg = helper.addAlgorithm(CompFactory.MuonTriggerCount,'MuonTriggerCount',
14 MuonSelectionTool = helper.result().popToolsAndMerge(MuonSelectionToolCfg(helper.flags, MuQuality=1)),
15 MuonMatchingTool = helper.result().popToolsAndMerge(MuonMatchingToolConfig(helper.flags)))
16
17
18 from TrigConfigSvc.TriggerConfigAccess import getHLTMonitoringAccess
19 moniAccess = getHLTMonitoringAccess(helper.flags)
20 monitoredChains = moniAccess.monitoredChains(signatures="muonMon",monLevels=["shifter","t0","val"])
21
22 # if mon groups not found fall back to hard-coded trigger monitoring list
23 if len(monitoredChains) == 0:
24 # HLT_mu6_L1MU6 is test chain for small statistics, so it will be removed.
25 monitoredChains = ['HLT_mu6_L1MU5VF', 'HLT_mu24_ivarmedium_L1MU14FCH', 'HLT_mu50_L1MU14FCH', 'HLT_mu60_0eta105_msonly_L1MU14FCH', 'HLT_2mu14_L12MU8F', 'HLT_mu22_mu8noL1_L1MU14FCH']
26 else:
27 monitoredChains.sort()
28
29 monAlg.MonitoredChains = monitoredChains
30
31 monAlg.Group = GroupName
32
33 histGroup = helper.addGroup(monAlg, GroupName, 'HLT/MuonMon/TriggerCount')
34
35 histGroup.defineHistogram('TriggerCount;Monitoring_Chain',
36 title='Monitoring Chain Count;;Events',
37 type='TH1I',path='', xlabels=monitoredChains)