ATLAS Offline Software
Functions
python.EFMuonMonConfig Namespace Reference

Functions

def EFMuonMonConfig (helper)
 

Function Documentation

◆ EFMuonMonConfig()

def python.EFMuonMonConfig.EFMuonMonConfig (   helper)

Definition at line 5 of file EFMuonMonConfig.py.

5 def EFMuonMonConfig(helper):
6 
7  from AthenaConfiguration.ComponentFactory import CompFactory
8 
9  GroupName = 'EFMuon'
10 
11  from MuonSelectorTools.MuonSelectorToolsConfig import MuonSelectionToolCfg
12  monAlg = helper.addAlgorithm(CompFactory.EFMuonMon,'EFMuonMon',
13  MuonSelectionTool = helper.result().popToolsAndMerge(MuonSelectionToolCfg(helper.flags, MuQuality=1)))
14 
15 
16  from TrigConfigSvc.TriggerConfigAccess import getHLTMonitoringAccess
17  moniAccess = getHLTMonitoringAccess(helper.flags)
18  monAlg.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(monAlg.MonitoredChains) == 0:
22  # HLT_mu6_L1MU6 is test chain for small statistics, so it will be removed.
23  monAlg.MonitoredChains = ['HLT_mu6_L1MU5VF', 'HLT_mu24_ivarmedium_L1MU14FCH', 'HLT_mu50_L1MU14FCH', 'HLT_mu60_0eta105_msonly_L1MU14FCH', 'HLT_2mu14_L12MU8F', 'HLT_mu22_mu8noL1_L1MU14FCH']
24 
25  monAlg.Group = GroupName
26 
27  # configuration of etaphi2D and Ratio plots for non-specific chain
28  histGroupNonSpecificChain = helper.addGroup(monAlg, GroupName, 'HLT/MuonMon/')
29 
30  histGroupNonSpecificChain.defineHistogram('EFSAEta,EFSAPhi;EFSA_Eta_vs_Phi',
31  title='EFSA Eta vs Phi ;#eta;#phi',
32  type='TH2F', path='etaphi2D',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
33 
34  histGroupNonSpecificChain.defineHistogram('EFCBEta,EFCBPhi;EFCB_Eta_vs_Phi',
35  title='EFCB Eta vs Phi ;#eta;#phi',
36  type='TH2F', path='etaphi2D',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
37 
38  histGroupNonSpecificChain.defineHistogram('EFSAAboveCut,LB;EFSA_Over_OfflineSA_4GeV_Cut',
39  title='EFSA Over OfflineSA 4GeV Cut;LB;Ratio',
40  type='TEfficiency', path='Ratio',xbins=400,xmin=1.,xmax=801.)
41 
42  histGroupNonSpecificChain.defineHistogram('EFCBAboveCut,LB;EFCB_Over_OfflineCB_4GeV_Cut',
43  title='EFCB Over OfflineCB 4GeV Cut;LB;Ratio',
44  type='TEfficiency', path='Ratio',xbins=400,xmin=1.,xmax=801.)
45 
46 
47  # configration for specific chain
48  for chain in monAlg.MonitoredChains:
49 
50  histGroup = helper.addGroup(monAlg, GroupName+'_'+chain, 'HLT/MuonMon/EFMuon/'+chain)
51 
52  # basic EDM variables
53  # EFSA
54  histGroup.defineHistogram(chain+'_EFSA_Pt;EFSA_Pt',
55  title='EFSA Pt '+chain+';p_{T} [GeV];Events',
56  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
57 
58  histGroup.defineHistogram(chain+'_EFSA_Eta;EFSA_Eta',
59  title='EFSA Eta '+chain+';#eta;Events',
60  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
61 
62  histGroup.defineHistogram(chain+'_EFSA_Phi;EFSA_Phi',
63  title='EFSA Phi '+chain+';#phi;Events',
64  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
65 
66  histGroup.defineHistogram(chain+'_EFSA_Eta,'+chain+'_EFSA_Phi;EFSA_Eta_vs_Phi',
67  title='EFSA Eta vs Phi '+chain+';#eta;#phi',
68  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
69 
70 
71  # EFCB
72  histGroup.defineHistogram(chain+'_EFCB_Pt;EFCB_Pt',
73  title='EFCB Pt '+chain+';p_{T} [GeV];Events',
74  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
75 
76  histGroup.defineHistogram(chain+'_EFCB_Eta;EFCB_Eta',
77  title='EFCB Eta '+chain+';#eta;Events',
78  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
79 
80  histGroup.defineHistogram(chain+'_EFCB_Phi;EFCB_Phi',
81  title='EFCB Phi '+chain+';#phi;Events',
82  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
83 
84  histGroup.defineHistogram(chain+'_EFCB_Eta,'+chain+'_EFCB_Phi;EFCB_Eta_vs_Phi',
85  title='EFCB Eta vs Phi '+chain+';#eta;#phi',
86  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
87 
88  # EFIso
89  histGroup.defineHistogram(chain+'_PtCone03;EFIso_PtCone03',
90  title='EFIso sum Pt in 0.3 cone '+chain+';Sum p_{T} [GeV];Events',
91  type='TH1F', path='',xbins=50, xmin=0., xmax=25.)
92 
93  histGroup.defineHistogram(chain+'_PtCone03overMuonPt;EFIso_PtCone03overMuonPt',
94  title='EFIso sum Pt in 0.3 cone / muon Pt '+chain+';Sum p_{T} in 0.3 cone / muon p_{T};Events',
95  type='TH1F', path='',xbins=100,xmin=0.,xmax=0.5)
96 
97 
98  # OfflineSA
99  histGroup.defineHistogram(chain+'_OfflineSA_Pt;OfflineSA_Pt',
100  title='OfflineSA Pt '+chain+';p_{T} [GeV];Events',
101  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
102 
103  histGroup.defineHistogram(chain+'_OfflineSA_Eta;OfflineSA_Eta',
104  title='OfflineSA Eta '+chain+';#eta;Events',
105  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
106 
107  histGroup.defineHistogram(chain+'_OfflineSA_Phi;OfflineSA_Phi',
108  title='OfflineSA Phi '+chain+';#phi;Events',
109  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
110 
111  histGroup.defineHistogram(chain+'_OfflineSA_Eta,'+chain+'_OfflineSA_Phi;OfflineSA_Eta_vs_Phi',
112  title='OfflineSA Eta vs Phi '+chain+';#eta;#phi',
113  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
114 
115 
116  # OfflineCB
117  histGroup.defineHistogram(chain+'_OfflineCB_Pt;OfflineCB_Pt',
118  title='OfflineCB Pt '+chain+';p_{T} [GeV];Events',
119  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
120 
121  histGroup.defineHistogram(chain+'_OfflineCB_Eta;OfflineCB_Eta',
122  title='OfflineCB Eta '+chain+';#eta;Events',
123  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
124 
125  histGroup.defineHistogram(chain+'_OfflineCB_Phi;OfflineCB_Phi',
126  title='OfflineCB Phi '+chain+';#phi;Events',
127  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
128 
129  histGroup.defineHistogram(chain+'_OfflineCB_Eta,'+chain+'_OfflineCB_Phi;OfflineCB_Eta_vs_Phi',
130  title='OfflineCB Eta vs Phi '+chain+';#eta;#phi',
131  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
132 
133 
134 
135  # correlation histograms
136  # EFSA vs. OfflineSA muons
137  histGroup.defineHistogram(chain+'_OfflineSA_Pt,'+chain+'_MatchedEFSA_Pt;EFSA_OfflineSA_PtCor',
138  title='PtCor EFSA OfflineSA '+chain+';OfflineSA p_{T} [GeV];EFSA p_{T} [GeV]',
139  cutmask=chain+'_matchedEFSA',
140  type='TH2F', path='',xbins=210,xmin=-105.,xmax=105., ybins=210,ymin=-105.,ymax=105.)
141 
142  histGroup.defineHistogram(chain+'_OfflineSA_Phi,'+chain+'_MatchedEFSA_Phi;EFSA_OfflineSA_PhiCor',
143  title='PhiCor EFSA OfflineSA '+chain+';OfflineSA #phi;EFSA #phi',
144  cutmask=chain+'_matchedEFSA',
145  type='TH2F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi(), ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
146 
147  histGroup.defineHistogram(chain+'_OfflineSA_Eta,'+chain+'_MatchedEFSA_Eta;EFSA_OfflineSA_EtaCor',
148  title='EtaCor EFSA OfflineSA '+chain+';OfflineSA #eta;EFSA #eta',
149  cutmask=chain+'_matchedEFSA',
150  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=108,ymin=-2.7,ymax=2.7)
151 
152  histGroup.defineHistogram(chain+'_SAdPt;EFSA_OfflineSA_dPt',
153  title='dPt EFSA OfflineSA '+chain+';dPt [GeV];Events',
154  cutmask=chain+'_matchedEFSA',
155  type='TH1F', path='',xbins=100,xmin=-10.,xmax=10.)
156 
157  histGroup.defineHistogram(chain+'_SAdEta;EFSA_OfflineSA_dEta',
158  title='dEta EFSA OfflineSA '+chain+';dEta;Events',
159  cutmask=chain+'_matchedEFSA',
160  type='TH1F', path='',xbins=200,xmin=-5.,xmax=5.)
161 
162  histGroup.defineHistogram(chain+'_SAdPhi;EFSA_OfflineSA_dPhi',
163  title='dPhi EFSA OfflineSA '+chain+';dPhi;Events',
164  cutmask=chain+'_matchedEFSA',
165  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
166 
167  histGroup.defineHistogram(chain+'_SAdR;EFSA_OfflineSA_dR',
168  title='dR EFSA OfflineSA '+chain+';dR;Events',
169  cutmask=chain+'_matchedEFSA',
170  type='TH1F', path='',xbins=110,xmin=0.,xmax=11.)
171 
172  histGroup.defineHistogram(chain+'_OfflineSA_Pt;OfflineSA_Pt_AwareEFSA',
173  title='OfflineSA Pt AwareEFSA '+chain+';OfflineSA p_{T} [GeV];Events',
174  cutmask=chain+'_matchedEFSA',
175  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
176 
177  histGroup.defineHistogram(chain+'_OfflineSA_Phi;OfflineSA_Phi_AwareEFSA',
178  title='OfflineSA Phi AwareEFSA '+chain+';OfflineSA #phi;Events',
179  cutmask=chain+'_matchedEFSA',
180  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
181 
182  histGroup.defineHistogram(chain+'_OfflineSA_Eta;OfflineSA_Eta_AwareEFSA',
183  title='OfflineSA Eta AwareEFSA '+chain+';OfflineSA #eta;Events',
184  cutmask=chain+'_matchedEFSA',
185  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
186 
187 
188  # OfflineSA (matched to EFSA) vs. OfflineSA (matched to L2SA)
189  histGroup.defineHistogram(chain+'_OfflineSA_Pt,'+chain+'_OfflineSAmatchedL2SA_Pt;OfflineSA_matchedEFSA_matchedL2SA_PtCor',
190  title='PtCor OfflineSA (matched to EFSA) vs. OfflineSA (matched to L2SA) '+chain+';OfflineSA matched to EFSA p_{T} [GeV];OfflineSA matched to L2SA p_{T} [GeV]',
191  cutmask=chain+'_matchedL2SA',
192  type='TH2F', path='',xbins=210,xmin=-105.,xmax=105., ybins=210,ymin=-105.,ymax=105.)
193 
194  histGroup.defineHistogram(chain+'_OfflineSA_Phi,'+chain+'_OfflineSAmatchedL2SA_Phi;OfflineSA_matchedEFSA_matchedL2SA_PhiCor',
195  title='PhiCor OfflineSA (matched to EFSA) vs. OfflineSA (matched to L2SA) '+chain+';OfflineSA matched to EFSA #phi;OfflineSA matched to L2SA #phi',
196  cutmask=chain+'_matchedL2SA',
197  type='TH2F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi(), ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
198 
199  histGroup.defineHistogram(chain+'_OfflineSA_Eta,'+chain+'_OfflineSAmatchedL2SA_Eta;OfflineSA_matchedEFSA_matchedL2SA_EtaCor',
200  title='EtaCor OfflineSA (matched to EFSA) vs. OfflineSA (matched to L2SA) '+chain+';OfflineSA matched to EFSA #eta;OfflineSA matched to L2SA #eta',
201  cutmask=chain+'_matchedL2SA',
202  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=108,ymin=-2.7,ymax=2.7)
203 
204 
205  # EFCB vs. OfflineCB muons
206  histGroup.defineHistogram(chain+'_OfflineCB_Pt,'+chain+'_MatchedEFCB_Pt;EFCB_OfflineCB_PtCor',
207  title='PtCor EFCB OfflineCB '+chain+';OfflineCB p_{T} [GeV];EFCB p_{T} [GeV];',
208  cutmask=chain+'_matchedEFCB',
209  type='TH2F', path='',xbins=210,xmin=-105.,xmax=105., ybins=210,ymin=-105.,ymax=105.)
210 
211  histGroup.defineHistogram(chain+'_OfflineCB_Phi,'+chain+'_MatchedEFCB_Phi;EFCB_OfflineCB_PhiCor',
212  title='PhiCor EFCB OfflineCB '+chain+';OfflineCB #phi;EFCB #phi;',
213  cutmask=chain+'_matchedEFCB',
214  type='TH2F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi(), ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
215 
216  histGroup.defineHistogram(chain+'_OfflineCB_Eta,'+chain+'_MatchedEFCB_Eta;EFCB_OfflineCB_EtaCor',
217  title='EtaCor EFCB OfflineCB '+chain+';OfflineCB #eta;EFCB #eta;',
218  cutmask=chain+'_matchedEFCB',
219  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=108,ymin=-2.7,ymax=2.7)
220 
221  histGroup.defineHistogram(chain+'_CBdPt;EFCB_OfflineCB_dPt',
222  title='dPt EFCB OfflineCB '+chain+';dPt [GeV];Events',
223  cutmask=chain+'_matchedEFCB',
224  type='TH1F', path='',xbins=100,xmin=-10.,xmax=10.)
225 
226  histGroup.defineHistogram(chain+'_CBdEta;EFCB_OfflineCB_dEta',
227  title='dEta EFCB OfflineCB '+chain+';dEta;Events',
228  cutmask=chain+'_matchedEFCB',
229  type='TH1F', path='',xbins=200,xmin=-5.,xmax=5.)
230 
231  histGroup.defineHistogram(chain+'_CBdPhi;EFCB_OfflineCB_dPhi',
232  title='dPhi EFCB OfflineCB '+chain+';dPhi;Events',
233  cutmask=chain+'_matchedEFCB',
234  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
235 
236  histGroup.defineHistogram(chain+'_CBdR;EFCB_OfflineCB_dR',
237  title='dR EFCB OfflineCB '+chain+';dR;Events',
238  cutmask=chain+'_matchedEFCB',
239  type='TH1F', path='',xbins=110,xmin=0.,xmax=11.)
240 
241  histGroup.defineHistogram(chain+'_OfflineCB_Pt;OfflineCB_Pt_AwareEFCB',
242  title='OfflineCB Pt AwareEFCB '+chain+';OfflineCB p_{T} [GeV];Events',
243  cutmask=chain+'_matchedEFCB',
244  type='TH1F', path='',xbins=210,xmin=-105.,xmax=105.)
245 
246  histGroup.defineHistogram(chain+'_OfflineCB_Phi;OfflineCB_Phi_AwareEFCB',
247  title='OfflineCB Phi AwareEFCB '+chain+';OfflineCB #phi;Events',
248  cutmask=chain+'_matchedEFCB',
249  type='TH1F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi())
250 
251  histGroup.defineHistogram(chain+'_OfflineCB_Eta;OfflineCB_Eta_AwareEFCB',
252  title='OfflineCB Eta AwareEFCB '+chain+';OfflineCB #eta;Events',
253  cutmask=chain+'_matchedEFCB',
254  type='TH1F', path='',xbins=108,xmin=-2.7,xmax=2.7)
255 
256 
257  # OfflineCB (matched to EFCB) vs. OfflineCB (matched to L2CB)
258  histGroup.defineHistogram(chain+'_OfflineCB_Pt,'+chain+'_OfflineCBmatchedL2CB_Pt;OfflineCB_matchedEFCB_matchedL2CB_PtCor',
259  title='PtCor OfflineCB (matched to EFCB) vs. OfflineCB (matched to L2CB) '+chain+';OfflineCB matched to EFCB p_{T} [GeV];OfflineCB matched to L2CB p_{T} [GeV]',
260  cutmask=chain+'_matchedL2CB',
261  type='TH2F', path='',xbins=210,xmin=-105.,xmax=105., ybins=210,ymin=-105.,ymax=105.)
262 
263  histGroup.defineHistogram(chain+'_OfflineCB_Phi,'+chain+'_OfflineCBmatchedL2CB_Phi;OfflineCB_matchedEFCB_matchedL2CB_PhiCor',
264  title='PhiCor OfflineCB (matched to EFCB) vs. OfflineCB (matched to L2CB) '+chain+';OfflineCB matched to EFCB #phi;OfflineCB matched to L2CB #phi',
265  cutmask=chain+'_matchedL2CB',
266  type='TH2F', path='',xbins=96,xmin=-ROOT.TMath.Pi(),xmax=ROOT.TMath.Pi(), ybins=96,ymin=-ROOT.TMath.Pi(),ymax=ROOT.TMath.Pi())
267 
268  histGroup.defineHistogram(chain+'_OfflineCB_Eta,'+chain+'_OfflineCBmatchedL2CB_Eta;OfflineCB_matchedEFCB_matchedL2CB_EtaCor',
269  title='EtaCor OfflineCB (matched to EFCB) vs. OfflineCB (matched to L2CB) '+chain+';OfflineCB matched to EFCB #eta;OfflineCB matched to L2CB #eta',
270  cutmask=chain+'_matchedL2CB',
271  type='TH2F', path='',xbins=108,xmin=-2.7,xmax=2.7, ybins=108,ymin=-2.7,ymax=2.7)
272 
273 
274  # EFIso vs. OfflineIso muons
275  histGroup.defineHistogram(chain+'_MatchedEFPIsotCone03,'+chain+'_OfflineIsoPtCone03;EFIso_OfflineIso_CorPtCone03',
276  title='sum Pt in 0.3 cone correlation EFIso vs. OfflineIso '+chain+';EFIso Sum p_{T} [GeV];OfflineIso Sum p_{T} [GeV];Events',
277  type='TH2F', path='',xbins=50, xmin=0., xmax=25., ybins=50, ymin=0., ymax=25.)
278 
279  histGroup.defineHistogram(chain+'_MatchedEFIsoPtCone03overMuonPt,'+chain+'_OfflineIsoPtCone03overMuonPt;EFIso_OfflineIso_CorPtCone03overMuonPt',
280  title='sum Pt in 0.3 cone / muon Pt correlation EFIso vs. OfflineIso '+chain+';EFIso Sum p_{T} in 0.3 cone / muon p_{T};OfflineIso Sum p_{T} in 0.3 cone / muon p_{T};Events',
281  type='TH2F', path='',xbins=100,xmin=0.,xmax=0.5, ybins=100,ymin=0.,ymax=0.5)
282 
283 
284  return
python.TriggerConfigAccess.getHLTMonitoringAccess
HLTMonitoringAccess getHLTMonitoringAccess(flags=None)
Definition: TriggerConfigAccess.py:256
python.EFMuonMonConfig.EFMuonMonConfig
def EFMuonMonConfig(helper)
Definition: EFMuonMonConfig.py:5
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