Skip to content

Commit

Permalink
update impacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Aug 29, 2023
1 parent c46de0b commit 64e1a4b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
4 changes: 4 additions & 0 deletions inference_scans/nuisance_renames.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"CMS_bbWW_hadronic_tf_dataResidual_bbFatJetParticleNetMass_par1": "TF_par1",
"CMS_bbWW_hadronic_tf_dataResidual_bbFatJetParticleNetMass_par0": "TF_par0"
}
8 changes: 8 additions & 0 deletions inference_scans/nuisance_renames.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def rename_nuisance(nuisance: str):
if nuisance.startswith("CMS_bbWW_hadronic_"):
nuisance = nuisance.split("CMS_bbWW_hadronic_")[1]

if nuisance.startswith("tf_dataResidual_bbFatJetParticleNetMass_"):
return "TF_" + nuisance.split("tf_dataResidual_bbFatJetParticleNetMass_")[1]

return nuisance
8 changes: 5 additions & 3 deletions inference_scans/run_impacts.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

law run PlotPullsAndImpacts \
--version "$VERSION" \
--multi-datacards "$Cbbww4q" \
--datacard-names "bbVV" \
--datacards "$Cbbww4q" \
--file-types "pdf,png" \
--pois r \
--PullsAndImpacts-workflow "htcondor" \
--PullsAndImpacts-tasks-per-job 10 \
--parameters-per-page 40 \
--order-by-impact \
--labels "nuisance_renames.py" \
--skip-parameters "*dataResidual_Bin*" \
--left-margin 500 \
--campaign run2 \
--page 0 \
--pull-range 3 \
--unblinded $UNBLINDED \
--remove-output 0,a,y
# --use-snapshot True \ # for after unblinding
# --use-snapshot True \ # for (fit to data) after unblinding
# --Snapshot-workflow "local" \
2 changes: 1 addition & 1 deletion inference_scans/run_upper_limits_point_r.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ law run PlotUpperLimitsAtPoint \
--h-lines 1 \
--save-hep-data True \
--remove-output 0,a,y
# --use-snapshot True \ # for after unblinding
# --use-snapshot True \ # for (fit to data) after unblinding
# --Snapshot-workflow "local" \
2 changes: 1 addition & 1 deletion inference_scans/run_upper_limits_r_1d_c2v.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ law run PlotUpperLimits \
--remove-output 0,a,y \
--save-hep-data True \
--frozen-groups signal_norm_xsbr
# --use-snapshot True \ # for after unblinding
# --use-snapshot True \ # for (fit to data) after unblinding
# --Snapshot-workflow "local" \
# --scan-parameters kl,-3,5,8 \
2 changes: 1 addition & 1 deletion inference_scans/run_upper_limits_r_1d_kl.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ law run PlotUpperLimits \
--remove-output 0,a,y \
--save-hep-data True \
--frozen-groups signal_norm_xsbr
# --use-snapshot True \ # for after unblinding
# --use-snapshot True \ # for (fit to data) after unblinding
# --Snapshot-workflow "local" \

0 comments on commit 64e1a4b

Please sign in to comment.