Skip to content

Commit a888ab6

Browse files
authored
Add LF cascade workflows. Disable selection flags. Update tables. Add missing V0 converter in input config. (#462)
1 parent 8c44efc commit a888ab6

File tree

4 files changed

+433
-54
lines changed

4 files changed

+433
-54
lines changed

codeHF/config_input.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,54 +40,54 @@ case $INPUT_CASE in
4040
1)
4141
INPUT_LABEL="Run 2, p-p 5.02 TeV LHC17p, real"
4242
INPUT_DIR="$INPUT_BASE/Run2/pp_5.02TeV/real/LHC17p_pass1_CENT_woSDD"
43-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
43+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
4444
;;
4545
2) # reference
4646
INPUT_LABEL="Run 2, p-p 5.02 TeV LHC17p, MC LHC18a4a2_cent"
4747
INPUT_DIR="$INPUT_BASE/Run2/pp_5.02TeV/sim/LHC18a4a2_cent/282099"
4848
INPUT_IS_MC=1
49-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
49+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
5050
;;
5151
3)
5252
INPUT_LABEL="Run 2, p-p 5.02 TeV LHC17p, MC LHC18a4a2_cent"
5353
INPUT_DIR="$INPUT_BASE/Run2/pp_5.02TeV/sim/LHC18a4a2_cent/282341"
5454
INPUT_IS_MC=1
55-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
55+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
5656
;;
5757
4)
5858
INPUT_LABEL="Run 2, Pb-Pb 5.02 TeV LHC15o, real"
5959
INPUT_DIR="$INPUT_BASE/Run2/PbPb_5.02TeV/real/LHC15o"
6060
INPUT_SYS="PbPb"
61-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
61+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
6262
;;
6363
5)
6464
INPUT_LABEL="Run 2, Pb-Pb 5.02 TeV LHC15o, MC LHC15k1a3"
6565
INPUT_DIR="$INPUT_BASE/Run2/PbPb_5.02TeV/sim/LHC15k1a3"
6666
INPUT_SYS="PbPb"
6767
INPUT_IS_MC=1
68-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
68+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
6969
;;
7070
6)
7171
INPUT_LABEL="Run 2, p-p 13 TeV LHC16p, MC LHC19g6f3, dedicated Ξc"
7272
INPUT_DIR="$INPUT_BASE/Run2/pp_13TeV/sim/LHC19g6f3"
7373
INPUT_IS_MC=1
74-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
74+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
7575
;;
7676
7)
7777
INPUT_LABEL="Run 3, p-p 13.6 TeV, LHC22o, real"
7878
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/real/LHC22o_pass4_minBias_small"
7979
INPUT_FILES="AO2D.root"
8080
INPUT_RUN=3
8181
INPUT_IS_O2=1
82-
INPUT_TASK_CONFIG="DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
82+
INPUT_TASK_CONFIG="DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
8383
;;
8484
8)
8585
INPUT_LABEL="Run 3, p-p 13.6 TeV, LHC22r, real, low interaction rate (100 kHz)"
8686
INPUT_DIR="$INPUT_BASE/Run3/pp_13.6TeV/real/LHC22r"
8787
INPUT_FILES="AO2D.root"
8888
INPUT_RUN=3
8989
INPUT_IS_O2=1
90-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_COLL=1"
90+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_COLL=1 DOO2_CONV_V0=1"
9191
;;
9292
9)
9393
INPUT_LABEL="Run 3, p-p 13.6 TeV, MC LHC21k6, general purpose"
@@ -96,28 +96,28 @@ case $INPUT_CASE in
9696
INPUT_RUN=3
9797
INPUT_IS_O2=1
9898
INPUT_IS_MC=1
99-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_COLL=1"
99+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_COLL=1 DOO2_CONV_V0=1"
100100
;;
101101
10)
102102
INPUT_LABEL="Run 2, p-p 13 TeV LHC18f, MC LHC20f4a (ESD)"
103103
INPUT_DIR="$INPUT_BASE/Run2/pp_13TeV/sim/LHC20f4a"
104104
INPUT_IS_MC=1
105-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
105+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
106106
;;
107107
11)
108108
INPUT_LABEL="Run 2, p-p 13 TeV LHC18f, MC LHC20f4a (AO2D)"
109109
INPUT_DIR="$INPUT_BASE/Run2/pp_13TeV/sim_converted/LHC20f4a"
110110
INPUT_FILES="AO2D.root"
111111
INPUT_IS_O2=1
112112
INPUT_IS_MC=1
113-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_COLL=1"
113+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_COLL=1 DOO2_CONV_V0=1"
114114
;;
115115
12)
116116
INPUT_LABEL="Run 2, p-p 13 TeV, LHC17j (AO2D)"
117117
INPUT_DIR="$INPUT_BASE/Run2/pp_13TeV/real_converted/LHC17j_20220601" # converted good AO2Ds
118118
INPUT_FILES="AO2D.root"
119119
INPUT_IS_O2=1
120-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_COLL=1"
120+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_COLL=1 DOO2_CONV_V0=1"
121121
;;
122122
13)
123123
INPUT_LABEL="Run 3, p-p 13.6 TeV, MC LHC22b1b, D2H enriched"
@@ -126,7 +126,7 @@ case $INPUT_CASE in
126126
INPUT_RUN=3
127127
INPUT_IS_O2=1
128128
INPUT_IS_MC=1
129-
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
129+
INPUT_TASK_CONFIG="DOO2_CONV_ZDC=1 DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
130130
;;
131131
14)
132132
INPUT_LABEL="Run 3, p-p 13.6 TeV, MC LHC23f4b2, general purpose"
@@ -135,7 +135,7 @@ case $INPUT_CASE in
135135
INPUT_RUN=3
136136
INPUT_IS_O2=1
137137
INPUT_IS_MC=1
138-
INPUT_TASK_CONFIG="DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1"
138+
INPUT_TASK_CONFIG="DOO2_CONV_BC=1 DOO2_CONV_TRKEX=1 DOO2_CONV_V0=1"
139139
;;
140140
15)
141141
INPUT_LABEL="Run 3, Pb-Pb 5.36 TeV LHC23zzi_pass2"

codeHF/config_tasks.sh

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ DOO2_CAND_XICC=0 # hf-candidate-creator-xicc
4848
DOO2_CAND_B0=0 # hf-candidate-creator-b0
4949
DOO2_CAND_BPLUS=0 # hf-candidate-creator-bplus
5050
DOO2_CAND_DSTAR=0 # hf-candidate-creator-dstar
51+
DOO2_CAND_XIC0OC0=0 # hf-candidate-creator-xic0-omegac0
5152
# Selectors
5253
DOO2_SEL_D0=0 # hf-candidate-selector-d0
5354
DOO2_SEL_DS=0 # hf-candidate-selector-ds-to-k-k-pi
@@ -63,6 +64,7 @@ DOO2_SEL_XICC=0 # hf-candidate-selector-xicc-to-p-k-pi-pi
6364
DOO2_SEL_B0=0 # hf-candidate-selector-b0-to-d-pi
6465
DOO2_SEL_BPLUS=0 # hf-candidate-selector-bplus-to-d0-pi
6566
DOO2_SEL_DSTAR=0 # hf-candidate-selector-dstar
67+
DOO2_SEL_TOXIPI=0 # hf-candidate-selector-to-xi-pi
6668
# Analysis tasks
6769
DOO2_TASK_D0=1 # hf-task-d0
6870
DOO2_TASK_DS=0 # hf-task-ds
@@ -77,7 +79,7 @@ DOO2_TASK_LCK0SP=0 # hf-task-lc-to-k0s-p
7779
DOO2_TASK_XICC=0 # hf-task-xicc
7880
DOO2_TASK_B0=0 # hf-task-b0
7981
DOO2_TASK_BPLUS=0 # hf-task-bplus
80-
DOO2_TASK_DSTAR=1 # hf-task-dstar-to-d0-pi
82+
DOO2_TASK_DSTAR=0 # hf-task-dstar-to-d0-pi
8183
# Tree creators
8284
DOO2_TREE_D0=0 # hf-tree-creator-d0-to-k-pi
8385
DOO2_TREE_LC=0 # hf-tree-creator-lc-to-p-k-pi (only Run 3)
@@ -87,6 +89,7 @@ DOO2_TREE_XICC=0 # hf-tree-creator-xicc-to-p-k-pi-pi
8789
DOO2_TREE_CHIC=0 # hf-tree-creator-chic-to-jpsi-gamma
8890
DOO2_TREE_BPLUS=0 # hf-tree-creator-bplus-to-d0-pi
8991
DOO2_TREE_LCK0SP=0 # hf-tree-creator-lc-to-k0s-p
92+
DOO2_TREE_TOXIPI=0 # hf-tree-creator-to-xi-pi
9093
# Derived-data creators
9194
DOO2_DATA_D0=0 # hf-derived-data-creator-d0-to-k-pi
9295
DOO2_DATA_LC=0 # hf-derived-data-creator-lc-to-p-k-pi
@@ -192,21 +195,23 @@ function AdjustJson {
192195
# MC
193196
if [ "$INPUT_IS_MC" -eq 1 ]; then
194197
MsgWarn "Using MC data"
198+
ReplaceString "\"isMC\": \"false\"" "\"isMC\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
195199
ReplaceString "\"processMc\": \"false\"" "\"processMc\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
196200
ReplaceString "\"processMcStd\": \"false\"" "\"processMcStd\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
197201
ReplaceString "\"processMcWithDCAFitterAll\": \"false\"" "\"processMcWithDCAFitterAll\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
202+
ReplaceString "\"processMcWithDCAFitterN\": \"false\"" "\"processMcWithDCAFitterN\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
198203
ReplaceString "\"processMC\": \"false\"" "\"processMC\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
199-
ReplaceString "\"isMC\": \"false\"" "\"isMC\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
200204
ReplaceString "\"processData\": \"true\"" "\"processData\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
201205
ReplaceString "\"processDataStd\": \"true\"" "\"processDataStd\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
202206
ReplaceString "\"processDataWithDCAFitterN\": \"true\"" "\"processDataWithDCAFitterN\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
203207
else
204208
MsgWarn "Using real data"
209+
ReplaceString "\"isMC\": \"true\"" "\"isMC\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
205210
ReplaceString "\"processMc\": \"true\"" "\"processMc\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
206211
ReplaceString "\"processMcStd\": \"true\"" "\"processMcStd\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
207212
ReplaceString "\"processMcWithDCAFitterAll\": \"true\"" "\"processMcWithDCAFitterAll\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
213+
ReplaceString "\"processMcWithDCAFitterN\": \"true\"" "\"processMcWithDCAFitterN\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
208214
ReplaceString "\"processMC\": \"true\"" "\"processMC\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
209-
ReplaceString "\"isMC\": \"true\"" "\"isMC\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
210215
ReplaceString "\"processData\": \"false\"" "\"processData\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
211216
ReplaceString "\"processDataStd\": \"false\"" "\"processDataStd\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
212217
ReplaceString "\"processDataWithDCAFitterN\": \"false\"" "\"processDataWithDCAFitterN\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
@@ -233,6 +238,12 @@ function AdjustJson {
233238
ReplaceString "\"processNoCascades\": \"true\"" "\"processNoCascades\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
234239
fi
235240

241+
# hf-track-index-skim-creator-lf-cascades
242+
if [[ $DOO2_CAND_XIC0OC0 -eq 1 || $DOO2_SEL_TOXIPI -eq 1 || $DOO2_TREE_TOXIPI -eq 1 ]]; then
243+
ReplaceString "\"processLfCascades\": \"false\"" "\"processLfCascades\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
244+
ReplaceString "\"processNoLfCascades\": \"true\"" "\"processNoLfCascades\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
245+
fi
246+
236247
# timestamp-task
237248
if [[ "$INPUT_IS_MC" -eq 1 && "$INPUT_RUN" -eq 2 ]]; then
238249
ReplaceString "\"isRun2MC\": \"false\"" "\"isRun2MC\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
@@ -399,7 +410,9 @@ function MakeScriptO2 {
399410
SUFFIX_SKIM_MASK="_skimX" # suffix mask to be replaced in the workflow names
400411
SUFFIX_SKIM="" # the actual suffix to be used instead of the mask
401412
# Λc → K0S p cascade reconstruction
402-
[[ $DOO2_CAND_CASC -eq 1 || $DOO2_SEL_LCK0SP -eq 1 || $DOO2_TASK_LCK0SP -eq 1 || $DOO2_TREE_LCK0SP -eq 1 ]] && SUFFIX_SKIM+="_v0"
413+
[[ $DOO2_CAND_CASC -eq 1 || $DOO2_SEL_LCK0SP -eq 1 || $DOO2_TASK_LCK0SP -eq 1 || $DOO2_TREE_LCK0SP -eq 1 ]] && SUFFIX_SKIM="_v0"
414+
# Ξc0/Ωc0 → Ξ π LF cascade reconstruction
415+
[[ $DOO2_CAND_XIC0OC0 -eq 1 || $DOO2_SEL_TOXIPI -eq 1 || $DOO2_TREE_TOXIPI -eq 1 ]] && SUFFIX_SKIM="_casc-lf"
403416

404417
# Suffix to distinguish versions of the same workflow for different runs in the workflow database
405418
SUFFIX_RUN_MASK="_runX" # suffix mask to be replaced in the workflow names
@@ -424,6 +437,7 @@ function MakeScriptO2 {
424437
[ $DOO2_CAND_B0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-b0"
425438
[ $DOO2_CAND_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-bplus"
426439
[ $DOO2_CAND_DSTAR -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-dstar"
440+
[ $DOO2_CAND_XIC0OC0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-xic0-omegac0"
427441
# Selectors
428442
[ $DOO2_SEL_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-d0"
429443
[ $DOO2_SEL_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-jpsi${SUFFIX_RUN}"
@@ -439,6 +453,7 @@ function MakeScriptO2 {
439453
[ $DOO2_SEL_B0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-b0-to-d-pi"
440454
[ $DOO2_SEL_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-bplus-to-d0-pi"
441455
[ $DOO2_SEL_DSTAR -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-dstar-to-d0-pi"
456+
[ $DOO2_SEL_TOXIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-to-xi-pi"
442457
# Analysis tasks
443458
[ $DOO2_TASK_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-d0"
444459
[ $DOO2_TASK_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-jpsi"
@@ -463,6 +478,7 @@ function MakeScriptO2 {
463478
[ $DOO2_TREE_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-chic-to-jpsi-gamma"
464479
[ $DOO2_TREE_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-bplus-to-d0-pi"
465480
[ $DOO2_TREE_LCK0SP -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-lc-to-k0s-p"
481+
[ $DOO2_TREE_TOXIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-to-xi-pi"
466482
# Derive-data creators
467483
[ $DOO2_DATA_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-derived-data-creator-d0-to-k-pi"
468484
[ $DOO2_DATA_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-derived-data-creator-lc-to-p-k-pi"

0 commit comments

Comments
 (0)