Skip to content

Commit e83c9ca

Browse files
authored
Override MCH/MID alignment objects for sim (#1442)
* 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 c80fa19 commit e83c9ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,17 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
523523
'${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} ; }'
524524
workflow['stages'].append(TPC_SPACECHARGE_DOWNLOADER_TASK)
525525

526+
# Fix (residual) geometry alignment for simulation stage
527+
# Detectors that prefer to apply special alignments (for example residual effects) should be listed here and download these files.
528+
# These object will take precedence over ordinary align objects **and** will only be applied in transport simulation
529+
# and digitization (Det/Calib/Align is only read in simulation since reconstruction tasks use GLO/Config/AlignedGeometry automatically).
530+
SIM_ALIGNMENT_PREFETCH_TASK = createTask(name='sim_alignment', cpu='0')
531+
SIM_ALIGNMENT_PREFETCH_TASK['cmd'] = '${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch -p MID/MisCalib/Align --timestamp ' + str(args.timestamp) + ' --created-not-after ' \
532+
+ str(args.condition_not_after) + ' -d ${ALICEO2_CCDB_LOCALCACHE}/MID/Calib/Align --no-preserve-path ; '
533+
SIM_ALIGNMENT_PREFETCH_TASK['cmd'] += '${O2_ROOT}/bin/o2-ccdb-downloadccdbfile --host http://alice-ccdb.cern.ch -p MCH/MisCalib/Align --timestamp ' + str(args.timestamp) + ' --created-not-after ' \
534+
+ str(args.condition_not_after) + ' -d ${ALICEO2_CCDB_LOCALCACHE}/MCH/Calib/Align --no-preserve-path '
535+
workflow['stages'].append(SIM_ALIGNMENT_PREFETCH_TASK)
536+
526537
# query initial configKey args for signal transport; mainly used to setup generators
527538
simInitialConfigKeys = create_geant_config(args, args.confKey)
528539

0 commit comments

Comments
 (0)