Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-16 08:48:25

0001 def test_first_python_run():
0002     #! [First Python run]
0003     import acts
0004     from acts import UnitConstants as u
0005     import acts.examples
0006     from acts.examples.simulation import (
0007         EtaConfig,
0008         MomentumConfig,
0009         ParticleConfig,
0010         addParticleGun,
0011     )
0012 
0013     s = acts.examples.Sequencer(events=5, numThreads=1)
0014     addParticleGun(
0015         s,
0016         momentumConfig=MomentumConfig(1 * u.GeV, 10 * u.GeV, transverse=True),
0017         etaConfig=EtaConfig(-2.0, 2.0),
0018         particleConfig=ParticleConfig(1, acts.PdgParticle.eMuon),
0019         rnd=acts.examples.RandomNumbers(seed=42),
0020         printParticles=True,
0021     )
0022     s.run()
0023     #! [First Python run]