162 def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax):
163 histGroup.defineHistogram(GroupName+
'_'+xvariable+
';'+xvariable,
164 title=
'All offline combined muon '+chain+
';'+xlabel+
';Events',
165 type=
'TH1F',path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
167 histGroup.defineHistogram(GroupName+
'_L1pass,'+GroupName+
'_'+xvariable+
';EffL1MU_'+xvariable+
'_wrt_Probe',
168 title=
'L1MU Efficiency '+chain+
';'+xlabel+
';Efficiency',
169 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
172 histGroup.defineHistogram(GroupName+
'_L2SApass,'+GroupName+
'_'+xvariable+
';EffL2SA_'+xvariable+
'_wrt_Upstream',
173 title=
'L2MuonSA Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
174 cutmask=GroupName+
'_L1pass',
175 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
177 histGroup.defineHistogram(GroupName+
'_L2SApass,'+GroupName+
'_'+xvariable+
';EffL2SA_'+xvariable+
'_wrt_offlineCB',
178 title=
'L2MuonSA Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
179 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
182 histGroup.defineHistogram(GroupName+
'_L2CBpass,'+GroupName+
'_'+xvariable+
';EffL2CB_'+xvariable+
'_wrt_Upstream',
183 title=
'L2muComb Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
184 cutmask=GroupName+
'_L2SApass',
185 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
187 histGroup.defineHistogram(GroupName+
'_L2CBpass,'+GroupName+
'_'+xvariable+
';EffL2CB_'+xvariable+
'_wrt_offlineCB',
188 title=
'L2muComb Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
189 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
192 histGroup.defineHistogram(GroupName+
'_EFSApass,'+GroupName+
'_'+xvariable+
';EffEFSA_'+xvariable+
'_wrt_Upstream',
193 title=
'EFSA Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
194 cutmask=GroupName+
'_L2CBpass',
195 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
197 histGroup.defineHistogram(GroupName+
'_EFSApass,'+GroupName+
'_'+xvariable+
';EffEFSA_'+xvariable+
'_wrt_offlineCB',
198 title=
'EFSA Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
199 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
201 histGroup.defineHistogram(GroupName+
'_EFSApass,'+GroupName+
'_'+xvariable+
';EffEFSA_'+xvariable+
'_wrt_offlineCB_passedL2SA',
202 title=
'EFSA Muon Efficiency passed L2SA '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
203 cutmask=GroupName+
'_L2SApass',
204 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
207 histGroup.defineHistogram(GroupName+
'_EFCBpass,'+GroupName+
'_'+xvariable+
';EffEFCB_'+xvariable+
'_wrt_Upstream',
208 title=
'EFCB Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
209 cutmask=GroupName+
'_EFSApass',
210 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
212 histGroup.defineHistogram(GroupName+
'_EFCBpass,'+GroupName+
'_'+xvariable+
';EffEFCB_'+xvariable+
'_wrt_offlineCB',
213 title=
'EFCB Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
214 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
216 histGroup.defineHistogram(GroupName+
'_EFCBpass,'+GroupName+
'_'+xvariable+
';EffEFCB_'+xvariable+
'_wrt_offlineCB_passedL2CB',
217 title=
'EFCB Muon Efficiency passed L2CB '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
218 cutmask=GroupName+
'_L2CBpass',
219 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
222 histGroup.defineHistogram(GroupName+
'_EFSAFSpass,'+GroupName+
'_'+xvariable+
';EffEFSAFS_'+xvariable+
'_wrt_Upstream',
223 title=
'EFSAFS Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
224 cutmask=GroupName+
'_EFCBpass',
225 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
227 histGroup.defineHistogram(GroupName+
'_EFSAFSpass,'+GroupName+
'_'+xvariable+
';EffEFSAFS_'+xvariable+
'_wrt_offlineCB',
228 title=
'EFSAFS Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
229 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
231 histGroup.defineHistogram(GroupName+
'_EFSAFSpass,'+GroupName+
'_'+xvariable+
';EffEFSAFS_'+xvariable+
'_wrt_offlineCB_passedL2SA',
232 title=
'EFSAFS Muon Efficiency passed L2SA '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
233 cutmask=GroupName+
'_L2SApass',
234 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
237 histGroup.defineHistogram(GroupName+
'_EFCBFSpass,'+GroupName+
'_'+xvariable+
';EffEFCBFS_'+xvariable+
'_wrt_Upstream',
238 title=
'EFCBFS Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
239 cutmask=GroupName+
'_EFSAFSpass',
240 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
242 histGroup.defineHistogram(GroupName+
'_EFCBFSpass,'+GroupName+
'_'+xvariable+
';EffEFCBFS_'+xvariable+
'_wrt_offlineCB',
243 title=
'EFCBFS Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
244 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
246 histGroup.defineHistogram(GroupName+
'_EFCBFSpass,'+GroupName+
'_'+xvariable+
';EffEFCBFS_'+xvariable+
'_wrt_offlineCB_passedL2CB',
247 title=
'EFCBFS Muon Efficiency passed L2CB '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
248 cutmask=GroupName+
'_L2CBpass',
249 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
253 histGroup.defineHistogram(GroupName+
'_EFIsopass,'+GroupName+
'_'+xvariable+
';EffEFIso_'+xvariable+
'_wrt_Upstream',
254 title=
'EFIso Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
255 cutmask=GroupName+
'_EFCBpass',
256 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
258 histGroup.defineHistogram(GroupName+
'_EFIsopass,'+GroupName+
'_'+xvariable+
';EffEFIso_'+xvariable+
'_wrt_offlineCB',
259 title=
'EFIso Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
260 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
263 defineEachStepHistograms(
'muPt',
'p_{T} [GeV]', 50, 0.0, 100.)
264 defineEachStepHistograms(
'muEta',
'#eta', 30, -3.0, 3.0)
265 defineEachStepHistograms(
'muPhi',
'#phi', 30, -math.pi, math.pi)
266 if flags.GeoModel.Run >= LHCPeriod.Run4:
267 defineEachStepHistograms(
'averageMu',
'average pileup', 4, 100., 220.)
269 defineEachStepHistograms(
'averageMu',
'average pileup', 4, 0., 80.)
272 histGroup.defineHistogram(GroupName+
'_invmass;invmass',
273 title=
'invariant mass of tag & probe muon '+chain+
';inv mass [GeV];Events',
274 type=
'TH1F',path=
'',xbins=40,xmin=0.,xmax=200.)