Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HF: Add hf-tree-creator-lc-to-k0s-p #418

Merged
merged 9 commits into from
Oct 20, 2023
11 changes: 10 additions & 1 deletion codeHF/config_tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ DOO2_TREE_X=0 # hf-tree-creator-x-to-jpsi-pi-pi
DOO2_TREE_XICC=0 # hf-tree-creator-xicc-to-p-k-pi-pi
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
# Correlations
DOO2_CORR_D0D0BAR_DATA=0 # hf-correlator-d0-d0bar
DOO2_CORR_D0D0BAR_MCREC=0 # hf-correlator-d0-d0bar_mc-rec
Expand Down Expand Up @@ -192,6 +193,7 @@ function AdjustJson {
ReplaceString "\"processMc\": \"true\"" "\"processMc\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
ReplaceString "\"processMC\": \"true\"" "\"processMC\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
ReplaceString "\"isMC\": \"true\"" "\"isMC\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
ReplaceString "\"processData\": \"false\"" "\"processData\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
fi

# event-selection
Expand All @@ -215,6 +217,12 @@ function AdjustJson {
ReplaceString "\"doCutQuality\": \"true\"" "\"doCutQuality\": \"false\"" "$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."
ReplaceString "\"processNoCascades\": \"true\"" "\"processNoCascades\": \"false\"" "$JSON" || ErrExit "Failed to edit $JSON."
fi

# timestamp-task
if [[ "$INPUT_IS_MC" -eq 1 && "$INPUT_RUN" -eq 2 ]]; then
ReplaceString "\"isRun2MC\": \"false\"" "\"isRun2MC\": \"true\"" "$JSON" || ErrExit "Failed to edit $JSON."
Expand Down Expand Up @@ -377,7 +385,7 @@ function MakeScriptO2 {
SUFFIX_SKIM_MASK="_skimX" # suffix mask to be replaced in the workflow names
SUFFIX_SKIM="" # the actual suffix to be used instead of the mask
# Λc → K0S p cascade reconstruction
[[ $DOO2_CAND_CASC -eq 1 || $DOO2_SEL_LCK0SP -eq 1 || $DOO2_TASK_LCK0SP -eq 1 ]] && SUFFIX_SKIM+="_v0"
[[ $DOO2_CAND_CASC -eq 1 || $DOO2_SEL_LCK0SP -eq 1 || $DOO2_TASK_LCK0SP -eq 1 || $DOO2_TREE_LCK0SP -eq 1 ]] && SUFFIX_SKIM+="_v0"

# 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 Down Expand Up @@ -462,6 +470,7 @@ function MakeScriptO2 {
[ $DOO2_TREE_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-xicc-to-p-k-pi-pi"
[ $DOO2_TREE_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-chic-to-jpsi-gamma"
[ $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"
# Jets
if [ "$INPUT_IS_MC" -eq 1 ]; then
[ $DOO2_JET_FIND -eq 1 ] && WORKFLOWS+=" o2-analysis-je-jet-finder-d0-mcd-charged o2-analysis-je-jet-finder-d0-mcp-charged"
Expand Down
17 changes: 12 additions & 5 deletions codeHF/dpl-config_run3.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,11 @@
"minParamChange": "0.001",
"minRelChi2Change": "0.9",
"useAbsDCA": "true",
"useWeightedFinalPCA": "true",
"useWeightedFinalPCA": "false",
"doCutQuality": "true",
"tpcRefitBach": "true",
"tpcRefitBach": "false",
"nCrossedRowsMinBach": "50",
"tpcRefitV0Daugh": "true",
"tpcRefitV0Daugh": "false",
"nCrossedRowsMinV0Daugh": "50",
"etaMinV0Daugh": "-99999",
"etaMaxV0Daugh": "1.1",
Expand Down Expand Up @@ -511,7 +511,7 @@
"hf-candidate-creator-cascade": {
"propagateToPCA": "true",
"useAbsDCA": "true",
"useWeightedFinalPCA": "true",
"useWeightedFinalPCA": "false",
"maxR": "200",
"maxDZIni": "4",
"minParamChange": "0.001",
Expand Down Expand Up @@ -2320,11 +2320,18 @@
"hf-tree-creator-lc-to-p-k-pi": {
"downSampleBkgFactor": "1",
"processMc": "true",
"processData": "true"
"processData": "false"
},
"hf-tree-creator-bplus-to-d0-pi": {
"isSignal": "1"
},
"hf-tree-creator-lc-to-k0s-p": {
"fillCandidateLiteTable": "false",
"downSampleBkgFactor": "1",
"ptMaxForDownSample": "24",
"processMc": "true",
"processData": "false"
},
"hf-task-flow": {
"zVertexMax": "10",
"etaTrackAssocMax": "0.8",
Expand Down
2 changes: 1 addition & 1 deletion codeHF/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ workflows:

o2-analysis-hf-tree-creator-lc-to-k0s-p:
dependencies: o2-analysis-hf-candidate-selector-lc-to-k0s-p
tables: [HFCANDCASCFull, HFCANDCASCFullE, HFCANDCASCFullP]
tables: [HFCANDCASCLITE, HFCANDCASCFULL, HFCANDCASCFULLE, HFCANDCASCFULLP]

o2-analysis-hf-tree-creator-bplus-to-d0-pi:
requires_mc: yes
Expand Down