Skip to content

Commit

Permalink
Add Ξc+ → Ξ π π workflows. Update TPC. Update Lc selector. (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkucera authored Jul 10, 2024
1 parent 0a574c3 commit 3fbe632
Show file tree
Hide file tree
Showing 4 changed files with 348 additions and 42 deletions.
16 changes: 12 additions & 4 deletions codeHF/config_tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ DOO2_CAND_B0=0 # hf-candidate-creator-b0
DOO2_CAND_BPLUS=0 # hf-candidate-creator-bplus
DOO2_CAND_DSTAR=0 # hf-candidate-creator-dstar
DOO2_CAND_XIC0OC0=0 # hf-candidate-creator-xic0-omegac0
DOO2_CAND_XIC_XIPIPI=0 # hf-candidate-creator-xic-to-xi-pi-pi
# Selectors
DOO2_SEL_D0=0 # hf-candidate-selector-d0
DOO2_SEL_DS=0 # hf-candidate-selector-ds-to-k-k-pi
Expand All @@ -65,6 +66,7 @@ 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
DOO2_SEL_TOXIPI=0 # hf-candidate-selector-to-xi-pi
DOO2_SEL_XIC_XIPIPI=0 # hf-candidate-selector-xic-to-xi-pi-pi
# Analysis tasks
DOO2_TASK_D0=1 # hf-task-d0
DOO2_TASK_DS=0 # hf-task-ds
Expand All @@ -80,6 +82,7 @@ DOO2_TASK_XICC=0 # hf-task-xicc
DOO2_TASK_B0=0 # hf-task-b0
DOO2_TASK_BPLUS=0 # hf-task-bplus
DOO2_TASK_DSTAR=0 # hf-task-dstar-to-d0-pi
DOO2_TASK_XIC_XIPIPI=1 # hf-task-xic-to-xi-pi-pi
# Tree creators
DOO2_TREE_D0=0 # hf-tree-creator-d0-to-k-pi
DOO2_TREE_LC=0 # hf-tree-creator-lc-to-p-k-pi (only Run 3)
Expand All @@ -90,6 +93,7 @@ DOO2_TREE_CHIC=0 # hf-tree-creator-chic-to-jpsi-gamma
DOO2_TREE_BPLUS=0 # hf-tree-creator-bplus-to-d0-pi
DOO2_TREE_LCK0SP=0 # hf-tree-creator-lc-to-k0s-p
DOO2_TREE_TOXIPI=0 # hf-tree-creator-to-xi-pi
DOO2_TREE_XIC_XIPIPI=0 # hf-tree-creator-xic-to-xi-pi-pi
# Derived-data creators
DOO2_DATA_D0=0 # hf-derived-data-creator-d0-to-k-pi
DOO2_DATA_LC=0 # hf-derived-data-creator-lc-to-p-k-pi
Expand Down Expand Up @@ -117,7 +121,7 @@ DOO2_QA_EFF=0 # qa-efficiency
DOO2_QA_EVTRK=0 # qa-event-track
DOO2_MC_VALID=0 # hf-task-mc-validation
# PID
DOO2_PID_TPC=0 # pid-tpc-full
DOO2_PID_TPC=0 # pid-tpc
DOO2_PID_TOF=0 # pid-tof-full/alice3-pid-tof
DOO2_PID_TOF_QA=0 # pid-tof-qa-mc
DOO2_PID_BAYES=0 # pid-bayes
Expand Down Expand Up @@ -239,7 +243,7 @@ function AdjustJson {
fi

# hf-track-index-skim-creator-lf-cascades
if [[ $DOO2_CAND_XIC0OC0 -eq 1 || $DOO2_SEL_TOXIPI -eq 1 || $DOO2_TREE_TOXIPI -eq 1 ]]; then
if [[ $DOO2_CAND_XIC0OC0 -eq 1 || $DOO2_SEL_TOXIPI -eq 1 || $DOO2_TREE_TOXIPI -eq 1 || $DOO2_CAND_XIC_XIPIPI -eq 1 || $DOO2_SEL_XIC_XIPIPI -eq 1 || $DOO2_TASK_XIC_XIPIPI -eq 1 || $DOO2_TREE_XIC_XIPIPI -eq 1 ]]; then
ReplaceString "\"processLfCascades\": \"false\"" "\"processLfCascades\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
ReplaceString "\"processNoLfCascades\": \"true\"" "\"processNoLfCascades\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
fi
Expand Down Expand Up @@ -412,7 +416,7 @@ function MakeScriptO2 {
# Λc → K0S p cascade reconstruction
[[ $DOO2_CAND_CASC -eq 1 || $DOO2_SEL_LCK0SP -eq 1 || $DOO2_TASK_LCK0SP -eq 1 || $DOO2_TREE_LCK0SP -eq 1 ]] && SUFFIX_SKIM="_v0"
# Ξc0/Ωc0 → Ξ π LF cascade reconstruction
[[ $DOO2_CAND_XIC0OC0 -eq 1 || $DOO2_SEL_TOXIPI -eq 1 || $DOO2_TREE_TOXIPI -eq 1 ]] && SUFFIX_SKIM="_casc-lf"
[[ $DOO2_CAND_XIC0OC0 -eq 1 || $DOO2_SEL_TOXIPI -eq 1 || $DOO2_TREE_TOXIPI -eq 1 || $DOO2_CAND_XIC_XIPIPI -eq 1 || $DOO2_SEL_XIC_XIPIPI -eq 1 || $DOO2_TASK_XIC_XIPIPI -eq 1 || $DOO2_TREE_XIC_XIPIPI -eq 1 ]] && SUFFIX_SKIM="_casc-lf"

# Suffix to distinguish versions of the same workflow for different runs in the workflow database
SUFFIX_RUN_MASK="_runX" # suffix mask to be replaced in the workflow names
Expand All @@ -438,6 +442,7 @@ function MakeScriptO2 {
[ $DOO2_CAND_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-bplus"
[ $DOO2_CAND_DSTAR -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-dstar"
[ $DOO2_CAND_XIC0OC0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-xic0-omegac0"
[ $DOO2_CAND_XIC_XIPIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-xic-to-xi-pi-pi"
# Selectors
[ $DOO2_SEL_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-d0"
[ $DOO2_SEL_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-jpsi${SUFFIX_RUN}"
Expand All @@ -454,6 +459,7 @@ function MakeScriptO2 {
[ $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-to-d0-pi"
[ $DOO2_SEL_TOXIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-to-xi-pi"
[ $DOO2_SEL_XIC_XIPIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-xic-to-xi-pi-pi"
# 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 All @@ -469,6 +475,7 @@ function MakeScriptO2 {
[ $DOO2_TASK_B0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-b0"
[ $DOO2_TASK_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-bplus"
[ $DOO2_TASK_DSTAR -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-dstar-to-d0-pi"
[ $DOO2_TASK_XIC_XIPIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-xic-to-xi-pi-pi"
# Tree creators
[ $DOO2_TREE_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-d0-to-k-pi"
[ $DOO2_TREE_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-lc-to-p-k-pi"
Expand All @@ -479,6 +486,7 @@ function MakeScriptO2 {
[ $DOO2_TREE_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-bplus-to-d0-pi"
[ $DOO2_TREE_LCK0SP -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-lc-to-k0s-p"
[ $DOO2_TREE_TOXIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-to-xi-pi"
[ $DOO2_TREE_XIC_XIPIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-xic-to-xi-pi-pi"
# Derive-data creators
[ $DOO2_DATA_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-derived-data-creator-d0-to-k-pi"
[ $DOO2_DATA_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-derived-data-creator-lc-to-p-k-pi"
Expand Down Expand Up @@ -515,7 +523,7 @@ function MakeScriptO2 {
[ $DOO2_QA_EVTRK -eq 1 ] && WORKFLOWS+=" o2-analysis-qa-event-track"
[ $DOO2_MC_VALID -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-mc-validation"
# PID
[ $DOO2_PID_TPC -eq 1 ] && WORKFLOWS+=" o2-analysis-pid-tpc-full"
[ $DOO2_PID_TPC -eq 1 ] && WORKFLOWS+=" o2-analysis-pid-tpc"
[ $DOO2_PID_BAYES -eq 1 ] && WORKFLOWS+=" o2-analysis-pid-bayes"
[ $DOO2_PID_TOF -eq 1 ] && WORKFLOWS+=" o2-analysis-pid-tof-full${SUFFIX_RUN}"
[ $DOO2_PID_TOF_QA -eq 1 ] && WORKFLOWS+=" o2-analysis-pid-tof-qa-mc"
Expand Down
Loading

0 comments on commit 3fbe632

Please sign in to comment.