Skip to content

Commit 1fbf90e

Browse files
committed
set pw in test script + toggle ideal ITS in anchored simulation
1 parent aaa5bde commit 1fbf90e

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

MC/run/ANCHOR/anchorMC.sh

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -299,20 +299,28 @@ if [ "${ISEXCLUDED}" ]; then
299299
fi
300300

301301
# -- Create aligned geometry using ITS ideal alignment to avoid overlaps in geant
302-
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
303-
TIMESTAMP_IDEAL_MC=1
304-
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
305-
CCDB_RC="${?}"
306-
if [ ! "${CCDB_RC}" == "0" ]; then
307-
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
308-
exit ${CCDB_RC}
302+
if [ "${ENABLE_PARALLEL_WORLD}" == "0" ]; then
303+
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
304+
TIMESTAMP_IDEAL_MC=1
305+
${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
306+
CCDB_RC="${?}"
307+
if [ ! "${CCDB_RC}" == "0" ]; then
308+
echo_error "Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC}. Exiting."
309+
exit ${CCDB_RC}
310+
fi
309311
fi
310312

311313
# 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
312-
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
314+
if [ "${ENABLE_PARALLEL_WORLD}" == "0" ]; then
315+
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
316+
else
317+
echo "run with echo in pipe" | ${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" -b --run
318+
fi
313319
mkdir -p $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned
314320
ln -s -f $PWD/o2sim_geometry-aligned.root $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned/snapshot.root
315-
[[ -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
321+
if [ "${ENABLE_PARALLEL_WORLD}" == "0" ]; then
322+
[[ -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
323+
fi
316324
[[ -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
317325

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

MC/run/ANCHOR/tests/test_anchor_2023_apass2_pp.sh

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

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

0 commit comments

Comments
 (0)