diff --git a/inference_scans/README.md b/inference_scans/README.md index a9d0fbe2..bf5ea510 100644 --- a/inference_scans/README.md +++ b/inference_scans/README.md @@ -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" ``` diff --git a/inference_scans/nuisance_renames.json b/inference_scans/nuisance_renames.json deleted file mode 100644 index ca1438b0..00000000 --- a/inference_scans/nuisance_renames.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "CMS_bbWW_hadronic_tf_dataResidual_bbFatJetParticleNetMass_par1": "TF_par1", - "CMS_bbWW_hadronic_tf_dataResidual_bbFatJetParticleNetMass_par0": "TF_par0" -} \ No newline at end of file diff --git a/inference_scans/nuisance_renames.py b/inference_scans/nuisance_renames.py index d367925e..56c314b2 100644 --- a/inference_scans/nuisance_renames.py +++ b/inference_scans/nuisance_renames.py @@ -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 diff --git a/inference_scans/run_impacts.sh b/inference_scans/run_impacts.sh index 54395996..b1e18b85 100755 --- a/inference_scans/run_impacts.sh +++ b/inference_scans/run_impacts.sh @@ -2,7 +2,7 @@ law run PlotPullsAndImpacts \ --version "$VERSION" \ - --datacards "$Cbbww4q" \ + --datacards "$Cbbww4qInject" \ --file-types "pdf,png" \ --pois r \ --PullsAndImpacts-workflow "htcondor" \ @@ -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" \ \ No newline at end of file diff --git a/inference_scans/run_upper_limits_point_r.sh b/inference_scans/run_upper_limits_point_r.sh index 9afbfe47..e9894563 100755 --- a/inference_scans/run_upper_limits_point_r.sh +++ b/inference_scans/run_upper_limits_point_r.sh @@ -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 \ diff --git a/inference_scans/run_upper_limits_r_1d_c2v.sh b/inference_scans/run_upper_limits_r_1d_c2v.sh index 724fa0f2..6bfa6e05 100755 --- a/inference_scans/run_upper_limits_r_1d_c2v.sh +++ b/inference_scans/run_upper_limits_r_1d_c2v.sh @@ -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 \ diff --git a/inference_scans/run_upper_limits_r_1d_kl.sh b/inference_scans/run_upper_limits_r_1d_kl.sh index fb83c257..4a8ca1a3 100755 --- a/inference_scans/run_upper_limits_r_1d_kl.sh +++ b/inference_scans/run_upper_limits_r_1d_kl.sh @@ -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" \ @@ -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" \ \ No newline at end of file