ATLAS Offline Software
Loading...
Searching...
No Matches
EfficienciesConfig.py
Go to the documentation of this file.
2# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3#
4# create all the histograms for the Resolutions plots - this will get called
5# once for each tool for configured chain - we can set the HistPath upstream
6# master tool
7
8
9from TrigIDR4Monitoring.HistUtils import defineHisto
10
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 # from TrigIDR4Monitoring.HistUtils import vnbins_short
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 # bring in the proper log bins later on ...
38 defineHisto( monTool, "eff_vs_pt", path=mypath, type="TEfficiency", title="eff_vs_pt", xbins=ptbins )
39
40 # what do these even mean ??? Just because the chosen binning is rubbish ???
41 # defineHisto( monTool, "eff_vs_logPt", path=mypath, type="TEfficiency", title="eff_vs_logPt", xbins=ptbins )
42 # defineHisto( monTool, "eff_vs_lowPt", path=mypath, type="TEfficiency", title="eff_vs_lowPt", xbins=ptbins )
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 # should bring in a standard pi value here ...
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 # defineHisto( monTool, "eff_vs_truthMu", path=mypath, type="TEfficiancy", title="eff_vs_truthMu", xbins=0, xmin=0, xmax=0 )
57
58 # defineHisto( monTool, "eff_vs_eta_vs_pt", path=mypath, type="TEfficiency", title="eff_vs_eta_vs_pt", xbins=0, xmin=0, xmax=0 )
59 # defineHisto( monTool, "eff_vs_eta_vs_phi", path=mypath, type="TEfficiency", title="eff_vs_eta_vs_phi", xbins=0, xmin=0, xmax=0 )
60 # defineHisto( monTool, "eff_vs_z0_vs_d0", path=mypath, type="TEfficiency", title="eff_vs_z0_vs_d0", xbins=0, xmin=0, xmax=0 )
61 # defineHisto( monTool, "eff_vs_z0sin_vs_d0", path=mypath, type="TEfficiency", title="eff_vs_z0sin_vs_d0", xbins=0, xmin=0, xmax=0 )
62
63 return
Efficiencies_builder(monTool, mypath, chain, cs)