diff --git a/codeHF/config_tasks.sh b/codeHF/config_tasks.sh index 831a6c34..f0d58144 100644 --- a/codeHF/config_tasks.sh +++ b/codeHF/config_tasks.sh @@ -28,6 +28,8 @@ DATABASE_O2="workflows.yml" MAKE_GRAPH=0 # Make topology graph. # Activation of O2 workflows +# MC conversion +DOO2_MCCONV=1 # mc-converter # Trigger selection DOO2_TRIGSEL=0 # event-selection # QA @@ -45,6 +47,7 @@ DOO2_CAND_2PRONG=0 # hf-candidate-creator-2prong DOO2_CAND_3PRONG=0 # hf-candidate-creator-3prong DOO2_CAND_CASC=0 # hf-candidate-creator-cascade DOO2_CAND_X=0 # hf-candidate-creator-x +DOO2_CAND_LB=0 # hf-candidate-creator-lb DOO2_CAND_CHIC=0 # hf-candidate-creator-chic DOO2_CAND_XICC=0 # hf-candidate-creator-xicc DOO2_CAND_BPLUS=0 # hf-candidate-creator-bplus @@ -52,6 +55,7 @@ DOO2_CAND_BPLUS=0 # hf-candidate-creator-bplus DOO2_SEL_D0=0 # hf-d0-candidate-selector DOO2_SEL_DPLUS=0 # hf-dplus-topikpi-candidate-selector DOO2_SEL_LC=0 # hf-lc-candidate-selector +DOO2_SEL_LB=0 # hf-lb-tolcpi-candidate-selector DOO2_SEL_XIC=0 # hf-xic-topkpi-candidate-selector DOO2_SEL_JPSI=0 # hf-jpsi-candidate-selector DOO2_SEL_X=0 # hf-x-tojpsipipi-candidate-selector @@ -63,6 +67,7 @@ DOO2_SEL_BPLUS=0 # hf-bplus-tod0pi-candidate-selector DOO2_TASK_D0=1 # hf-task-d0 DOO2_TASK_DPLUS=0 # hf-task-dplus DOO2_TASK_LC=0 # hf-task-lc +DOO2_TASK_LB=0 # hf-task-lb DOO2_TASK_XIC=0 # hf-task-xic DOO2_TASK_JPSI=0 # hf-task-jpsi DOO2_TASK_X=0 # hf-task-x @@ -73,6 +78,7 @@ DOO2_TASK_BPLUS=0 # hf-task-bplus # Tree creators DOO2_TREE_D0=0 # hf-tree-creator-d0-tokpi DOO2_TREE_LC=0 # hf-tree-creator-lc-topkpi +DOO2_TREE_LB=0 # hf-tree-creator-lb-tolcpi DOO2_TREE_X=0 # hf-tree-creator-x-tojpsipipi DOO2_TREE_XICC=0 # hf-tree-creator-xicc-topkpipi DOO2_TREE_CHIC=0 # hf-tree-creator-chic-tojpsigamma @@ -88,6 +94,7 @@ DOO2_DPLUSDMINUS_MCGEN=0 # hf-correlator-dplusdminus-mc-gen APPLYCUTS_D0=0 # Apply D0 selection cuts. APPLYCUTS_DPLUS=0 # Apply D+ selection cuts. APPLYCUTS_LC=0 # Apply Λc selection cuts. +APPLYCUTS_LB=0 # Apply Λb selection cuts. APPLYCUTS_XIC=0 # Apply Ξc selection cuts. APPLYCUTS_JPSI=0 # Apply J/ψ selection cuts. APPLYCUTS_X=0 # Apply X selection cuts. @@ -182,6 +189,12 @@ function AdjustJson { ReplaceString "\"d_selectionFlagDPlus\": \"0\"" "\"d_selectionFlagDPlus\": \"7\"" "$JSON" || ErrExit "Failed to edit $JSON." fi + # Enable Λb selection. + if [ $APPLYCUTS_LB -eq 1 ]; then + MsgWarn "\nUsing Λb selection cuts" + ReplaceString "\"d_selectionFlagLb\": \"0\"" "\"d_selectionFlagLb\": \"1\"" "$JSON" || ErrExit "Failed to edit $JSON." + fi + # Enable Λc selection. if [ $APPLYCUTS_LC -eq 1 ]; then MsgWarn "\nUsing Λc selection cuts" @@ -235,6 +248,8 @@ function MakeScriptO2 { [ "$ISALICE3" -eq 1 ] && SUFFIX_ALICE3="-alice3" || SUFFIX_ALICE3="" WORKFLOWS="" + # MC converter to version 001 of mcparticles + [ $DOO2_MCCONV -eq 1 ] && WORKFLOWS+=" o2-analysis-mc-converter" # Trigger selection [ $DOO2_TRIGSEL -eq 1 ] && WORKFLOWS+=" o2-analysis-event-selection" # QA @@ -253,6 +268,7 @@ function MakeScriptO2 { [ $DOO2_CAND_2PRONG -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-2prong" [ $DOO2_CAND_3PRONG -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-3prong" [ $DOO2_CAND_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-x" + [ $DOO2_CAND_LB -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-lb" [ $DOO2_CAND_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-chic" [ $DOO2_CAND_CASC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-cascade" [ $DOO2_CAND_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-candidate-creator-xicc" @@ -263,6 +279,7 @@ function MakeScriptO2 { [ $DOO2_SEL_JPSI -eq 1 ] && WORKFLOWS+=" ${WF_SEL_JPSI}${SUFFIX_ALICE3}" [ $DOO2_SEL_DPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-dplus-topikpi-candidate-selector" [ $DOO2_SEL_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-lc-candidate-selector" + [ $DOO2_SEL_LB -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-lb-tolcpi-candidate-selector" [ $DOO2_SEL_XIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-xic-topkpi-candidate-selector" [ $DOO2_SEL_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-x-tojpsipipi-candidate-selector" [ $DOO2_SEL_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-chic-tojpsigamma-candidate-selector" @@ -274,6 +291,7 @@ function MakeScriptO2 { [ $DOO2_TASK_JPSI -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-jpsi" [ $DOO2_TASK_DPLUS -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-dplus" [ $DOO2_TASK_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-lc" + [ $DOO2_TASK_LB -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-lb" [ $DOO2_TASK_XIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-xic" [ $DOO2_TASK_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-x" [ $DOO2_TASK_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-task-chic" @@ -291,6 +309,7 @@ function MakeScriptO2 { # Tree creators [ $DOO2_TREE_D0 -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-d0-tokpi" [ $DOO2_TREE_LC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-lc-topkpi" + [ $DOO2_TREE_LB -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-lb-tolcpi" [ $DOO2_TREE_X -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-x-tojpsipipi" [ $DOO2_TREE_XICC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-xicc-topkpipi" [ $DOO2_TREE_CHIC -eq 1 ] && WORKFLOWS+=" o2-analysis-hf-tree-creator-chic-tojpsigamma" @@ -363,6 +382,7 @@ function MakeScriptPostprocess { [ $DOO2_TASK_D0 -eq 1 ] && { OPT_COMPARE+=" d0 "; [ "$ISMC" -eq 1 ] && OPT_COMPARE+=" d0-mc "; } [ $DOO2_TASK_DPLUS -eq 1 ] && OPT_COMPARE+=" dplus " [ $DOO2_TASK_LC -eq 1 ] && { OPT_COMPARE+=" lc "; [ "$ISMC" -eq 1 ] && OPT_COMPARE+=" lc-mc "; } + [ $DOO2_TASK_LB -eq 1 ] && { OPT_COMPARE+=" lb "; [ "$ISMC" -eq 1 ] && OPT_COMPARE+=" lb-mc "; } [ $DOO2_TASK_XIC -eq 1 ] && OPT_COMPARE+=" xic " [ $DOO2_TASK_JPSI -eq 1 ] && OPT_COMPARE+=" jpsi " [ "$OPT_COMPARE" ] && POSTEXEC+=" && root -b -q -l \"$DIR_TASKS/Compare.C(\\\"\$FileO2\\\", \\\"\$FileAli\\\", \\\"$OPT_COMPARE\\\", $DORATIO)\"" @@ -373,6 +393,7 @@ function MakeScriptPostprocess { [ $DOO2_TASK_D0 -eq 1 ] && PARTICLES+=" d0 " [ $DOO2_TASK_DPLUS -eq 1 ] && PARTICLES+=" dplus " [ $DOO2_TASK_LC -eq 1 ] && PARTICLES+=" lc " + [ $DOO2_TASK_LB -eq 1 ] && PARTICLES+=" lb " [ $DOO2_TASK_XIC -eq 1 ] && PARTICLES+=" xic " [ $DOO2_TASK_JPSI -eq 1 ] && PARTICLES+=" jpsi " [ $DOO2_TASK_LCK0SP -eq 1 ] && PARTICLES+=" lc-tok0sP " diff --git a/codeHF/dpl-config_run5_hf.json b/codeHF/dpl-config_run5_hf.json index edae0afd..7aa01000 100644 --- a/codeHF/dpl-config_run5_hf.json +++ b/codeHF/dpl-config_run5_hf.json @@ -545,6 +545,50 @@ ] } }, + "hf-lb-tolcpi-candidate-selector": { + "d_pTCandMin": "3.", + "d_pTCandMax": "50.", + "d_pidTPCMinpT": "1000.", + "d_pidTPCMaxpT": "2000.", + "d_pidTOFMinpT": "0.", + "d_pidTOFMaxpT": "10.", + "d_TPCNClsFindablePIDCut": "-9999", + "d_nSigmaTPC": "1000.", + "d_nSigmaTOF": "3.", + "pTBins": { + "values": [ + "0", + "0.5", + "1", + "2", + "3", + "4", + "5", + "7", + "10", + "13", + "16", + "20", + "24" + ] + }, + "Lb_to_lcpi_cuts": { + "values": [ + [ "1.", "0.98", "0.0001", "0.003", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.98", "0.0001", "0.003", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.98", "0.0001", "0.003", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.98", "0.0001", "0.003", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.99", "0.0001", "0.003", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.994", "0.0001", "0.003", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.994", "0.0001", "0.003", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.994", "0.0001", "0.003", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.994", "0.0001", "0.002", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.994", "0.0001", "0.002", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.994", "0.0001", "0.002", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ], + [ "1.", "0.994", "0.0001", "0.002", "0.0015", "1.0", "0.5", "0.05", "0.05", "0.02", "0.5", "0.8" ] + ] + } + }, "hf-task-d0": { "cutYCandMax": "0.8", "d_selectionFlagD0": "0", diff --git a/codeHF/workflows.yml b/codeHF/workflows.yml index aedc166b..2aedb1dc 100644 --- a/codeHF/workflows.yml +++ b/codeHF/workflows.yml @@ -81,6 +81,14 @@ workflows: default: [HFCANDBPLUSBASE, HFCANDBPLUSEXT] mc: [HFCANDBPMCREC, HFCANDBPMCGEN] + o2-analysis-hf-candidate-creator-lb: + <<: *cand_creator + dependencies: + - o2-analysis-hf-lc-candidate-selector + tables: + default: [HFCANDLBBASE, HFCANLBXEXT] + mc: [HFCANDLBMCREC, HFCANDLBMCGEN] + # Selectors o2-analysis-hf-d0-candidate-selector: &selector_2prong @@ -110,6 +118,11 @@ workflows: <<: *selector_3prong tables: HFSELLCCAND + o2-analysis-hf-lb-tolcpi-candidate-selector: + <<: *selector_3prong + dependencies: o2-analysis-hf-candidate-creator-lb + tables: HFSELLBCAND + o2-analysis-hf-xic-topkpi-candidate-selector: <<: *selector_3prong tables: HFSELXICCAND @@ -174,6 +187,12 @@ workflows: mc: "--doMC" dependencies: o2-analysis-hf-lc-tok0sp-candidate-selector + o2-analysis-hf-task-lb: + options: + mc: "--doMC" + dependencies: [o2-analysis-hf-lb-tolcpi-candidate-selector, o2-analysis-trackextension-alice3, o2-analysis-alice3-centrality] + + o2-analysis-hf-task-xicc: options: mc: "--doMC" @@ -209,6 +228,11 @@ workflows: dependencies: o2-analysis-hf-lc-candidate-selector tables: [HFCANDP3Full, HFCANDP3FullE, HFCANDP3FullP] + o2-analysis-hf-tree-creator-lb-tolcpi: + requires_mc: yes + dependencies: [o2-analysis-hf-lb-tolcpi-candidate-selector, o2-analysis-trackextension-alice3, o2-analysis-trackselection] + tables: HFCANDLbFull + o2-analysis-hf-tree-creator-x-tojpsipipi: requires_mc: yes dependencies: o2-analysis-hf-x-tojpsipipi-candidate-selector