Skip to content

Commit

Permalink
feat : add full run2 campaign config & several fixes on SFs (#18)
Browse files Browse the repository at this point in the history
* feat : add full run2 camapign & several fixes on SFs

- runner: add test option(run iterative with 1 file, 1 chunk)
- runner: add begin/ stop for splited file case
- config: add full run2 config example from Hc analysis
- example: add example workflow (test_wf) with config/example.py wrapped latest corrections & systematics implementation
- scripts: update fetch.py script (avoid merge data into one dict) & put error for empty list
- data: add run3 files back
- utils: add JEC shifts, rochester muon correction ttbar pT reweighting, pileup SFs
- utils: make SFs reader capable for more than 1 object
- utils: update collated scripts
- helper: add xsection for H+c

=============old commits==================
 # This is a combination of 2 commits.

* fix: previous fixes

- plot: add additional cross-section rescaler for sample set,  add mergemap for comparison script
- plot : fixes from Andrey in #16
- utils: add cross section template
- utils: trying to fix the plotting scripts
- utils: setup debug mode for plotting script

* Development from BTV

- minor fixes for runner.py and comparison.py; add JERC to MET propagation (cms-btv-pog#39)
- patch for the daskoutput name (cms-btv-pog#40)
- update plotting scripts and add track variables (cms-btv-pog#41)
- fix setup.cfg for CI pipelines (cms-btv-pog#42)
- MC merging in plotting scripts and move to PuppiMET (cms-btv-pog#43)
- plotting style improvements; future warnings in runner.py (cms-btv-pog#45)
- re-added worker port condition for lxplus; bug for xlabel in comparison.py (cms-btv-pog#48)
- updated 13 TeV single top and ttbar cross sections (cms-btv-pog#49)
- correctionlib(jsonpog-integration) implementation & fixes on actions (cms-btv-pog#50)

* feat: add array output to root files

---------

Co-authored-by: Andrey Pozdnyakov <[email protected]>
  • Loading branch information
Ming-Yan and andreypz authored May 16, 2023
1 parent f2bda09 commit 8091bee
Show file tree
Hide file tree
Showing 57 changed files with 6,003 additions and 666 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/plotting_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test plotter
name: plotting script test
on:
push:
branches: [ master ]
Expand All @@ -13,17 +13,13 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
python-version: ["3.8", "3.9", "3.10"]

defaults:
run:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
with:
cvmfs_repositories: 'grid.cern.ch'

- name: Set conda environment
uses: conda-incubator/setup-miniconda@v2
Expand All @@ -42,16 +38,15 @@ jobs:
conda info
conda env list
conda list
- name: Install Repo
run: |
pip install -e .
- name: data/MC plotter
run: |
python plotting/plotdataMC.py --cfg testfile/btv_datamc.yml
- name: comparison plotter
run: |
python plotting/comparison.py --cfg testfile/btv_comapre.yml
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.ipynb_checkpoints/
\#*
configurator.pkl

*/configurator.py
runinfo/
plot/
plotting/plot/
Expand Down
208 changes: 204 additions & 4 deletions README.md

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions WQ_test.yml

This file was deleted.

98 changes: 0 additions & 98 deletions config/HWW2l2nu.py

This file was deleted.

104 changes: 0 additions & 104 deletions config/HWW2l2nu_split.py

This file was deleted.

Loading

0 comments on commit 8091bee

Please sign in to comment.