Skip to content

Commit 51e8f7e

Browse files
authored
set parallel world in test script + toggle ideal ITS in anchored simulation (#1908)
* set pw in test script + toggle ideal ITS in anchored simulation * remove duplicated flag for pw activation * fix string check * fix variable declaration * fix check
1 parent 22cc6ac commit 51e8f7e

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

MC/run/ANCHOR/anchorMC.sh

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -312,20 +312,33 @@ if [ "${ISEXCLUDED}" ]; then
312312
fi
313313

314314
# -- Create aligned geometry using ITS ideal alignment to avoid overlaps in geant
315-
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
316-
TIMESTAMP_IDEAL_MC=1
317-
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
318-
CCDB_RC="${?}"
319-
if [ ! "${CCDB_RC}" == "0" ]; then
320-
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
321-
exit ${CCDB_RC}
315+
ENABLEPW=0
316+
if [[ ${remainingargs} == *"GeometryManagerParam.useParallelWorld=1"* ]]; then
317+
ENABLEPW=1
318+
fi
319+
320+
if [ "${ENABLEPW}" == "0" ]; then
321+
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
322+
TIMESTAMP_IDEAL_MC=1
323+
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
324+
CCDB_RC="${?}"
325+
if [ ! "${CCDB_RC}" == "0" ]; then
326+
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
327+
exit ${CCDB_RC}
328+
fi
322329
fi
323330

324331
# TODO This can potentially be removed or if needed, should be taken over by o2dpg_sim_workflow_anchored.py and O2_dpg_workflow_runner.py
325-
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" --condition-remap=file://${ALICEO2_CCDB_LOCALCACHE}=ITS/Calib/Align -b --run
332+
if [ "${ENABLEPW}" == "0" ]; then
333+
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" --condition-remap=file://${ALICEO2_CCDB_LOCALCACHE}=ITS/Calib/Align -b --run
334+
else
335+
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" -b --run
336+
fi
326337
mkdir -p $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned
327338
ln -s -f $PWD/o2sim_geometry-aligned.root $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned/snapshot.root
328-
[[ -f $PWD/its_GeometryTGeo.root ]] && mkdir -p $ALICEO2_CCDB_LOCALCACHE/ITS/Config/Geometry && ln -s -f $PWD/its_GeometryTGeo.root $ALICEO2_CCDB_LOCALCACHE/ITS/Config/Geometry/snapshot.root
339+
if [ "${ENABLEPW}" == "0" ]; then
340+
[[ -f $PWD/its_GeometryTGeo.root ]] && mkdir -p $ALICEO2_CCDB_LOCALCACHE/ITS/Config/Geometry && ln -s -f $PWD/its_GeometryTGeo.root $ALICEO2_CCDB_LOCALCACHE/ITS/Config/Geometry/snapshot.root
341+
fi
329342
[[ -f $PWD/mft_GeometryTGeo.root ]] && mkdir -p $ALICEO2_CCDB_LOCALCACHE/MFT/Config/Geometry && ln -s -f $PWD/mft_GeometryTGeo.root $ALICEO2_CCDB_LOCALCACHE/MFT/Config/Geometry/snapshot.root
330343

331344
# -- RUN THE MC WORKLOAD TO PRODUCE AOD --

MC/run/ANCHOR/tests/test_anchor_2023_apass2_pp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export SEED=5
3030
# for pp and 50 events per TF, we launch only 4 workers.
3131
export NWORKERS=2
3232

33+
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen pythia8 -confKey \"GeometryManagerParam.useParallelWorld=1;GeometryManagerParam.usePwGeoBVH=1;GeometryManagerParam.usePwCaching=1\""
34+
3335
# run the central anchor steering script; this includes
3436
# * derive timestamp
3537
# * derive interaction rate

0 commit comments

Comments
 (0)