Skip to content

Commit 62c8f98

Browse files
maciaccoalcaliva
authored andcommitted
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 078ada0 commit 62c8f98

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

MC/run/ANCHOR/anchorMC.sh

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -244,24 +244,33 @@ TIMESTAMP=`grep "Determined timestamp to be" timestampsampling_${ALIEN_JDL_LPMRU
244244
echo_info "TIMESTAMP IS ${TIMESTAMP}"
245245

246246
# -- Create aligned geometry using ITS ideal alignment to avoid overlaps in geant
247-
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
248-
TIMESTAMP_IDEAL_MC=1
249-
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
250-
CCDB_RC="${?}"
251-
if [ ! "${CCDB_RC}" == "0" ]; then
252-
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
253-
exit ${CCDB_RC}
247+
ENABLEPW=0
248+
if [[ ${remainingargs} == *"GeometryManagerParam.useParallelWorld=1"* ]]; then
249+
ENABLEPW=1
250+
fi
251+
252+
if [ "${ENABLEPW}" == "0" ]; then
253+
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
254+
TIMESTAMP_IDEAL_MC=1
255+
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
256+
CCDB_RC="${?}"
257+
if [ ! "${CCDB_RC}" == "0" ]; then
258+
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
259+
exit ${CCDB_RC}
260+
fi
254261
fi
255262

256263
# 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
257264
if [ "${ENABLEPW}" == "0" ]; then
258-
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow ${ALIEN_JDL_CCDB_CONDITION_NOT_AFTER:+--condition-not-after ${ALIEN_JDL_CCDB_CONDITION_NOT_AFTER}} --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" --condition-remap=file://${ALICEO2_CCDB_LOCALCACHE}=ITS/Calib/Align -b --run
265+
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
259266
else
260-
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow ${ALIEN_JDL_CCDB_CONDITION_NOT_AFTER:+--condition-not-after ${ALIEN_JDL_CCDB_CONDITION_NOT_AFTER}} --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" -b --run
267+
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" -b --run
261268
fi
262269
mkdir -p $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned
263270
ln -s -f $PWD/o2sim_geometry-aligned.root $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned/snapshot.root
264-
[[ -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
271+
if [ "${ENABLEPW}" == "0" ]; then
272+
[[ -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
273+
fi
265274
[[ -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
266275

267276
# -- 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)