Skip to content

Commit

Permalink
Fix dummy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vkucera committed May 24, 2024
1 parent 300aeed commit 040d94b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/config_input_dummy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ NJOBSPARALLEL_O2=$(python3 -c "print(min(10, round($(nproc) / 2)))")
# INPUT_PARENT_MASK="" # Path replacement mask for the input directory of parent files in case of linked derived O2 input. Set to ";" if no replacement needed.
# JSON="dpl-config.json" # O2 device configuration

# O2 device configuration
JSON="dpl-config_dummy.json"

INPUT_BASE="/data"

case $INPUT_CASE in
Expand Down
20 changes: 20 additions & 0 deletions config/config_tasks_dummy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ MAKE_GRAPH=0 # Make topology graph.
# Trigger selection
DOO2_EVTSEL=1 # event-selection
DOO2_TRACKSEL=1 # trackselection
# Converters
DOO2_CONV_MC=0 # mc-converter
DOO2_CONV_FDD=0 # fdd-converter
DOO2_CONV_COLL=0 # collision-converter
DOO2_CONV_ZDC=1 # zdc-converter
DOO2_CONV_BC=1 # bc-converter
DOO2_CONV_TRKEX=1 # tracks-extra-converter
DOO2_CONV_V0=0 # v0converter

SAVETREES=0 # Save O2 tables to trees.

Expand Down Expand Up @@ -103,9 +111,21 @@ function MakeScriptO2 {
SUFFIX_RUN_MASK="_runX" # suffix mask to be replaced in the workflow names
SUFFIX_RUN="_run${INPUT_RUN}" # the actual suffix to be used instead of the mask

# Suffix to distinguish the workflows that run on derived data with parent access (skims)
SUFFIX_DER_MASK="_derX" # suffix mask to be replaced in the workflow names
[ "$INPUT_PARENT_MASK" ] && SUFFIX_DER="_derived" || SUFFIX_DER="" # the actual suffix to be used instead of the mask

WORKFLOWS=""
[ $DOO2_EVTSEL -eq 1 ] && WORKFLOWS+=" o2-analysis-event-selection"
[ $DOO2_TRACKSEL -eq 1 ] && WORKFLOWS+=" o2-analysis-trackselection${SUFFIX_RUN}"
# Converters
[ $DOO2_CONV_MC -eq 1 ] && WORKFLOWS+=" o2-analysis-mc-converter"
[ $DOO2_CONV_FDD -eq 1 ] && WORKFLOWS+=" o2-analysis-fdd-converter"
[ $DOO2_CONV_COLL -eq 1 ] && WORKFLOWS+=" o2-analysis-collision-converter"
[ $DOO2_CONV_ZDC -eq 1 ] && WORKFLOWS+=" o2-analysis-zdc-converter"
[ $DOO2_CONV_BC -eq 1 ] && WORKFLOWS+=" o2-analysis-bc-converter"
[ $DOO2_CONV_TRKEX -eq 1 ] && WORKFLOWS+=" o2-analysis-tracks-extra-converter"
[ $DOO2_CONV_V0 -eq 1 ] && WORKFLOWS+=" o2-analysis-v0converter"

# Translate options into arguments of the generating script.
OPT_MAKECMD=""
Expand Down
14 changes: 14 additions & 0 deletions config/dpl-config_dummy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"internal-dpl-aod-reader": {
"time-limit": "0",
"orbit-offset-enumeration": "0",
"orbit-multiplier-enumeration": "0",
"start-value-enumeration": "0",
"end-value-enumeration": "-1",
"step-value-enumeration": "1",
"aod-file": "@list_o2.txt",
"aod-file-private": "@list_o2.txt",
"aod-parent-base-path-replacement": "PARENT_PATH_MASK",
"aod-parent-access-level": 1
}
}

0 comments on commit 040d94b

Please sign in to comment.