You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
echo_info "Substituting ALIEN_JDL_LPMPRODUCTIONTAG=$ALIEN_JDL_LPMPRODUCTIONTAG with ALIEN_JDL_LPMANCHORPRODUCTION=$ALIEN_JDL_LPMANCHORPRODUCTION for simulating reco pass..."
# settings that are MC-specific, modify setenv_extra.sh in-place
177
-
sed -i 's/GPU_global.dEdxUseFullGainMap=1;GPU_global.dEdxDisableResidualGainMap=1/GPU_global.dEdxSplineTopologyCorrFile=splines_for_dedx_V1_MC_iter0_PP.root;GPU_global.dEdxDisableTopologyPol=1;GPU_global.dEdxDisableGainMap=1;GPU_global.dEdxDisableResidualGainMap=1;GPU_global.dEdxDisableResidualGain=1/' setenv_extra.sh
178
-
### ???
179
-
180
221
# take out line running the workflow (if we don't have data input)
181
222
[ ${CTF_TEST_FILE} ] || sed -i '/WORKFLOWMODE=run/d' async_pass.sh
182
223
@@ -194,6 +235,7 @@ if [[ "${RECO_RC}" != "0" ]] ; then
echo_error "Problem during anchor timestamp sampling and workflow creation. Exiting."
240
298
exit${WF_RC}
241
299
fi
242
300
243
-
TIMESTAMP=`grep "Determined timestamp to be"timestampsampling_${ALIEN_JDL_LPMRUNNUMBER}.log| awk '//{print $6}'`
301
+
TIMESTAMP=`grep "Determined timestamp to be"${anchoringLogFile}| awk '//{print $6}'`
244
302
echo_info "TIMESTAMP IS ${TIMESTAMP}"
245
303
304
+
305
+
# check if this job is exluded because it falls inside a bad data-taking period
306
+
ISEXCLUDED=$(grep "TIMESTAMP IS EXCLUDED IN RUN"${anchoringLogFile})
307
+
if [ "${ISEXCLUDED}" ];then
308
+
# we can quit here; there is nothing to do
309
+
# (apart from maybe creating a fake empty AO2D.root file or the like)
310
+
echo"Timestamp is excluded from run. Nothing to do here"
311
+
exit 0
312
+
fi
313
+
246
314
# -- Create aligned geometry using ITS ideal alignment to avoid overlaps in geant
315
+
ENABLEPW=0
316
+
if [[ ${remainingargs}==*"GeometryManagerParam.useParallelWorld=1"* ]];then
317
+
ENABLEPW=1
318
+
fi
319
+
247
320
if [ "${ENABLEPW}"=="0" ];then
248
321
CCDBOBJECTS_IDEAL_MC="ITS/Calib/Align"
249
322
TIMESTAMP_IDEAL_MC=1
@@ -257,13 +330,15 @@ fi
257
330
258
331
# 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
259
332
if [ "${ENABLEPW}"=="0" ];then
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}" --condition-remap=file://${ALICEO2_CCDB_LOCALCACHE}=ITS/Calib/Align -b --run
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
261
334
else
262
-
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
335
+
echo"run with echo in pipe"|${O2_ROOT}/bin/o2-create-aligned-geometry-workflow --configKeyValues "HBFUtils.startTime=${TIMESTAMP}" -b --run
0 commit comments