Skip to content

Commit c1f05c0

Browse files
committed
Add option to store CTF after full system test
1 parent b0ba16b commit c1f05c0

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

prodtests/full-system-test/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ The following options exist (some of the options are not used in all scripts, an
4141
* `HOSTMEMSIZE`: Size of allocated host memory for GPU reconstruction (0 = default).
4242
* For `GPUTYPE = CPU`: TPC Tracking scratch memory size. (Default 0 -> dynamic allocation.)
4343
* Otherwise : Size of page-locked host memory for GPU processing. (Defauls 0 -> 1 GB.)
44+
* `SAVECTF`: Save the CTF to a root file.
4445
* `CREATECTFDICT`: Create CTF dictionary.
4546
* 0: Read `ctf_dictionary.root` as input.
4647
* 1: Create `ctf_dictionary.root`. Note that this was already done automatically if the raw data was simulated with `full_system_test.sh`.

prodtests/full-system-test/dpl-workflow.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ else
2828
CMD_INPUT="o2-raw-file-reader-workflow $ARGS_ALL --configKeyValues $CMD_X --delay $TFDELAY --loop $NTIMEFRAMES --max-tf 0 --input-conf rawAll.cfg"
2929
fi
3030

31-
if [ $CREATECTFDICT == 1 ]; then
32-
CMD_DICT="o2-ctf-writer-workflow $ARGS_ALL --output-type dict --save-dict-after 1 --onlyDet ITS,MFT,TPC,TOF,FT0,MID,EMC,PHS"
33-
else
34-
CMD_DICT=cat
31+
CMD_CTF_TYPE="none"
32+
if [ $CREATECTFDICT == 1 ] && [ $SAVECTF == 1 ]; then CMD_CTF_TYPE="both"; fi
33+
if [ $CREATECTFDICT == 1 ] && [ $SAVECTF == 0 ]; then CMD_CTF_TYPE="dict"; fi
34+
if [ $CREATECTFDICT == 0 ] && [ $SAVECTF == 1 ]; then CMD_CTF_TYPE="ctf"; fi
35+
CMD_CTF="o2-ctf-writer-workflow $ARGS_ALL --output-type $CMD_CTF_TYPE --onlyDet ITS,MFT,TPC,TOF,FT0,MID,EMC,PHS"
36+
if [ $CREATECTFDICT == 1 ] && [ $; then
37+
CMD_CTF+=" --save-dict-after 1"
3538
fi
3639

3740
if [ $SYNCMODE == 1 ]; then
@@ -101,5 +104,5 @@ o2-emcal-entropy-encoder-workflow $ARGS_ALL |\
101104
o2-tof-compressor $ARGS_ALL | \
102105
o2-tof-reco-workflow $ARGS_ALL --configKeyValues "HBFUtils.nHBFPerTF=$NHBPERTF" --input-type raw --output-type ctf,clusters,matching-info --disable-root-output $DISABLE_MC | \
103106
o2-tpc-scdcalib-interpolation-workflow $ARGS_ALL --disable-root-output --disable-root-input | \
104-
$CMD_DICT | \
107+
$CMD_CTF | \
105108
o2-dpl-run $ARGS_ALL $GLOBALDPLOPT --run

prodtests/full-system-test/setenv.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if [ -z "$DDSHMSIZE" ]; then export DDSHMSIZE=$(( 32 << 10 )); fi # Size of
1616
if [ -z "$GPUMEMSIZE" ]; then export GPUMEMSIZE=$(( 13 << 30 )); fi # Size of allocated GPU memory (if GPUTYPE != CPU)
1717
if [ -z "$HOSTMEMSIZE" ]; then export HOSTMEMSIZE=0; fi # Size of allocated host memory for GPU reconstruction (0 = default)
1818
if [ -z "$CREATECTFDICT" ]; then export CREATECTFDICT=0; fi # Create CTF dictionary
19+
if [ -z "$SAVECTF" ]; then export SAVECTF=0; fi # Save the CTF to a ROOT file
1920
if [ -z "$SYNCMODE" ]; then export SYNCMODE=0; fi # Run only reconstruction steps of the synchronous reconstruction
2021
if [ -z "$NUMAID" ]; then export NUMAID=0; fi # SHM segment id to use for shipping data as well as set of GPUs to use (use 0 / 1 for 2 NUMA domains)
2122
if [ -z "$NUMAGPUIDS" ]; then export NUMAGPUIDS=0; fi # NUMAID-aware GPU id selection

0 commit comments

Comments
 (0)