ATLAS Offline Software
Functions
python.MuonTriggerCountConfig Namespace Reference

Functions

def MuonTriggerCountConfig (helper)
 

Function Documentation

◆ MuonTriggerCountConfig()

def python.MuonTriggerCountConfig.MuonTriggerCountConfig (   helper)

Definition at line 5 of file MuonTriggerCountConfig.py.

5 def MuonTriggerCountConfig(helper):
6 
7  from AthenaConfiguration.ComponentFactory import CompFactory
8 
9  GroupName = 'TriggerCount'
10 
11  from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
12  monAlg = helper.addAlgorithm(CompFactory.MuonTriggerCount,'MuonTriggerCount',
13  MuonSelectionTool = helper.result().popToolsAndMerge(MuonSelectionToolCfg(helper.flags, MuQuality=1)))
14 
15 
16  from TrigConfigSvc.TriggerConfigAccess import getHLTMonitoringAccess
17  moniAccess = getHLTMonitoringAccess(helper.flags)
18  monitoredChains = moniAccess.monitoredChains(signatures="muonMon",monLevels=["shifter","t0","val"])
19 
20  # if mon groups not found fall back to hard-coded trigger monitoring list
21  if len(monitoredChains) == 0:
22  # HLT_mu6_L1MU6 is test chain for small statistics, so it will be removed.
23  monitoredChains = ['HLT_mu6_L1MU5VF', 'HLT_mu24_ivarmedium_L1MU14FCH', 'HLT_mu50_L1MU14FCH', 'HLT_mu60_0eta105_msonly_L1MU14FCH', 'HLT_2mu14_L12MU8F', 'HLT_mu22_mu8noL1_L1MU14FCH']
24  else:
25  monitoredChains.sort()
26 
27  monAlg.MonitoredChains = monitoredChains
28 
29  monAlg.Group = GroupName
30 
31  histGroup = helper.addGroup(monAlg, GroupName, 'HLT/MuonMon/TriggerCount')
32 
33  histGroup.defineHistogram('TriggerCount;Monitoring_Chain',
34  title='Monitoring Chain Count;;Events',
35  type='TH1I',path='', xlabels=monitoredChains)
python.TriggerConfigAccess.getHLTMonitoringAccess
HLTMonitoringAccess getHLTMonitoringAccess(flags=None)
Definition: TriggerConfigAccess.py:256
python.MuonSelectorToolsConfig.MuonSelectionToolCfg
def MuonSelectionToolCfg(flags, name="MuonSelectionTool", **kwargs)
Standard configuration of the MuonSelectionTool used in reconstruction & validation jobs The snippet ...
Definition: MuonSelectorToolsConfig.py:16
python.MuonTriggerCountConfig.MuonTriggerCountConfig
def MuonTriggerCountConfig(helper)
Definition: MuonTriggerCountConfig.py:5