Skip to content

Commit bd2d96d

Browse files
committed
Take Run 5 out from config_task.sh
1 parent 55b2b04 commit bd2d96d

File tree

2 files changed

+99
-61
lines changed

2 files changed

+99
-61
lines changed

codeHF/config_tasks.sh

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ DOO2_CAND_2PRONG=0 # hf-candidate-creator-2prong
4242
DOO2_CAND_3PRONG=0 # hf-candidate-creator-3prong
4343
DOO2_CAND_CASC=0 # hf-candidate-creator-cascade
4444
DOO2_CAND_LB=0 # hf-candidate-creator-lb
45-
DOO2_CAND_X=0 # hf-candidate-creator-x
46-
DOO2_CAND_CHIC=0 # hf-candidate-creator-chic
47-
DOO2_CAND_XICC=0 # hf-candidate-creator-xicc
4845
DOO2_CAND_B0=0 # hf-candidate-creator-b0
4946
DOO2_CAND_BPLUS=0 # hf-candidate-creator-bplus
5047
DOO2_CAND_DSTAR=0 # hf-candidate-creator-dstar
@@ -57,11 +54,7 @@ DOO2_SEL_DPLUS=0 # hf-candidate-selector-dplus-to-pi-k-pi
5754
DOO2_SEL_LC=0 # hf-candidate-selector-lc
5855
DOO2_SEL_LB=0 # hf-candidate-selector-lb-to-lc-pi
5956
DOO2_SEL_XIC=0 # hf-candidate-selector-xic-to-p-k-pi
60-
DOO2_SEL_JPSI=0 # hf-candidate-selector-jpsi
61-
DOO2_SEL_X=0 # hf-candidate-selector-x-to-jpsi-pi-pi
62-
DOO2_SEL_CHIC=0 # hf-candidate-selector-chic-to-jpsi-gamma
6357
DOO2_SEL_LCK0SP=0 # hf-candidate-selector-lc-to-k0s-p
64-
DOO2_SEL_XICC=0 # hf-candidate-selector-xicc-to-p-k-pi-pi
6558
DOO2_SEL_B0=0 # hf-candidate-selector-b0-to-d-pi
6659
DOO2_SEL_BPLUS=0 # hf-candidate-selector-bplus-to-d0-pi
6760
DOO2_SEL_DSTAR=0 # hf-candidate-selector-dstar
@@ -74,11 +67,7 @@ DOO2_TASK_DPLUS=0 # hf-task-dplus
7467
DOO2_TASK_LC=0 # hf-task-lc
7568
DOO2_TASK_LB=0 # hf-task-lb
7669
DOO2_TASK_XIC=0 # hf-task-xic
77-
DOO2_TASK_JPSI=0 # hf-task-jpsi
78-
DOO2_TASK_X=0 # hf-task-x
79-
DOO2_TASK_CHIC=0 # hf-task-chic
8070
DOO2_TASK_LCK0SP=0 # hf-task-lc-to-k0s-p
81-
DOO2_TASK_XICC=0 # hf-task-xicc
8271
DOO2_TASK_B0=0 # hf-task-b0
8372
DOO2_TASK_BPLUS=0 # hf-task-bplus
8473
DOO2_TASK_DSTAR=0 # hf-task-dstar-to-d0-pi
@@ -87,9 +76,6 @@ DOO2_TASK_XIC_XIPIPI=0 # hf-task-xic-to-xi-pi-pi
8776
DOO2_TREE_D0=0 # hf-tree-creator-d0-to-k-pi
8877
DOO2_TREE_LC=0 # hf-tree-creator-lc-to-p-k-pi (only Run 3)
8978
DOO2_TREE_LB=0 # hf-tree-creator-lb-to-lc-pi (only Run 5)
90-
DOO2_TREE_X=0 # hf-tree-creator-x-to-jpsi-pi-pi
91-
DOO2_TREE_XICC=0 # hf-tree-creator-xicc-to-p-k-pi-pi
92-
DOO2_TREE_CHIC=0 # hf-tree-creator-chic-to-jpsi-gamma
9379
DOO2_TREE_BPLUS=0 # hf-tree-creator-bplus-to-d0-pi
9480
DOO2_TREE_LCK0SP=0 # hf-tree-creator-lc-to-k0s-p
9581
DOO2_TREE_TOXIPI=0 # hf-tree-creator-to-xi-pi
@@ -120,7 +106,6 @@ DOO2_JET_MATCH=0 # je-jet-matching-mc-d0-ch
120106
DOO2_JET_SUB=0 # je-jet-substructure-d0
121107
DOO2_JET_SUB_OUT=0 # je-jet-substructure-d0-output
122108
# QA
123-
DOO2_REJ_ALICE3=0 # hf-task-qa-pid-rejection
124109
DOO2_QA_EFF=0 # qa-efficiency
125110
DOO2_QA_EVTRK=0 # qa-event-track
126111
DOO2_MC_VALID=0 # hf-task-mc-validation
@@ -150,11 +135,7 @@ APPLYCUTS_DPLUS=0 # Apply D+ selection cuts.
150135
APPLYCUTS_LC=0 # Apply Λc selection cuts.
151136
APPLYCUTS_LB=0 # Apply Λb selection cuts.
152137
APPLYCUTS_XIC=0 # Apply Ξc selection cuts.
153-
APPLYCUTS_JPSI=0 # Apply J/ψ selection cuts.
154-
APPLYCUTS_X=0 # Apply X selection cuts.
155-
APPLYCUTS_CHIC=0 # Apply χc(1p) selection cuts.
156138
APPLYCUTS_LCK0SP=0 # Apply Λc → K0S p selection cuts.
157-
APPLYCUTS_XICC=0 # Apply Ξcc selection cuts.
158139
APPLYCUTS_B0=0 # Apply B0 selection cuts.
159140
APPLYCUTS_BPLUS=0 # Apply B+ selection cuts.
160141

@@ -389,37 +370,13 @@ function AdjustJson {
389370
ReplaceString "\"selectionFlagXic\": \"0\"" "\"selectionFlagXic\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
390371
fi
391372

392-
# Enable J/ψ selection.
393-
if [ $APPLYCUTS_JPSI -eq 1 ]; then
394-
MsgWarn "Using J/ψ selection cuts"
395-
ReplaceString "\"selectionFlagJpsi\": \"0\"" "\"selectionFlagJpsi\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
396-
fi
397-
398-
# Enable X(3872) selection.
399-
if [ $APPLYCUTS_X -eq 1 ]; then
400-
MsgWarn "Using X(3872) selection cuts"
401-
ReplaceString "\"selectionFlagX\": \"0\"" "\"selectionFlagX\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
402-
fi
403-
404-
# Enable χc(1p) selection.
405-
if [ $APPLYCUTS_CHIC -eq 1 ]; then
406-
MsgWarn "Using χc(1p) selection cuts"
407-
ReplaceString "\"selectionFlagChic\": \"0\"" "\"selectionFlagChic\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
408-
fi
409-
410373
# Enable Λc → K0S p selection.
411374
if [ $APPLYCUTS_LCK0SP -eq 1 ]; then
412375
MsgWarn "Using Λc → K0S p selection cuts"
413376
ReplaceString "\"selectionFlagLcToK0sP\": \"0\"" "\"selectionFlagLcToK0sP\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
414377
ReplaceString "\"selectionFlagLcbarToK0sP\": \"0\"" "\"selectionFlagLcbarToK0sP\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
415378
fi
416379

417-
# Enable Ξcc selection.
418-
if [ $APPLYCUTS_XICC -eq 1 ]; then
419-
MsgWarn "Using Ξcc selection cuts"
420-
ReplaceString "\"selectionFlagXicc\": \"0\"" "\"selectionFlagXicc\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
421-
fi
422-
423380
# Enable B0 selection.
424381
if [ $APPLYCUTS_B0 -eq 1 ]; then
425382
MsgWarn "Using B0 selection cuts"
@@ -459,44 +416,33 @@ function MakeScriptO2 {
459416
[ $DOO2_CAND_2PRONG -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-2prong${SUFFIX_DER}"
460417
[ $DOO2_CAND_3PRONG -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-3prong${SUFFIX_DER}"
461418
[ $DOO2_CAND_LB -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-lb"
462-
[ $DOO2_CAND_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-x"
463-
[ $DOO2_CAND_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-chic"
464419
[ $DOO2_CAND_CASC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-cascade${SUFFIX_DER}"
465-
[ $DOO2_CAND_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-xicc"
466420
[ $DOO2_CAND_B0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-b0"
467421
[ $DOO2_CAND_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-bplus"
468422
[ $DOO2_CAND_DSTAR -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-dstar"
469423
[ $DOO2_CAND_XIC0OC0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-xic0-omegac0${SUFFIX_DER}"
470424
[ $DOO2_CAND_XIC_XIPIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-xic-to-xi-pi-pi${SUFFIX_DER}"
471425
# Selectors
472426
[ $DOO2_SEL_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-d0"
473-
[ $DOO2_SEL_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-jpsi${SUFFIX_RUN}"
474427
[ $DOO2_SEL_DS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-ds-to-k-k-pi"
475428
[ $DOO2_SEL_DPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-dplus-to-pi-k-pi"
476429
[ $DOO2_SEL_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-lc"
477430
[ $DOO2_SEL_LB -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-lb-to-lc-pi"
478431
[ $DOO2_SEL_XIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-xic-to-p-k-pi"
479-
[ $DOO2_SEL_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-x-to-jpsi-pi-pi"
480-
[ $DOO2_SEL_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-chic-to-jpsi-gamma"
481432
[ $DOO2_SEL_LCK0SP -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-lc-to-k0s-p"
482-
[ $DOO2_SEL_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-xicc-to-p-k-pi-pi"
483433
[ $DOO2_SEL_B0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-b0-to-d-pi"
484434
[ $DOO2_SEL_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-bplus-to-d0-pi"
485435
[ $DOO2_SEL_DSTAR -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-dstar-to-d0-pi"
486436
[ $DOO2_SEL_TOXIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-to-xi-pi"
487437
[ $DOO2_SEL_XIC_XIPIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-xic-to-xi-pi-pi"
488438
# Analysis tasks
489439
[ $DOO2_TASK_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-d0"
490-
[ $DOO2_TASK_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-jpsi"
491440
[ $DOO2_TASK_DS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-ds"
492441
[ $DOO2_TASK_DPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-dplus"
493442
[ $DOO2_TASK_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-lc"
494443
[ $DOO2_TASK_LB -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-lb"
495444
[ $DOO2_TASK_XIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-xic"
496-
[ $DOO2_TASK_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-x"
497-
[ $DOO2_TASK_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-chic"
498445
[ $DOO2_TASK_LCK0SP -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-lc-to-k0s-p"
499-
[ $DOO2_TASK_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-xicc"
500446
[ $DOO2_TASK_B0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-b0"
501447
[ $DOO2_TASK_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-bplus"
502448
[ $DOO2_TASK_DSTAR -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-dstar-to-d0-pi"
@@ -505,9 +451,6 @@ function MakeScriptO2 {
505451
[ $DOO2_TREE_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-d0-to-k-pi"
506452
[ $DOO2_TREE_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-lc-to-p-k-pi"
507453
[ $DOO2_TREE_LB -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-lb-to-lc-pi"
508-
[ $DOO2_TREE_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-x-to-jpsi-pi-pi"
509-
[ $DOO2_TREE_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-xicc-to-p-k-pi-pi"
510-
[ $DOO2_TREE_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-chic-to-jpsi-gamma"
511454
[ $DOO2_TREE_BPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-bplus-to-d0-pi"
512455
[ $DOO2_TREE_LCK0SP -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-lc-to-k0s-p"
513456
[ $DOO2_TREE_TOXIPI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-to-xi-pi"
@@ -547,7 +490,6 @@ function MakeScriptO2 {
547490
fi
548491
[ $DOO2_JET_MATCH -eq 1 ] && WORKFLOWS+=" o2-analysis-je-jet-matching-mc-d0-ch"
549492
# QA
550-
[ $DOO2_REJ_ALICE3 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-qa-pid-rejection"
551493
[ $DOO2_QA_EFF -eq 1 ] && WORKFLOWS+=" o2-analysis-qa-efficiency"
552494
[ $DOO2_QA_EVTRK -eq 1 ] && WORKFLOWS+=" o2-analysis-qa-event-track"
553495
[ $DOO2_MC_VALID -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-mc-validation"
@@ -630,7 +572,6 @@ function MakeScriptPostprocess {
630572
[ $DOO2_TASK_DPLUS -eq 1 ] && OPT_COMPARE+=" dplus "
631573
[ $DOO2_TASK_LC -eq 1 ] && { OPT_COMPARE+=" lc "; [ "$INPUT_IS_MC" -eq 1 ] && OPT_COMPARE+=" lc-mc-pt lc-mc-prompt lc-mc-nonprompt lc-mc-eta lc-mc-phi "; }
632574
[ $DOO2_TASK_XIC -eq 1 ] && OPT_COMPARE+=" xic "
633-
[ $DOO2_TASK_JPSI -eq 1 ] && OPT_COMPARE+=" jpsi "
634575
# Jets
635576
[ "$INPUT_IS_MC" -eq 1 ] && SUFFIX_JET="mc" || SUFFIX_JET="data"
636577
[ $DOO2_JET_FIND -eq 1 ] && OPT_COMPARE+=" jets-${SUFFIX_JET} "
@@ -646,9 +587,7 @@ function MakeScriptPostprocess {
646587
[ $DOO2_TASK_LC -eq 1 ] && PARTICLES+=" lc "
647588
[ $DOO2_TASK_LB -eq 1 ] && PARTICLES+=" lb "
648589
[ $DOO2_TASK_XIC -eq 1 ] && PARTICLES+=" xic "
649-
[ $DOO2_TASK_JPSI -eq 1 ] && PARTICLES+=" jpsi "
650590
[ $DOO2_TASK_LCK0SP -eq 1 ] && PARTICLES+=" lc-tok0sP "
651-
[ $DOO2_TASK_XICC -eq 1 ] && PARTICLES+=" xicc-mc "
652591
[ $DOO2_TASK_B0 -eq 1 ] && PARTICLES+=" b0-mc "
653592
[ $DOO2_TASK_BPLUS -eq 1 ] && PARTICLES+=" bplus "
654593
[ "$PARTICLES" ] && POSTEXEC+=" && root -b -q -l \"$DIR_TASKS/PlotEfficiency.C(\\\"\$FileO2\\\", \\\"$PARTICLES\\\")\""

codeHF/config_tasks_run5.sh

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
#!/bin/bash
2+
# shellcheck disable=SC2034 # Ignore unused parameters.
3+
4+
DATABASE_O2="workflows_run5.yml" # Workflow specification database
5+
6+
# Activation of O2 workflows
7+
DOO2_CAND_X=0 # hf-candidate-creator-x
8+
DOO2_CAND_CHIC=0 # hf-candidate-creator-chic
9+
DOO2_CAND_XICC=0 # hf-candidate-creator-xicc
10+
# Selectors
11+
DOO2_SEL_JPSI=0 # hf-candidate-selector-jpsi
12+
DOO2_SEL_X=0 # hf-candidate-selector-x-to-jpsi-pi-pi
13+
DOO2_SEL_CHIC=0 # hf-candidate-selector-chic-to-jpsi-gamma
14+
DOO2_SEL_XICC=0 # hf-candidate-selector-xicc-to-p-k-pi-pi
15+
# Analysis tasks
16+
DOO2_TASK_JPSI=0 # hf-task-jpsi
17+
DOO2_TASK_X=0 # hf-task-x
18+
DOO2_TASK_CHIC=0 # hf-task-chic
19+
DOO2_TASK_XICC=0 # hf-task-xicc
20+
# Tree creators
21+
DOO2_TREE_X=0 # hf-tree-creator-x-to-jpsi-pi-pi
22+
DOO2_TREE_CHIC=0 # hf-tree-creator-chic-to-jpsi-gamma
23+
DOO2_TREE_XICC=0 # hf-tree-creator-xicc-to-p-k-pi-pi
24+
# QA
25+
DOO2_REJ_ALICE3=0 # hf-task-qa-pid-rejection
26+
27+
# Selection cuts
28+
APPLYCUTS_JPSI=0 # Apply J/ψ selection cuts.
29+
APPLYCUTS_X=0 # Apply X selection cuts.
30+
APPLYCUTS_CHIC=0 # Apply χc(1p) selection cuts.
31+
APPLYCUTS_XICC=0 # Apply Ξcc selection cuts.
32+
33+
####################################################################################################
34+
35+
# Modify the JSON file.
36+
function AdjustJson {
37+
# Enable J/ψ selection.
38+
if [ $APPLYCUTS_JPSI -eq 1 ]; then
39+
MsgWarn "Using J/ψ selection cuts"
40+
ReplaceString "\"selectionFlagJpsi\": \"0\"" "\"selectionFlagJpsi\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
41+
fi
42+
43+
# Enable X(3872) selection.
44+
if [ $APPLYCUTS_X -eq 1 ]; then
45+
MsgWarn "Using X(3872) selection cuts"
46+
ReplaceString "\"selectionFlagX\": \"0\"" "\"selectionFlagX\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
47+
fi
48+
49+
# Enable χc(1p) selection.
50+
if [ $APPLYCUTS_CHIC -eq 1 ]; then
51+
MsgWarn "Using χc(1p) selection cuts"
52+
ReplaceString "\"selectionFlagChic\": \"0\"" "\"selectionFlagChic\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
53+
fi
54+
55+
# Enable Ξcc selection.
56+
if [ $APPLYCUTS_XICC -eq 1 ]; then
57+
MsgWarn "Using Ξcc selection cuts"
58+
ReplaceString "\"selectionFlagXicc\": \"0\"" "\"selectionFlagXicc\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON."
59+
fi
60+
}
61+
62+
# Generate the O2 script containing the full workflow specification.
63+
function MakeScriptO2 {
64+
WORKFLOWS=""
65+
# Vertexing
66+
[ $DOO2_CAND_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-x"
67+
[ $DOO2_CAND_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-chic"
68+
[ $DOO2_CAND_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-xicc"
69+
# Selectors
70+
[ $DOO2_SEL_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-jpsi${SUFFIX_RUN}"
71+
[ $DOO2_SEL_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-x-to-jpsi-pi-pi"
72+
[ $DOO2_SEL_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-chic-to-jpsi-gamma"
73+
[ $DOO2_SEL_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-selector-xicc-to-p-k-pi-pi"
74+
# Analysis tasks
75+
[ $DOO2_TASK_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-jpsi"
76+
[ $DOO2_TASK_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-x"
77+
[ $DOO2_TASK_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-chic"
78+
[ $DOO2_TASK_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-xicc"
79+
# Tree creators
80+
[ $DOO2_TREE_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-x-to-jpsi-pi-pi"
81+
[ $DOO2_TREE_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-chic-to-jpsi-gamma"
82+
[ $DOO2_TREE_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-xicc-to-p-k-pi-pi"
83+
# QA
84+
[ $DOO2_REJ_ALICE3 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-qa-pid-rejection"
85+
}
86+
87+
function MakeScriptPostprocess {
88+
# Compare AliPhysics and O2 histograms.
89+
[[ $DOALI -eq 1 && $DOO2 -eq 1 ]] && {
90+
OPT_COMPARE=""
91+
[ $DOO2_TASK_JPSI -eq 1 ] && OPT_COMPARE+=" jpsi "
92+
}
93+
# Plot particle reconstruction efficiencies.
94+
[[ $DOO2 -eq 1 && $INPUT_IS_MC -eq 1 ]] && {
95+
PARTICLES=""
96+
[ $DOO2_TASK_JPSI -eq 1 ] && PARTICLES+=" jpsi "
97+
[ $DOO2_TASK_XICC -eq 1 ] && PARTICLES+=" xicc-mc "
98+
}
99+
}

0 commit comments

Comments
 (0)