-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/rkansal47/HHbbVV into main
- Loading branch information
Showing
34 changed files
with
2,855 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# HH Inference scans | ||
|
||
For HH limits, kl/c2v scans, etc. Adapted from https://github.com/LPC-HH/inference_scans. | ||
|
||
- [HH Inference scans](#hh-inference-scans) | ||
- [Setup](#setup) | ||
|
||
|
||
## Setup | ||
|
||
1. Make a fresh area on lxplus, for example: | ||
|
||
```bash | ||
mkdir ~/work/HH | ||
``` | ||
|
||
2. Setup inference as follows | ||
- Set up the environment in a new folder with a clean environment (no `cmsenv`, ETC.) | ||
- Use `some_name` as the name of the environment. | ||
|
||
```bash | ||
git clone ssh://git@gitlab.cern.ch:7999/hh/tools/inference.git | ||
cd inference | ||
source setup.sh c1 | ||
``` | ||
|
||
TODO: update this with better datacard dirs and setting up card repos. | ||
|
||
3. Add the following to the `.setups/v1.sh` file | ||
```bash | ||
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 VERSION="dev" | ||
export UNBLINDED="False" | ||
``` | ||
|
||
4. Checkout this repo outside of `inference` | ||
|
||
```bash | ||
cd .. | ||
git clone https://github.com/rkansal47/HHbbVV.git | ||
``` | ||
|
||
|
||
5. Finally, from the `inference_scans` directory in `screen` or `tmux`, run the desired script: | ||
|
||
```bash | ||
cd inference | ||
source setup.sh v1 # required before running a scan | ||
cd ../HHbbVV/inference_scans/ | ||
source run_likelihood_scan_2d_kl_c2v.sh | ||
``` | ||
|
||
Note! Need to make persistent screens to log off lxplus while running: | ||
https://hsf-training.github.io/analysis-essentials/shell-extras/persistent-screen.html | ||
|
||
Also keep track of the specific lxplus node. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# export DHI_CMS_POSTFIX="Supplementary" | ||
law run PlotUpperLimitsAtPoint \ | ||
--version "$VERSION" \ | ||
--multi-datacards "$Cbbww4q" \ | ||
--datacard-names "bbVV" \ | ||
--file-types "pdf,png" \ | ||
--pois r \ | ||
--show-parameters kl,kt,C2V,CV \ | ||
--UpperLimits-workflow "htcondor" \ | ||
--UpperLimits-tasks-per-job 1 \ | ||
--x-log \ | ||
--campaign run2 \ | ||
--unblinded $UNBLINDED \ | ||
--h-lines 1 \ | ||
--save-hep-data True \ | ||
--remove-output 0,a,y | ||
# --use-snapshot True \ | ||
# --Snapshot-workflow "local" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# export DHI_CMS_POSTFIX="Supplementary" | ||
law run PlotUpperLimits \ | ||
--version "$VERSION" \ | ||
--datacards "$Cbbww4q" \ | ||
--xsec fb \ | ||
--pois r \ | ||
--scan-parameters C2V,-1,3,10 \ | ||
--UpperLimits-workflow "htcondor" \ | ||
--UpperLimits-tasks-per-job 1 \ | ||
--file-types "png,pdf" \ | ||
--campaign run2 \ | ||
--unblinded $UNBLINDED \ | ||
--y-log \ | ||
--show-parameters "kt,C2V,CV" \ | ||
--br bbww \ | ||
--save-ranges \ | ||
--remove-output 0,a,y \ | ||
--save-hep-data True \ | ||
--frozen-groups signal_norm_xsbr | ||
# --use-snapshot True \ # for after unblinding | ||
# --Snapshot-workflow "local" \ | ||
# --scan-parameters kl,-3,5,8 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# export DHI_CMS_POSTFIX="Supplementary" | ||
law run PlotUpperLimits \ | ||
--version "$VERSION" \ | ||
--datacards "$Cbbww4q" \ | ||
--xsec fb \ | ||
--pois r \ | ||
--scan-parameters kl,-30,-12,7:kl,-7,-5,3:kl:kl,-2,7,19:kl,10,30,6 \ | ||
--UpperLimits-workflow "htcondor" \ | ||
--UpperLimits-tasks-per-job 1 \ | ||
--file-types "png,pdf" \ | ||
--campaign run2 \ | ||
--unblinded $UNBLINDED \ | ||
--y-log \ | ||
--show-parameters "kt,C2V,CV" \ | ||
--br bbww \ | ||
--save-ranges \ | ||
--remove-output 0,a,y \ | ||
--save-hep-data True \ | ||
--frozen-groups signal_norm_xsbr | ||
# --use-snapshot True \ # for after unblinding | ||
# --Snapshot-workflow "local" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.