11def Efficiencies_builder( monTool, mypath, chain, cs ) :
12
13 mypath = mypath + "/Efficiencies"
14
15 from TrigIDR4Monitoring.HistUtils import ptbins_mb
16 from TrigIDR4Monitoring.HistUtils import ptbins_default
17
18 if "mb" in chain : ptbins = ptbins_mb
19 else: ptbins = ptbins_default
20
21 from TrigIDR4Monitoring.HistUtils import vnbins_full
22
23
24 vnbins = vnbins_full
25
26 from TrigIDR4Monitoring.HistUtils import d0bins_default
27 from TrigIDR4Monitoring.HistUtils import d0bins_lrt
28
29 if "LRT" in chain : d0bins = d0bins_lrt
30 else: d0bins = d0bins_default
31
32
33 defineHisto( monTool, "eff_vs_inclusive", path=mypath, type="TEfficiency", title="eff_vs_inclusive", xbins=1, xmin=0, xmax=1 )
34
35 defineHisto( monTool, "eff_vs_ntracks", path=mypath, type="TEfficiency", title="eff_vs_ntracks", xbins=vnbins )
36
37
38 defineHisto( monTool, "eff_vs_pt", path=mypath, type="TEfficiency", title="eff_vs_pt", xbins=ptbins )
39
40
41
42
43
44 defineHisto( monTool, "eff_vs_Et", path=mypath, type="TEfficiency", title="eff_vs_Et", xbins=ptbins )
45 defineHisto( monTool, "eff_vs_EtovPt", path=mypath, type="TEfficiency", title="eff_vs_EtovPt", xbins=100, xmin=0, xmax=10 )
46
47 defineHisto( monTool, "eff_vs_eta", path=mypath, type="TEfficiency", title="eff_vs_eta", xbins=100, xmin=-4, xmax=4 )
48
49
50 defineHisto( monTool, "eff_vs_phi", path=mypath, type="TEfficiency", title="eff_vs_phi", xbins=50, xmin=-3.1416, xmax=3.1416 )
51 defineHisto( monTool, "eff_vs_d0", path=mypath, type="TEfficiency", title="eff_vs_d0", xbins=d0bins )
52 defineHisto( monTool, "eff_vs_z0", path=mypath, type="TEfficiency", title="eff_vs_z0", xbins=100, xmin=-180, xmax=180 )
53
54 defineHisto( monTool, "eff_vs_actualMu", path=mypath, type="TEfficiency", title="eff_vs_actualMu", xbins=100, xmin=0, xmax=200 )
55
56
57
58
59
60
61
62
63 return