Skip to content

Commit

Permalink
Adapt to upstream cf changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Nov 7, 2023
1 parent 78fb359 commit dd718d5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hbt/calibration/tau.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def tec(
.. code-block:: python
cfg.x.external_files = DotDict.wrap({
"tau_sf": "/afs/cern.ch/user/m/mrieger/public/mirrors/jsonpog-integration-f018adfb/POG/TAU/2017_UL/tau.json.gz", # noqa
"tau_sf": "/afs/cern.ch/work/m/mrieger/public/mirrors/jsonpog-integration-9ea86c4c/POG/TAU/2017_UL/tau.json.gz", # noqa
})
*get_tau_file* can be adapted in a subclass in case it is stored differently in the external
Expand Down
4 changes: 2 additions & 2 deletions hbt/config/configs_run2ul.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def add_config(
)

# external files
json_mirror = "/afs/cern.ch/user/m/mrieger/public/mirrors/jsonpog-integration-dfd90038"
json_mirror = "/afs/cern.ch/work/m/mrieger/public/mirrors/jsonpog-integration-9ea86c4c"
cfg.x.external_files = DotDict.wrap({
# jet energy correction
"jet_jerc": (f"{json_mirror}/POG/JME/{year}{corr_postfix}_UL/jet_jerc.json.gz", "v1"),
Expand Down Expand Up @@ -666,7 +666,7 @@ def add_config(
"deterministic_seed", "pu_weight*", "btag_weight*", "cutflow.*",
},
"cf.MergeSelectionMasks": {
"normalization_weight", "process_id", "category_ids", "cutflow.*",
"cutflow.*",
},
"cf.UniteColumns": {
"*",
Expand Down
4 changes: 2 additions & 2 deletions hbt/production/tau.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def tau_weights(self: Producer, events: ak.Array, **kwargs) -> ak.Array:
.. code-block:: python
cfg.x.external_files = DotDict.wrap({
"tau_sf": "/afs/cern.ch/user/m/mrieger/public/mirrors/jsonpog-integration-f018adfb/POG/TAU/2017_UL/tau.json.gz", # noqa
"tau_sf": "/afs/cern.ch/work/m/mrieger/public/mirrors/jsonpog-integration-9ea86c4c/POG/TAU/2017_UL/tau.json.gz", # noqa
})
*get_tau_file* can be adapted in a subclass in case it is stored differently in the external
Expand Down Expand Up @@ -230,7 +230,7 @@ def trigger_weights(self: Producer, events: ak.Array, **kwargs) -> ak.Array:
.. code-block:: python
cfg.x.external_files = DotDict.wrap({
"tau_sf": "/afs/cern.ch/user/m/mrieger/public/mirrors/jsonpog-integration-f018adfb/POG/TAU/2017_UL/tau.json.gz", # noqa
"tau_sf": "/afs/cern.ch/work/m/mrieger/public/mirrors/jsonpog-integration-9ea86c4c/POG/TAU/2017_UL/tau.json.gz", # noqa
})
*get_tau_file* can be adapted in a subclass in case it is stored differently in the external
Expand Down
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ setup_hbt() {
# law setup
#

export LAW_HOME="${HBT_BASE}/.law"
export LAW_CONFIG_FILE="${HBT_BASE}/law.cfg"
export LAW_HOME="${LAW_HOME:-${HBT_BASE}/.law}"
export LAW_CONFIG_FILE="${LAW_CONFIG_FILE:-${HBT_BASE}/law.cfg}"

if which law &> /dev/null; then
# source law's bash completion scipt
Expand Down

0 comments on commit dd718d5

Please sign in to comment.