ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigMonitoring
TrigMuonMonitoring
python
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
5
def
MuonTriggerCountConfig(helper, isPhaseII=False, **kwargs):
6
7
from
AthenaConfiguration.ComponentFactory
import
CompFactory
8
9
GroupName =
'TriggerCount'
10
11
from
MuonSelectorTools.MuonSelectorToolsConfig
import
MuonLoosenedNonCalibratedSelectionToolCfg
12
from
.MuonMatchingToolConfig
import
MuonMatchingToolConfig
13
14
# Set the offline muon container
15
kwargs.setdefault(
"MuonContainerName"
,
"Muons"
)
16
17
monAlg = helper.addAlgorithm(CompFactory.MuonTriggerCount,
'MuonTriggerCount'
,
18
MuonSelectionTool = helper.result().popToolsAndMerge(MuonLoosenedNonCalibratedSelectionToolCfg(helper.flags,
19
MuQuality=1)),
20
MuonMatchingTool = helper.result().popToolsAndMerge(MuonMatchingToolConfig(helper.flags,
21
isPhaseII=isPhaseII,
22
MuonContainerName=kwargs[
"MuonContainerName"
])),
23
**kwargs)
24
25
26
from
TrigConfigSvc.TriggerConfigAccess
import
getHLTMonitoringAccess
27
moniAccess = getHLTMonitoringAccess(helper.flags)
28
monitoredChains = moniAccess.monitoredChains(signatures=
"muonMon"
,monLevels=[
"shifter"
,
"t0"
,
"val"
])
29
30
# if mon groups not found fall back to hard-coded trigger monitoring list
31
if
len(monitoredChains) == 0:
32
# HLT_mu6_L1MU6 is test chain for small statistics, so it will be removed.
33
monitoredChains = [
'HLT_mu6_L1MU5VF'
,
'HLT_mu24_ivarmedium_L1MU14FCH'
,
'HLT_mu50_L1MU14FCH'
,
'HLT_mu60_0eta105_msonly_L1MU14FCH'
,
'HLT_2mu14_L12MU8F'
,
'HLT_mu22_mu8noL1_L1MU14FCH'
]
34
else
:
35
monitoredChains.sort()
36
37
monAlg.MonitoredChains = monitoredChains
38
39
monAlg.Group = GroupName
40
41
histGroup = helper.addGroup(monAlg, GroupName,
'HLT/MuonMon/TriggerCount'
)
42
43
histGroup.defineHistogram(
'TriggerCount;Monitoring_Chain'
,
44
title=
'Monitoring Chain Count;;Events'
,
45
type=
'TH1I'
,path=
''
, xlabels=monitoredChains)
Generated on
for ATLAS Offline Software by
1.17.0