Skip to content

Commit 981a89d

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 c13ff6e commit 981a89d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

MC/run/ANCHOR/anchorMC.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bashMore actions
22

33
# add distortion maps
44
# https://alice.its.cern.ch/jira/browse/O2-3346?focusedCommentId=300982&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-300982
@@ -244,6 +244,11 @@ 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+
ENABLEPW=0
248+
if [[ ${remainingargs} == *"GeometryManagerParam.useParallelWorld=1"* ]]; then
249+
ENABLEPW=1
250+
fi
251+
247252
if [ "${ENABLEPW}" == "0" ]; then
248253
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
249254
TIMESTAMP_IDEAL_MC=1
@@ -255,15 +260,16 @@ if [ "${ENABLEPW}" == "0" ]; then
255260
fi
256261
fi
257262

258-
# 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
259263
if [ "${ENABLEPW}" == "0" ]; then
260264
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
261265
else
262266
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
263267
fi
264268
mkdir -p $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned
265269
ln -s -f $PWD/o2sim_geometry-aligned.root $ALICEO2_CCDB_LOCALCACHE/GLO/Config/GeometryAligned/snapshot.root
266-
[[ -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
270+
if [ "${ENABLEPW}" == "0" ]; then
271+
[[ -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
272+
fi
267273
[[ -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
268274

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

0 commit comments

Comments
 (0)