Skip to content

Sim_tf - Toggle container output depending on whether AMDB or PhaseII style geometry is loaded

Johannes Junggeburth requested to merge jojungge/athena:MuonSimContainers into main
  • Automatically toggle the name of the simulation containers depending on whether the R4 style or AMDB style geometry is parsed to the job
  • Declare output containers in order to run the geometry
  • Do not schedule the Geometry translation in the simulation step

A HITS file with the new geometry file can be produced via:

GeoTag="ATLAS-R3S-2021-03-02-00"
GeoPath="${PWD}/Geometry/${GeoTag}.db"

export ATHENA_PROC_NUMBER=1
export ATHENA_CORE_NUMBER=1
Sim_tf.py \
    --CA \
    --multithreaded True \
    --geometrySQLite True \
    --inputEVNTFile /cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/EVGEN_ParticleGun_FourMuon_Pt10to500.root \
    --conditionsTag 'default:OFLCOND-MC21-SDR-RUN3-05' \
    --simulator 'FullG4MT_QS' \
    --preExec "EVNTtoHITS:from AtlasGeoModel import CommonGeoDB;CommonGeoDB.SetupLocalSqliteGeometryDb('${GeoPath}','${GeoTag}');flags.Scheduler.ShowDataDeps=True;" \
    --postInclude 'PyJobTransforms.TransformUtils.UseFrontier' \
    --preInclude 'EVNTtoHITS:Campaigns.MC21Simulation' \
    --postExec 'EVNTtoHITS:DetDescCnvSvc=cfg.getService("DetDescrCnvSvc");DetDescCnvSvc.IdDictFromRDB=False;DetDescCnvSvc.MuonIDFileName="IdDictParser/IdDictMuonSpectrometer_R.09.03.xml";cfg.printConfig(withDetails=True, summariseProps=True);flags.dump(evaluate = True);' \
    --geometryVersion "default:${GeoTag}" \
    --outputHITSFile SimTf.pool.root \
    --maxEvents '10' \
    --imf False \
    --detectors MDT RPC TGC MM sTGC

Tagging @boudreau, @tsulaia, @emoyse, @jchapman

Edited by Johannes Junggeburth

Merge request reports