Skip to content

Commit

Permalink
fix inject.json bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Aug 30, 2023
1 parent 5caada5 commit 3c94c89
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions inference_scans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export DHI_DATACARDS_RUN2="/afs/cern.ch/user/r/rkansal/work/hh/datacards_run2"
export DHI_DATA="/afs/cern.ch/user/r/rkansal/work/hh/inference/data"
export DHI_STORE="/eos/user/r/rkansal/bbVV/inference"
export Cbbww4q="bbww_hadronic/v1"
export Cbbww4qInject="$Cbbww4q<$DHI_DATACARDS_RUN2/$Cbbww4q/inject.json"
export VERSION="dev"
export UNBLINDED="False"
```
Expand Down
4 changes: 0 additions & 4 deletions inference_scans/nuisance_renames.json

This file was deleted.

3 changes: 3 additions & 0 deletions inference_scans/nuisance_renames.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ def rename_nuisance(nuisance: str):
if nuisance.startswith("tf_dataResidual_bbFatJetParticleNetMass_"):
return "TF_" + nuisance.split("tf_dataResidual_bbFatJetParticleNetMass_")[1]

if nuisance.startswith("lp_sf"):
return "Lund plane SF"

return nuisance
4 changes: 2 additions & 2 deletions inference_scans/run_impacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

law run PlotPullsAndImpacts \
--version "$VERSION" \
--datacards "$Cbbww4q" \
--datacards "$Cbbww4qInject" \
--file-types "pdf,png" \
--pois r \
--PullsAndImpacts-workflow "htcondor" \
Expand All @@ -12,11 +12,11 @@ law run PlotPullsAndImpacts \
--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
# --print-command 2 \
# --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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# export DHI_CMS_POSTFIX="Supplementary"
law run PlotUpperLimitsAtPoint \
--version "$VERSION" \
--multi-datacards "$Cbbww4q" \
--multi-datacards "$Cbbww4qInject" \
--datacard-names "bbVV" \
--file-types "pdf,png" \
--pois r \
Expand Down
2 changes: 1 addition & 1 deletion inference_scans/run_upper_limits_r_1d_c2v.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# export DHI_CMS_POSTFIX="Supplementary"
law run PlotUpperLimits \
--version "$VERSION" \
--datacards "$Cbbww4q" \
--datacards "$Cbbww4qInject" \
--xsec fb \
--pois r \
--scan-parameters C2V,-1,3,10 \
Expand Down
5 changes: 3 additions & 2 deletions inference_scans/run_upper_limits_r_1d_kl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# export DHI_CMS_POSTFIX="Supplementary"
law run PlotUpperLimits \
--version "$VERSION" \
--datacards "$Cbbww4q" \
--datacards "$Cbbww4qInject" \
--xsec fb \
--pois r \
--scan-parameters kl,-30,-12,7:kl,-7,-5,3:kl:kl,-2,7,19:kl,10,30,6 \
--scan-parameters kl,-30,-7,4:kl,-6,7,14:kl,15,30,4 \
--UpperLimits-workflow "htcondor" \
--UpperLimits-tasks-per-job 1 \
--file-types "png,pdf" \
Expand All @@ -19,5 +19,6 @@ law run PlotUpperLimits \
--remove-output 0,a,y \
--save-hep-data True \
--frozen-groups signal_norm_xsbr
# --scan-parameters kl,-30,-12,7:kl,-7,-5,3:kl,-2,7,19:kl,10,30,6 \
# --use-snapshot True \ # for (fit to data) after unblinding
# --Snapshot-workflow "local" \

0 comments on commit 3c94c89

Please sign in to comment.