5 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from MuonSelectorTools.MuonSelectorToolsConfig
import MuonSelectionToolCfg
10 monAlg = helper.addAlgorithm(CompFactory.TrigMuonTruthMon,
'TrigMuonTruthMon',
11 MuonSelectionTool = helper.result().popToolsAndMerge(
MuonSelectionToolCfg(helper.flags, MuQuality=1)))
14 from TrigConfigSvc.TriggerConfigAccess
import getHLTMonitoringAccess
16 monAlg.MonitoredChains = moniAccess.monitoredChains(signatures=
"muonMon",monLevels=[
"shifter",
"t0",
"val"])
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']
22 monAlg.Group = GroupName
24 for chain
in monAlg.MonitoredChains:
25 histGroupChain = helper.addGroup(monAlg, GroupName +
'_' + chain,
'HLT/MuonMon/' + GroupName +
'/' + chain)
28 histGroupChain.defineHistogram(chain+
'_truthEta',
29 title =
'Truth eta ' + chain,
30 type =
'TH1F', path=
'', xbins=50, xmin=-2.7, xmax=2.7)
32 histGroupChain.defineHistogram(chain+
'_truthPhi',
33 title =
'Truth phi ' + chain,
34 type =
'TH1F', path=
'', xbins=50, xmin=-3.14, xmax=3.14)
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)
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)
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)
48 histGroupChain.defineHistogram(chain+
'_truthIntPerBC',
49 title =
'Average interactions per bunch crossing ' + chain,
50 type =
'TH1F', path=
'', xbins=60, xmin=30, xmax=90)
54 histGroupChain.defineHistogram(chain+
'_MatchedEFCBtruthEta',
55 title =
'Matched truth eta ' + chain,
56 type =
'TH1F', path=
'', xbins=50, xmin=-2.7, xmax=2.7)
58 histGroupChain.defineHistogram(chain+
'_MatchedEFCBtruthPhi',
59 title =
'Matched truth phi ' + chain,
60 type =
'TH1F', path=
'', xbins=50, xmin=-3.14, xmax=3.14)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)