@@ -57,6 +57,10 @@ print_help()
5757 echo " ALIEN_JDL_WORKFLOWDETECTORS, set detectors to be taken into account, default: ITS,TPC,TOF,FV0,FT0,FDD,MID,MFT,MCH,TRD,EMC,PHS,CPV,HMP,CTP,"
5858 echo " ALIEN_JDL_ANCHOR_SIM_OPTIONS, additional options that are passed to the workflow creation, default: -gen pythia8,"
5959 echo " ALIEN_JDL_ADDTIMESERIESINMC, run TPC time series. Default: 1, switch off by setting to 0,"
60+ echo " ALIEN_JDL_MC_ORBITS_PER_TF=N, enforce some orbits per timeframe, instead of determining from CCDB"
61+ echo " ALIEN_JDL_RUN_TIME_SPAN_FILE=FILE, use a run-time-span file to exclude bad data-taking periods"
62+ echo " ALIEN_JDL_INVERT_IRFRAME_SELECTION, invertes the choice of ALIEN_JDL_RUN_TIME_SPAN_FILE"
63+ echo " ALIEN_JDL_CCDB_CONDITION_NOT_AFTER, sets the condition_not_after timestamp for CCDB queries"
6064 echo " DISABLE_QC, set this to disable QC, e.g. to 1"
6165}
6266
@@ -219,6 +223,11 @@ remainingargs="${remainingargs} -productionTag ${ALIEN_JDL_LPMPRODUCTIONTAG:-ali
219223# prepend(!) ALIEN_JDL_ANCHOR_SIM_OPTIONS
220224# since the last passed argument wins, e.g. -productionTag cannot be overwritten by the user
221225remainingargs=" ${ALIEN_JDL_ANCHOR_SIM_OPTIONS} ${remainingargs} --anchor-config config-json.json"
226+ # apply software tagging choice
227+ # remainingargs="${remainingargs} ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG:+--alternative-reco-software ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG}}"
228+ remainingargs=" ${remainingargs} ${ALIEN_JDL_O2DPG_ASYNC_RECO_TAG: +--alternative-reco-software ${PWD} / env_async.env} "
229+ # potentially add CCDB timemachine timestamp
230+ remainingargs=" ${remainingargs} ${ALIEN_JDL_CCDB_CONDITION_NOT_AFTER: +--condition-not-after ${ALIEN_JDL_CCDB_CONDITION_NOT_AFTER} } "
222231
223232echo_info " baseargs passed to o2dpg_sim_workflow_anchored.py: ${baseargs} "
224233echo_info " remainingargs forwarded to o2dpg_sim_workflow.py: ${remainingargs} "
@@ -235,20 +244,32 @@ TIMESTAMP=`grep "Determined timestamp to be" timestampsampling_${ALIEN_JDL_LPMRU
235244echo_info " TIMESTAMP IS ${TIMESTAMP} "
236245
237246# -- Create aligned geometry using ITS ideal alignment to avoid overlaps in geant
238- CCDBOBJECTS_IDEAL_MC=" ITS/Calib/Align"
239- TIMESTAMP_IDEAL_MC=1
240- ${O2_ROOT} /bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch/ -p ${CCDBOBJECTS_IDEAL_MC} -d ${ALICEO2_CCDB_LOCALCACHE} --timestamp ${TIMESTAMP_IDEAL_MC}
241- CCDB_RC=" ${?} "
242- if [ ! " ${CCDB_RC} " == " 0" ]; then
243- echo_error " Problem during CCDB prefetching of ${CCDBOBJECTS_IDEAL_MC} . Exiting."
244- exit ${CCDB_RC}
247+ ENABLEPW=0
248+ if [[ ${remainingargs} == * " GeometryManagerParam.useParallelWorld=1" * ]]; then
249+ ENABLEPW=1
245250fi
246251
247- # 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
248- 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
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
261+ fi
262+
263+ if [ " ${ENABLEPW} " == " 0" ]; then
264+ 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+ else
266+ 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+ fi
249268mkdir -p $ALICEO2_CCDB_LOCALCACHE /GLO/Config/GeometryAligned
250269ln -s -f $PWD /o2sim_geometry-aligned.root $ALICEO2_CCDB_LOCALCACHE /GLO/Config/GeometryAligned/snapshot.root
251- [[ -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
252273[[ -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
253274
254275# -- RUN THE MC WORKLOAD TO PRODUCE AOD --
0 commit comments