Skip to content

Commit ceb7289

Browse files
committed
MC: Run 4 geomprefetch modifications
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 355a532 commit ceb7289

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
@@ -555,6 +555,17 @@ def getDPL_global_options(bigshm=False, ccdbbackend=True):
555555
# MFT
556556
[[ -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
557557
'''
558+
# For now create for Run 4 geometry the alignment objects on the spot and take them as being ideal
559+
if args.detectorList == 'ALICE2.1':
560+
geom_cmd = f'''
561+
o2-sim --detectorList ALICE2.1 -n0
562+
mkdir -p $ALICEO2_CCDB_LOCALCACHE/GLO/Config/Geometry
563+
ln -s -f $PWD/o2sim_geometry.root $ALICEO2_CCDB_LOCALCACHE/GLO/Config/Geometry/snapshot.root
564+
# ccdb objects are for now guaranteed to be ideal ones
565+
${{O2_ROOT}}/bin/o2-create-aligned-geometry-workflow -b --run
566+
[[ -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
567+
[[ -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
568+
'''
558569

559570
with open("geomprefetcher_script.sh",'w') as f:
560571
f.write(geom_cmd)

0 commit comments

Comments
 (0)