ATLAS Offline Software
Functions
python.TrigMuonTruthMonConfig Namespace Reference

Functions

def TrigMuonTruthMonConfig (helper)
 

Function Documentation

◆ TrigMuonTruthMonConfig()

def python.TrigMuonTruthMonConfig.TrigMuonTruthMonConfig (   helper)

Definition at line 3 of file TrigMuonTruthMonConfig.py.

3 def TrigMuonTruthMonConfig(helper):
4 
5  from AthenaConfiguration.ComponentFactory import CompFactory
6 
7  GroupName = 'TruthMon'
8 
9  from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
10  monAlg = helper.addAlgorithm(CompFactory.TrigMuonTruthMon,'TrigMuonTruthMon',
11  MuonSelectionTool = helper.result().popToolsAndMerge(MuonSelectionToolCfg(helper.flags, MuQuality=1)))
12 
13 
14  from TrigConfigSvc.TriggerConfigAccess import getHLTMonitoringAccess
15  moniAccess = getHLTMonitoringAccess(helper.flags)
16  monAlg.MonitoredChains = moniAccess.monitoredChains(signatures="muonMon",monLevels=["shifter","t0","val"])
17 
18  # if mon groups not found fall back to hard-coded trigger monitoring list
19  if len(monAlg.MonitoredChains) == 0:
20  monAlg.MonitoredChains = ['HLT_mu6_L1MU5VF', 'HLT_mu24_ivarmedium_L1MU14FCH', 'HLT_mu50_L1MU14FCH', 'HLT_mu60_0eta105_msonly_L1MU14FCH', 'HLT_2mu14_L12MU8F']
21 
22  monAlg.Group = GroupName
23 
24  for chain in monAlg.MonitoredChains:
25  histGroupChain = helper.addGroup(monAlg, GroupName + '_' + chain, 'HLT/MuonMon/' + GroupName + '/' + chain)
26 
27  # Truth variables
28  histGroupChain.defineHistogram(chain+'_truthEta',
29  title = 'Truth eta ' + chain,
30  type = 'TH1F', path='', xbins=50, xmin=-2.7, xmax=2.7)
31 
32  histGroupChain.defineHistogram(chain+'_truthPhi',
33  title = 'Truth phi ' + chain,
34  type = 'TH1F', path='', xbins=50, xmin=-3.14, xmax=3.14)
35 
36  histGroupChain.defineHistogram(chain+'_truthPt',
37  title = 'Truth pt ' + chain,
38  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
39 
40  histGroupChain.defineHistogram(chain+'_truthEndcapPt',
41  title = 'Truth pt ' + chain,
42  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
43 
44  histGroupChain.defineHistogram(chain+'_truthBarrelPt',
45  title = 'Truth pt ' + chain,
46  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
47 
48  histGroupChain.defineHistogram(chain+'_truthIntPerBC',
49  title = 'Average interactions per bunch crossing ' + chain,
50  type = 'TH1F', path='', xbins=60, xmin=30, xmax=90)
51 
52 
53  # Matched EFCB to truth variables
54  histGroupChain.defineHistogram(chain+'_MatchedEFCBtruthEta',
55  title = 'Matched truth eta ' + chain,
56  type = 'TH1F', path='', xbins=50, xmin=-2.7, xmax=2.7)
57 
58  histGroupChain.defineHistogram(chain+'_MatchedEFCBtruthPhi',
59  title = 'Matched truth phi ' + chain,
60  type = 'TH1F', path='', xbins=50, xmin=-3.14, xmax=3.14)
61 
62  histGroupChain.defineHistogram(chain+'_MatchedEFCBtruthPt',
63  title = 'Matched EFCB muon truth pt ' + chain,
64  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
65 
66  histGroupChain.defineHistogram(chain+'_MatchedEFCBtruthEndcapPt',
67  title = 'Matched EFCB muon truth pt ' + chain,
68  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
69 
70  histGroupChain.defineHistogram(chain+'_MatchedEFCBtruthBarrelPt',
71  title = 'Matched EFCB muon truth pt ' + chain,
72  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
73 
74  histGroupChain.defineHistogram(chain+'_MatchedEFCBtruthIntPerBC',
75  title = 'Matched EFCB muon average interactions ber bunch crossing ' + chain,
76  type = 'TH1F', path='', xbins=60, xmin=30, xmax=90)
77 
78  # Matched L1 to truth variables
79  histGroupChain.defineHistogram(chain+'_MatchedL1truthEta',
80  title = 'Matched L1 muon truth eta ' + chain,
81  type = 'TH1F', path='', xbins=50, xmin=-2.7, xmax=2.7)
82 
83  histGroupChain.defineHistogram(chain+'_MatchedL1truthPhi',
84  title = 'Matched L1 muon truth phi ' + chain,
85  type = 'TH1F', path='', xbins=50, xmin=-3.14, xmax=3.14)
86 
87  histGroupChain.defineHistogram(chain+'_MatchedL1truthPt',
88  title = 'Matched L1 muon truth pt ' + chain,
89  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
90 
91  histGroupChain.defineHistogram(chain+'_MatchedL1truthEndcapPt',
92  title = 'Matched L1 muon truth pt ' + chain,
93  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
94 
95  histGroupChain.defineHistogram(chain+'_MatchedL1truthBarrelPt',
96  title = 'Matched L1 muon truth pt ' + chain,
97  type = 'TH1F', path='', xbins=[0.0,20.0,25.0,30.0,35.0,40.0,45.0,50.0,55.0,60.0,65.0,70.0,80.0,90.0,100.0,120.0,200.0], xmin=0.0, xmax=200.0)
98 
99  histGroupChain.defineHistogram(chain+'_MatchedL1truthIntPerBC',
100  title = 'Matched L1 muon average interactions ber bunch crossing ' + chain,
101  type = 'TH1F', path='', xbins=60, xmin=30, xmax=90)
102 
python.TriggerConfigAccess.getHLTMonitoringAccess
HLTMonitoringAccess getHLTMonitoringAccess(flags=None)
Definition: TriggerConfigAccess.py:256
python.TrigMuonTruthMonConfig.TrigMuonTruthMonConfig
def TrigMuonTruthMonConfig(helper)
Definition: TrigMuonTruthMonConfig.py:3
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