161 def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax):
162 histGroup.defineHistogram(GroupName+
'_'+xvariable+
';'+xvariable,
163 title=
'All offline combined muon '+chain+
';'+xlabel+
';Events',
164 type=
'TH1F',path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
166 histGroup.defineHistogram(GroupName+
'_L1pass,'+GroupName+
'_'+xvariable+
';EffL1MU_'+xvariable+
'_wrt_Probe',
167 title=
'L1MU Efficiency '+chain+
';'+xlabel+
';Efficiency',
168 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
171 histGroup.defineHistogram(GroupName+
'_L2SApass,'+GroupName+
'_'+xvariable+
';EffL2SA_'+xvariable+
'_wrt_Upstream',
172 title=
'L2MuonSA Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
173 cutmask=GroupName+
'_L1pass',
174 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
176 histGroup.defineHistogram(GroupName+
'_L2SApass,'+GroupName+
'_'+xvariable+
';EffL2SA_'+xvariable+
'_wrt_offlineCB',
177 title=
'L2MuonSA Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
178 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
181 histGroup.defineHistogram(GroupName+
'_L2CBpass,'+GroupName+
'_'+xvariable+
';EffL2CB_'+xvariable+
'_wrt_Upstream',
182 title=
'L2muComb Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
183 cutmask=GroupName+
'_L2SApass',
184 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
186 histGroup.defineHistogram(GroupName+
'_L2CBpass,'+GroupName+
'_'+xvariable+
';EffL2CB_'+xvariable+
'_wrt_offlineCB',
187 title=
'L2muComb Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
188 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
191 histGroup.defineHistogram(GroupName+
'_EFSApass,'+GroupName+
'_'+xvariable+
';EffEFSA_'+xvariable+
'_wrt_Upstream',
192 title=
'EFSA Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
193 cutmask=GroupName+
'_L2CBpass',
194 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
196 histGroup.defineHistogram(GroupName+
'_EFSApass,'+GroupName+
'_'+xvariable+
';EffEFSA_'+xvariable+
'_wrt_offlineCB',
197 title=
'EFSA Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
198 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
200 histGroup.defineHistogram(GroupName+
'_EFSApass,'+GroupName+
'_'+xvariable+
';EffEFSA_'+xvariable+
'_wrt_offlineCB_passedL2SA',
201 title=
'EFSA Muon Efficiency passed L2SA '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
202 cutmask=GroupName+
'_L2SApass',
203 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
206 histGroup.defineHistogram(GroupName+
'_EFCBpass,'+GroupName+
'_'+xvariable+
';EffEFCB_'+xvariable+
'_wrt_Upstream',
207 title=
'EFCB Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
208 cutmask=GroupName+
'_EFSApass',
209 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
211 histGroup.defineHistogram(GroupName+
'_EFCBpass,'+GroupName+
'_'+xvariable+
';EffEFCB_'+xvariable+
'_wrt_offlineCB',
212 title=
'EFCB Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
213 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
215 histGroup.defineHistogram(GroupName+
'_EFCBpass,'+GroupName+
'_'+xvariable+
';EffEFCB_'+xvariable+
'_wrt_offlineCB_passedL2CB',
216 title=
'EFCB Muon Efficiency passed L2CB '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
217 cutmask=GroupName+
'_L2CBpass',
218 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
221 histGroup.defineHistogram(GroupName+
'_EFSAFSpass,'+GroupName+
'_'+xvariable+
';EffEFSAFS_'+xvariable+
'_wrt_Upstream',
222 title=
'EFSAFS Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
223 cutmask=GroupName+
'_EFCBpass',
224 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
226 histGroup.defineHistogram(GroupName+
'_EFSAFSpass,'+GroupName+
'_'+xvariable+
';EffEFSAFS_'+xvariable+
'_wrt_offlineCB',
227 title=
'EFSAFS Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
228 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
230 histGroup.defineHistogram(GroupName+
'_EFSAFSpass,'+GroupName+
'_'+xvariable+
';EffEFSAFS_'+xvariable+
'_wrt_offlineCB_passedL2SA',
231 title=
'EFSAFS Muon Efficiency passed L2SA '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
232 cutmask=GroupName+
'_L2SApass',
233 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
236 histGroup.defineHistogram(GroupName+
'_EFCBFSpass,'+GroupName+
'_'+xvariable+
';EffEFCBFS_'+xvariable+
'_wrt_Upstream',
237 title=
'EFCBFS Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
238 cutmask=GroupName+
'_EFSAFSpass',
239 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
241 histGroup.defineHistogram(GroupName+
'_EFCBFSpass,'+GroupName+
'_'+xvariable+
';EffEFCBFS_'+xvariable+
'_wrt_offlineCB',
242 title=
'EFCBFS Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
243 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
245 histGroup.defineHistogram(GroupName+
'_EFCBFSpass,'+GroupName+
'_'+xvariable+
';EffEFCBFS_'+xvariable+
'_wrt_offlineCB_passedL2CB',
246 title=
'EFCBFS Muon Efficiency passed L2CB '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
247 cutmask=GroupName+
'_L2CBpass',
248 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
252 histGroup.defineHistogram(GroupName+
'_EFIsopass,'+GroupName+
'_'+xvariable+
';EffEFIso_'+xvariable+
'_wrt_Upstream',
253 title=
'EFIso Muon Efficiency '+chain+
' wrt Upstream;'+xlabel+
';Efficiency',
254 cutmask=GroupName+
'_EFCBpass',
255 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
257 histGroup.defineHistogram(GroupName+
'_EFIsopass,'+GroupName+
'_'+xvariable+
';EffEFIso_'+xvariable+
'_wrt_offlineCB',
258 title=
'EFIso Muon Efficiency '+chain+
' wrt offlineCB;'+xlabel+
';Efficiency',
259 type=
'TEfficiency', path=
'',xbins=xbins,xmin=xmin,xmax=xmax)
262 defineEachStepHistograms(
'muPt',
'p_{T} [GeV]', 50, 0.0, 100.)
263 defineEachStepHistograms(
'muEta',
'#eta', 30, -3.0, 3.0)
264 defineEachStepHistograms(
'muPhi',
'#phi', 30, -math.pi, math.pi)
265 defineEachStepHistograms(
'averageMu',
'average pileup', 4, 0., 80.)
268 histGroup.defineHistogram(GroupName+
'_invmass;invmass',
269 title=
'invariant mass of tag & probe muon '+chain+
';inv mass [GeV];Events',
270 type=
'TH1F',path=
'',xbins=40,xmin=0.,xmax=200.)