-
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
12 changed files
with
65 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,12 @@ 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. | ||
- `v1` is the name of the environment here. | ||
|
||
```bash | ||
git clone ssh://[email protected]:7999/hh/tools/inference.git | ||
cd inference | ||
source setup.sh c1 | ||
source setup.sh v1 | ||
``` | ||
|
||
TODO: update this with better datacard dirs and setting up card repos. | ||
|
@@ -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" | ||
``` | ||
|
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,11 @@ | ||
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] | ||
|
||
if nuisance.startswith("lp_sf"): | ||
return "Lund plane SF" | ||
|
||
return nuisance |
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,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
law run PlotPullsAndImpacts \ | ||
--version "$VERSION" \ | ||
--datacards "$Cbbww4qInject" \ | ||
--file-types "pdf,png" \ | ||
--pois r \ | ||
--PullsAndImpacts-workflow "htcondor" \ | ||
--PullsAndImpacts-tasks-per-job 10 \ | ||
--PullsAndImpacts-custom-args="--rMin -40 --rMax 40" \ | ||
--parameters-per-page 40 \ | ||
--order-by-impact \ | ||
--labels "nuisance_renames.py" \ | ||
--skip-parameters "*dataResidual_Bin*" \ | ||
--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" \ |
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
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
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