Skip to content
Snippets Groups Projects

Add possiblity to use Geant4 transport instead of ATLAS tracking tools in FCS in G4

This MR adds the possibility to use the Geant4 transport instead of the ATLAS tracking tools required for transporting particles from the ID-Calo boundary through the calorimeter system for FastCaloSim. More specifically, it:

  • adds a new tool G4CaloTransportTool that does the G4 transport
  • the tool relies on reading in a simplified calorimeter geometry which is read in G4AtlasAlg
  • the simplified geometry is a GDML file located under /cvmfs/atlas.cern.ch/repo/sw/database/GroupData/FastCaloSim/MC23/GeoFiles/v02/simplified_geo.gdml (/eos/atlas/atlascerngroupdisk/asg-calib/FastCaloSim/MC23/ )
  • For now, the default behaviour will remain unchanged, but the calorimeter transport through the simplified geometry can be activated by simply providing the following preExec to the transform --preExec AtlasG4Tf:flags.Sim.SimplifiedGeoPath=FastCaloSim/MC23/GeoFiles/v02/simplified_geo.gdml'
  • the FastCaloSimCaloExtrapolation tool now also provides an interface to do the extrapolation without the transportation

Note: It was attempted to make the G4CaloTransportTool thread safe by creating propagators for each unique thread with the ThreadLocalHolder. While this seems to work, there are still small MT vs. MT (ST) differences observed for 15 ttbar events. Nonetheless, it was discussed with @jchapman that this should go in first and then be discussed with the relevant Geant4 experts. Eventually, the tool should also become either part of the FastCaloSim standalone library or (ideally) directly part of Geant4.

To reproduce:

PATH_TO_SIMPLIFIED_GEO='FastCaloSim/MC23/GeoFiles/v02/simplified_geo.gdml'
export ATHENA_CORE_NUMBER=8
AtlasG4_tf.py \
   --CA \
   --multithreaded \
   --randomSeed '10' \
   --maxEvents '15' \
   --skipEvents '0' \
   --preInclude 'sim:Campaigns.MC21Simulation,SimuJobTransforms.FastCaloSim' \
   --postInclude 'default:PyJobTransforms.UseFrontier' \
   --inputEVNTFile "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/SimCoreTests/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.evgen.EVNT.e4993.EVNT.08166201._000012.pool.root.1" \
   --outputHITSFile="test.HITS.pool.root" \
   --physicsList="FTFP_BERT_ATL" 		\
   --conditionsTag "default:OFLCOND-MC21-SDR-RUN3-07" 		\
   --geometryVersion="default:ATLAS-R3S-2021-03-00-00" 	\
   --preExec AtlasG4Tf:flags.Sim.SimplifiedGeoPath=\'${PATH_TO_SIMPLIFIED_GEO}\' \
   --imf False;

fyi @mumohdso

Edited by Joshua Falco Beirer

Merge request reports

Pipeline #7375965 passed

Pipeline passed for e1085f30 on jbeirer:24.0-FCS_G4SimplifiedGeoTracking-CA

Approval is optional

Merged by Duc TaDuc Ta 10 months ago (May 15, 2024 3:46pm UTC)

Merge details

  • Changes merged into 24.0 with 9c36419d (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 2384 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Joshua Falco Beirer resolved all threads

    resolved all threads

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 2 commits

    Compare with previous version

  • added 1 commit

    • c9aaef9e - Rename G4TransportTool -> G4CaloTransportTool

    Compare with previous version

  • Jenkins please retry a build.

  • This merge request affects 6 packages:

    • Simulation/G4Atlas/G4AtlasAlg
    • Simulation/G4Atlas/G4AtlasInterfaces
    • Simulation/G4Atlas/G4AtlasTools
    • Simulation/G4Utilities/G4FastSimulation
    • Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization
    • Simulation/SimulationConfig

    Affected files list will not be printed in this case

    Adding @jchapman ,@jbeirer ,@tadej ,@schaarsc ,@zhangr as watchers

  • Joshua Falco Beirer resolved all threads

    resolved all threads

  • :x: CI Result FAILURE (hash c9aaef9e)

    Athena AthSimulation AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :o: :o: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 9281] (remote access info)

  • added 1 commit

    Compare with previous version

  • Joshua Falco Beirer changed the description

    changed the description

  • added 1 commit

    • 78e7d760 - Only add SimplifiedGeoPath to metadata if set

    Compare with previous version

  • Joshua Falco Beirer resolved all threads

    resolved all threads

  • Joshua Falco Beirer marked this merge request as ready

    marked this merge request as ready

  • :pencil: Build area was cleaned as per request posted in the DB. The full software build will be performed

  • This merge request affects 6 packages:

    • Simulation/G4Atlas/G4AtlasAlg
    • Simulation/G4Atlas/G4AtlasInterfaces
    • Simulation/G4Atlas/G4AtlasTools
    • Simulation/G4Utilities/G4FastSimulation
    • Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization
    • Simulation/SimulationConfig

    Affected files list will not be printed in this case

    Adding @jchapman ,@jbeirer ,@schaarsc ,@zhangr ,@tadej as watchers

  • added 1 commit

    Compare with previous version

  • This merge request affects 6 packages:

    • Simulation/G4Atlas/G4AtlasAlg
    • Simulation/G4Atlas/G4AtlasInterfaces
    • Simulation/G4Atlas/G4AtlasTools
    • Simulation/G4Utilities/G4FastSimulation
    • Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization
    • Simulation/SimulationConfig

    Affected files list will not be printed in this case

    Adding @tadej ,@jchapman ,@schaarsc ,@jbeirer ,@zhangr as watchers

  • added 1 commit

    Compare with previous version

  • Joshua Falco Beirer resolved all threads

    resolved all threads

  • :pencil: Build area was cleaned as per request posted in the DB. The full software build will be performed

  • This merge request affects 6 packages:

    • Simulation/G4Atlas/G4AtlasAlg
    • Simulation/G4Atlas/G4AtlasInterfaces
    • Simulation/G4Atlas/G4AtlasTools
    • Simulation/G4Utilities/G4FastSimulation
    • Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization
    • Simulation/SimulationConfig

    Affected files list will not be printed in this case

    Adding @schaarsc ,@zhangr ,@jbeirer ,@jchapman ,@tadej as watchers

  • :white_check_mark: CI Result SUCCESS (hash 78e7d760)

    Athena AthSimulation AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 9444] (remote access info)

  • :white_check_mark: CI Result SUCCESS (hash c419bb07)

    Athena AthSimulation AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 9453] (remote access info)

  • :white_check_mark: CI Result SUCCESS (hash e1085f30)

    Athena AthSimulation AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 9454] (remote access info)

  • MR looks fine from L1 perspective, CI shows no problems - approving

    Cheers, Qiyu, L1

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading