Skip to content

Commit

Permalink
Add D* (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrosa authored Apr 8, 2024
1 parent f3c4bc7 commit 9cb3870
Show file tree
Hide file tree
Showing 3 changed files with 451 additions and 5 deletions.
7 changes: 7 additions & 0 deletions codeHF/config_tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ DOO2_SEL_LCK0SP=0 # hf-candidate-selector-lc-to-k0s-p
DOO2_SEL_XICC=0 # hf-candidate-selector-xicc-to-p-k-pi-pi
DOO2_SEL_B0=0 # hf-candidate-selector-b0-to-d-pi
DOO2_SEL_BPLUS=0 # hf-candidate-selector-bplus-to-d0-pi
DOO2_SEL_DSTAR=0 # hf-candidate-selector-dstar
# Analysis tasks
DOO2_TASK_D0=1 # hf-task-d0
DOO2_TASK_DS=0 # hf-task-ds
Expand Down Expand Up @@ -212,6 +213,11 @@ function AdjustJson {
ReplaceString "\"processNoTrigSel\": \"false\"" "\"processNoTrigSel\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
fi

# hf-track-index-skim-creator
if [[ $DOO2_CAND_DSTAR -eq 11 ]]; then
ReplaceString "\"doDstar\": \"false\"" "\"doDstar\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
fi

# hf-track-index-skim-creator-cascades
if [[ $DOO2_CAND_CASC -eq 1 || $DOO2_SEL_LCK0SP -eq 1 || $DOO2_TASK_LCK0SP -eq 1 || $DOO2_TREE_LCK0SP -eq 1 ]]; then
ReplaceString "\"processCascades\": \"false\"" "\"processCascades\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
Expand Down Expand Up @@ -423,6 +429,7 @@ function MakeScriptO2 {
[ $DOO2_SEL_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-xicc-to-p-k-pi-pi"
[ $DOO2_SEL_B0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-b0-to-d-pi"
[ $DOO2_SEL_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-bplus-to-d0-pi"
[ $DOO2_SEL_DSTAR -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-dstar"
# Analysis tasks
[ $DOO2_TASK_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-d0"
[ $DOO2_TASK_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-jpsi"
Expand Down
Loading

0 comments on commit 9cb3870

Please sign in to comment.