Skip to content

Commit 442b652

Browse files
committed
Override MCH/MID alignment objects for sim
Prefetch some special alignment objects for MCH/MID (in place of ordinary DET/Calib/Align and use them for simulation/digitization) related to https://its.cern.ch/jira/browse/O2-4622
1 parent 059d746 commit 442b652

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

MC/bin/o2dpg_sim_workflow.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,17 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
505505
workflow['stages'].append(TPC_SPACECHARGE_DOWNLOADER_TASK)
506506

507507

508+
# Fix (residual) geometry alignment for simulation stage
509+
# Detectors that prefer to apply special alignments (for example residual effects) should be listed here and download these files.
510+
# These object will take precedence over ordinary align objects **and** will only be applied in transport simulation
511+
# and digitization (Det/Calib/Align is only read in simulation since reconstruction tasks use GLO/Config/AlignedGeometry automatically).
512+
SIM_ALIGNMENT_PREFETCH_TASK = createTask(name='sim_alignment', cpu='0')
513+
SIM_ALIGNMENT_PREFETCH_TASK['cmd'] = '${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch -p MID/MisCalib/Align --timestamp ' + args.timestamp + ' --created-not-after ' \
514+
+ str(args.condition_not_after) + ' -d ${ALICEO2_CCDB_LOCALCACHE}/MID/Calib/Align --no-preserve-path ; '
515+
SIM_ALIGNMENT_PREFETCH_TASK['cmd'] += '${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch -p MCH/MisCalib/Align --timestamp ' + args.timestamp + ' --created-not-after ' \
516+
+ str(args.condition_not_after) + ' -d ${ALICEO2_CCDB_LOCALCACHE}/MCH/Calib/Align --no-preserve-path '
517+
workflow['stages'].append(SIM_ALIGNMENT_PREFETCH_TASK)
518+
508519
# loop over timeframes
509520
for tf in range(1, NTIMEFRAMES + 1):
510521
TFSEED = SIMSEED + tf

0 commit comments

Comments
 (0)