Skip to content

Commit 16f8275

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 ead8c0b commit 16f8275

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

MC/bin/o2dpg_sim_workflow.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,16 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
506506
'${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch -p TPC/Calib/CorrectionMap --timestamp 1 --created-not-after ' + str(args.condition_not_after) + ' -d ${ALICEO2_CCDB_LOCALCACHE} ; }'
507507
workflow['stages'].append(TPC_SPACECHARGE_DOWNLOADER_TASK)
508508

509+
# Fix (residual) geometry alignment for simulation stage
510+
# Detectors that prefer to apply special alignments (for example residual effects) should be listed here and download these files.
511+
# These object will take precedence over ordinary align objects **and** will only be applied in transport simulation
512+
# and digitization (Det/Calib/Align is only read in simulation since reconstruction tasks use GLO/Config/AlignedGeometry automatically).
513+
SIM_ALIGNMENT_PREFETCH_TASK = createTask(name='sim_alignment', cpu='0')
514+
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 ' \
515+
+ str(args.condition_not_after) + ' -d ${ALICEO2_CCDB_LOCALCACHE}/MID/Calib/Align --no-preserve-path ; '
516+
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 ' \
517+
+ str(args.condition_not_after) + ' -d ${ALICEO2_CCDB_LOCALCACHE}/MCH/Calib/Align --no-preserve-path '
518+
workflow['stages'].append(SIM_ALIGNMENT_PREFETCH_TASK)
509519

510520
# query initial configKey args for signal transport; mainly used to setup generators
511521
simInitialConfigKeys = create_geant_config(args, args.confKey)

0 commit comments

Comments
 (0)