Skip to content

Commit 83d3068

Browse files
sawenzelclaude
andcommitted
Restrict the TRD PAI model to 14 particle species
Reduce the Geant4 initialisation time by setting up the PAI model only for the charged species that matter in the TRD gas, instead of all 99. This reduces the PAI setup from 0.81 s to 0.11 s per o2-sim worker. | | all (99) | 14 species | |---------------------------------------------|-------------------|------------| | PAI model instances | 99 | 14 | | PAI setup time | 809 ms | 113 ms | | boxgen, 1 event: hits / steps | 14986 / 17871 | identical | | 5 pythia8pp events: hits / steps | 456275 / 530601 | identical | | 5 pythia8pp events: TRD hits / total charge | 69847 / 2.42322e6 | identical | Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 93e2a54 commit 83d3068

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Detectors/gconfig/g4config.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# Geant4 VMC >= v3.2
3333
/mcPhysics/emModel/setEmModel PAI
3434
/mcPhysics/emModel/setRegions TRD_Gas-mix
35-
/mcPhysics/emModel/setParticles all
35+
/mcPhysics/emModel/setParticles e- e+ mu- mu+ pi- pi+ kaon- kaon+ proton anti_proton deuteron triton He3 alpha
3636
/mcPrimaryGenerator/skipUnknownParticles true # don't crash when seeing unknown ion etc. (issue warning)
3737

3838
#

0 commit comments

Comments
 (0)