Skip to content

Commit ca77784

Browse files
committed
Add Kine publisher test
1 parent 970ed8e commit ca77784

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

prodtests/full_system_test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ taskwrapper collcontext.log o2-steer-colcontexttool \
167167
SIMOPTKEY+="GenTPCLoopers.colsys=${BEAMTYPE};"
168168

169169
taskwrapper sim.log o2-sim ${FST_BFIELD+--field=}${FST_BFIELD} --vertexMode kCollContext --seed $O2SIMSEED -n $NEvents --configKeyValues "\"$SIMOPTKEY\"" -g ${FST_GENERATOR} -e ${FST_MC_ENGINE} -j $NJOBS --run ${RUNNUMBER} -o o2sim --fromCollContext collisioncontext.root:o2sim
170+
# Test MCTracks to AO2D conversion tool
171+
taskwrapper kine2aod.log "o2-sim-kine-publisher -b --kineFileName o2sim --aggregate-timeframe $NEvents | o2-sim-mctracks-to-aod -b --aod-writer-keep dangling | o2-analysis-mctracks-to-aod-simple-task -b"
172+
if [[ ! -s AnalysisResults_trees.root ]] || [[ ! -s AnalysisResults.root ]]; then
173+
echo "Error: AnalysisResults_trees.root (AO2D from Kine file) or AnalysisResults.root (simple analysis task output) missing or empty"
174+
exit 1
175+
fi
176+
170177
if [[ $DO_EMBEDDING == 1 ]]; then
171178
taskwrapper embed.log o2-sim ${FST_BFIELD+--field=}${FST_BFIELD} -j $NJOBS --run ${RUNNUMBER} -n $NEvents -g pythia8pp -e ${FST_MC_ENGINE} -o sig --configKeyValues ${FST_EMBEDDING_CONFIG} --embedIntoFile o2sim_MCHeader.root
172179
fi

0 commit comments

Comments
 (0)