Skip to content

Commit 6c9dfae

Browse files
davidrohrktf
authored andcommitted
Full system test: Add PRINT_WORKFLOW_ONLY and SPLITDIGITRD options
1 parent 0cc206d commit 6c9dfae

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ fi
142142
# DPL run binary
143143
WORKFLOW+="o2-dpl-run $ARGS_ALL $GLOBALDPLOPT --run"
144144

145-
# Execute the command we have assembled
146-
#echo Running workflow:
147-
#echo $WORKFLOW | sed "s/| */|\n/g"
148-
#echo
149-
eval $WORKFLOW
145+
if [ "0$PRINT_WORKFLOW_ONLY" == "01" ]; then
146+
echo Workflow command:
147+
echo $WORKFLOW | sed "s/| */|\n/g"
148+
else
149+
# Execute the command we have assembled
150+
eval $WORKFLOW
151+
fi

prodtests/full_system_test.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ NTIMEFRAMES=${NTIMEFRAMES:-1} # Number of time frames to process
3131
TFDELAY=${TFDELAY:-100} # Delay in seconds between publishing time frames
3232
NOMCLABELS="--disable-mc"
3333
O2SIMSEED=${O2SIMSEED:--1}
34+
SPLITTRDDIGI=${SPLITTRDDIGI:-1}
3435

3536
# allow skipping
3637
JOBUTILS_SKIPDONE=ON
@@ -47,6 +48,7 @@ HOST=`hostname`
4748
TAG="conf=${CONFIG},host=${HOST}${ALIDISTCOMMIT:+,alidist=$ALIDISTCOMMIT}${O2COMMIT:+,o2=$O2COMMIT}"
4849
echo "versions,${TAG} alidist=\"${ALIDISTCOMMIT}\",O2=\"${O2COMMIT}\" " > ${METRICFILE}
4950

51+
GLOBALDPLOPT="-b" # --monitoring-backend no-op:// is currently removed due to https://alice.its.cern.ch/jira/browse/O2-1887
5052

5153
ulimit -n 4096 # Make sure we can open sufficiently many files
5254
[ $? == 0 ] || (echo Failed setting ulimit && exit 1)
@@ -58,10 +60,15 @@ QED2HAD=$(awk "BEGIN {printf \"%.2f\",`grep xSectionQED qedgenparam.ini | cut -d
5860
echo "Obtained ratio of QED to hadronic x-sections = $QED2HAD" >> qedsim.log
5961
cd ..
6062

61-
GLOBALDPLOPT="-b" # --monitoring-backend no-op:// is currently removed due to https://alice.its.cern.ch/jira/browse/O2-1887
63+
if [ $SPLITTRDDIGI == "1" ]; then
64+
DIGITRDOPT="--skipDet TRD"
65+
else
66+
DIGITRDOPT="--configKeyValues \"TRDSimParams.digithreads=${NJOBS}\""
67+
fi
68+
6269
taskwrapper sim.log o2-sim --seed $O2SIMSEED -n $NEvents --skipModules ZDC --configKeyValues "Diamond.width[2]=6." -g pythia8hi -j $NJOBS
63-
taskwrapper digi.log o2-sim-digitizer-workflow -n $NEvents --simPrefixQED qed/o2sim --qed-x-section-ratio ${QED2HAD} ${NOMCLABELS} --firstOrbit 0 --firstBC 0 --skipDet TRD --tpc-lanes $((NJOBS < 36 ? NJOBS : 36)) --shm-segment-size $SHMSIZE ${GLOBALDPLOPT}
64-
taskwrapper digiTRD.log o2-sim-digitizer-workflow -n $NEvents ${NOMCLABELS} --firstOrbit 0 --firstBC 0 --onlyDet TRD --shm-segment-size $SHMSIZE ${GLOBALDPLOPT} --incontext collisioncontext.root --configKeyValues "TRDSimParams.digithreads=${NJOBS}"
70+
taskwrapper digi.log o2-sim-digitizer-workflow -n $NEvents --simPrefixQED qed/o2sim --qed-x-section-ratio ${QED2HAD} ${NOMCLABELS} --firstOrbit 0 --firstBC 0 --tpc-lanes $((NJOBS < 36 ? NJOBS : 36)) --shm-segment-size $SHMSIZE ${GLOBALDPLOPT} ${DIGITRDOPT}
71+
[ $SPLITTRDDIGI == "1" ] && taskwrapper digiTRD.log o2-sim-digitizer-workflow -n $NEvents ${NOMCLABELS} --firstOrbit 0 --firstBC 0 --onlyDet TRD --shm-segment-size $SHMSIZE ${GLOBALDPLOPT} --incontext collisioncontext.root --configKeyValues "TRDSimParams.digithreads=${NJOBS}"
6572
mkdir -p raw
6673
taskwrapper itsraw.log o2-its-digi2raw --file-for link --configKeyValues '"HBFUtils.nHBFPerTF=128;HBFUtils.orbitFirst=0"' -o raw/ITS
6774
taskwrapper mftraw.log o2-mft-digi2raw --file-for link --configKeyValues '"HBFUtils.nHBFPerTF=128;HBFUtils.orbitFirst=0"' -o raw/MFT

0 commit comments

Comments
 (0)