Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fc992c4
generalize eta labels better for plot_decorr_params
cippy Oct 17, 2025
d330024
plotting and testing
cippy Nov 13, 2025
09c630f
Protection on the fakes estimation: fake yield is set to zero for the…
rubenforti Nov 10, 2025
8c5d50d
Protection on the fakes estimation: fake yield is set to zero for the…
rubenforti Nov 10, 2025
e5ed649
small changes for plotting
rubenforti Dec 5, 2025
6085af8
consider the polVar as noi - workaround to better interface with the …
rubenforti Dec 5, 2025
5f8ce1f
fake prediction for uT<0 is now evaluated by scaling the ABCD predict…
rubenforti Dec 5, 2025
c9354b7
label change for the utAngleSign axis
rubenforti Dec 5, 2025
e433ca3
small fix
cippy Dec 8, 2025
4bc98b5
Merge branch 'main' of github.com:WMass/WRemnants into main_mergeUpst…
cippy Dec 8, 2025
c79eca9
moved reference commit of rabbit
rubenforti Dec 9, 2025
4c95789
remove Zmumu OOA for theory agnostic with pol var
cippy Dec 9, 2025
488f6cc
fakes in uT<0 are evaluated by scaling the ABCD prediction on uT>0 wi…
rubenforti Dec 22, 2025
9293126
decorrelate FakeParam syst in uT bins
rubenforti Dec 22, 2025
3f96a4c
new syst for eta nonclosure in ut<0 bin
rubenforti Dec 22, 2025
fec8ace
updates for veto (no default change)
cippy Dec 24, 2025
e7c51cc
merge from rubenforti/signUtAnalysis
cippy Dec 24, 2025
65201f6
updates
cippy Dec 25, 2025
f1a26ce
updates for fakes vs uT
cippy Dec 26, 2025
ea0dfe2
updates
cippy Dec 26, 2025
2fc7884
set noi=False for polynomial variations
cippy Dec 28, 2025
811a7b0
fixes and updates to fit uT^mu
cippy Dec 28, 2025
ba08ba7
foo
cippy Dec 28, 2025
4d1e7b5
fixes
cippy Dec 31, 2025
ea60c34
fixes
cippy Jan 6, 2026
60299aa
Merge branch 'main' of github.com:WMass/WRemnants into main_mergeUpst…
cippy Jan 6, 2026
1cd1a13
set default W width variation to original 0.6 MeV
cippy Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
847 changes: 502 additions & 345 deletions scripts/analysisTools/tests/testFakesVsMt.py

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion scripts/analysisTools/tests/testPlots1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def plotDistribution1D(
ratioPadYaxisTitle="Data/pred::0.9,1.1",
scaleToUnitArea=False,
noRatioPanel=False,
scaleProcs={},
):

createPlotDirAndCopyPhp(outfolder_dataMC)
Expand All @@ -71,13 +72,17 @@ def plotDistribution1D(
hmc[d].SetLineColor(ROOT.kBlack)
hmc[d].SetMarkerSize(0)
hmc[d].SetMarkerStyle(0)
if d in scaleProcs.keys():
hmc[d].Scale(scaleProcs[d])
stackIntegral += hmc[d].Integral()

if scaleToUnitArea:
hdata.Scale(1.0 / hdata.Integral())

stack_1D = ROOT.THStack("stack_1D", "signal and backgrounds")
hmcSortedKeys = sorted(hmc.keys(), key=lambda x: hmc[x].Integral())
hmcSortedKeys = sorted(
[x for x in hmc.keys() if x in datasets], key=lambda x: hmc[x].Integral()
)
for i in hmcSortedKeys:
if scaleToUnitArea:
hmc[i].Scale(1.0 / stackIntegral)
Expand Down
26 changes: 21 additions & 5 deletions scripts/analysisTools/w_mass_13TeV/makeEfficiencyCorrection.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"--corrvar",
type=str,
default="run",
choices=["run", "phi"],
choices=["run", "phi", "utAngleSign"],
help="Variable to be used for the correction",
)
parser.add_argument(
Expand Down Expand Up @@ -162,6 +162,11 @@
f"{round(corrEdges[i], 2)} < #phi^{{#mu}} < {round(corrEdges[i+1], 2)}"
for i in range(nCorrBins)
]
elif args.corrvar == "utAngleSign":
legEntries = [
"#it{u}_{T}^{#mu} < 0",
"#it{u}_{T}^{#mu} > 0",
]
else:
legEntries = [f"{corrvar} bin {i}" for i in range(nCorrBins)]

Expand All @@ -175,7 +180,7 @@
sign = "minus" if args.charge < 0 else "plus"
chargePostfix = f"_{sign}"

# create a TH2 and convrt into boost again to save it
# create a TH2 and convert into boost again to save it
nx = heffiroot["Data"][0].GetNbinsX()
xmin = heffiroot["Data"][0].GetXaxis().GetBinLowEdge(1)
xmax = heffiroot["Data"][0].GetXaxis().GetBinLowEdge(1 + nx)
Expand Down Expand Up @@ -209,9 +214,20 @@
f"{corrvar}-eta ID = {i} {j}: {round(corr,3)} +/- {round(corr_unc,3)}"
)

title_var = "Run" if corrvar == "run" else "#phi" if corrvar == "phi" else "CorrVar"

effRange = "0.85,1.05" if corrvar == "run" else "0.80,1.1"
titles = {
"run": "Run",
"phi": "#phi^{#mu}",
"utAngleSign": "sign(#it{u}_{T}^{#mu})",
}
title_var = "CorrVar"
if corrvar in titles.keys():
title_var = titles[corrvar]

effrange = "0.80,1.1"
if corrvar == "run":
effRange = "0.85,1.05"
elif corrvar == "utAngleSign":
effRange = "0.8,1.2"

for d in datasets:
drawNTH1(
Expand Down
Loading