2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 import ParticleGun
as PG
9 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
10 result.addEventAlgo(pg)
16 import ParticleGun
as PG
17 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
18 pg.samplers.append(PG.ParticleSampler())
19 pg.samplers[0].pid = (-13, 13)
20 pg.samplers[0].mom = PG.PtEtaMPhiSampler(pt=[4000, 100000], eta=[1.0, 3.2])
21 pg.samplers[1].pid = (13, -13)
22 pg.samplers[1].mom = PG.PtEtaMPhiSampler(pt=[4000, 100000], eta=[-3.2, -1.0])
23 result.addEventAlgo(pg)
29 import ParticleGun
as PG
30 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
32 pg.sampler.mom = PG.EEtaMPhiSampler(energy=10000, eta=[-1,1])
33 result.addEventAlgo(pg)
39 import ParticleGun
as PG
40 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
41 pg.sampler.pid = PG.CyclicSeqSampler([-13,13])
42 pg.sampler.mom = PG.PtEtaMPhiSampler(pt=50000, eta=[-4,4])
43 result.addEventAlgo(pg)
49 import ParticleGun
as PG
50 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
51 pg.sampler.pid = PG.CyclicSeqSampler([-11,11])
52 pg.sampler.mom = PG.PtEtaMPhiSampler(pt=10000, eta=[-3,3])
53 result.addEventAlgo(pg)
59 import ParticleGun
as PG
60 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
61 pg.sampler.pid = PG.CyclicSeqSampler([-211,211])
62 pg.sampler.mom = PG.PtEtaMPhiSampler(pt=50000, eta=[-4,4])
63 result.addEventAlgo(pg)
68 flags.BField.solenoidOn=
False
69 flags.BField.barrelToroidOn=
False
70 flags.BField.endcapToroidOn=
False
71 from SimulationConfig.SimEnums
import VertexSource
72 flags.Sim.VertexSource=VertexSource.AsGenerated
73 flags.Sim.GenerationConfiguration=
"ParticleGun.ParticleGunConfig.ParticleGun_ALFA_SingleParticleCfg"
74 from ForwardTransportSvc.ForwardTransportSvcConfig
import ForwardTransportBeta90mPreInclude
80 import ParticleGun
as PG
81 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
83 pg.sampler.mom = PG.EEtaMPhiSampler(energy=3500000, eta=10)
84 result.addEventAlgo(pg)
89 from SimulationConfig.SimEnums
import VertexSource
90 flags.Sim.VertexSource=VertexSource.AsGenerated
91 flags.Sim.GenerationConfiguration=
"ParticleGun.ParticleGunConfig.ParticleGun_ZDC_SingleParticleCfg"
92 from ForwardTransportSvc.ForwardTransportSvcConfig
import ForwardTransportBeta055mPreInclude
98 import ParticleGun
as PG
99 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
100 pg.sampler.pid = PG.CyclicSeqSampler([2112, 22, 2112, 22])
101 esampler = PG.CyclicSeqSampler([1360000, 500000, 1360000, 500000])
102 thsampler = PG.CyclicSeqSampler([0, 0, PG.PI, PG.PI])
103 pg.sampler.mom = PG.EThetaMPhiSampler(energy=esampler, theta=thsampler)
104 result.addEventAlgo(pg)
110 import ParticleGun
as PG
111 pg = PG.ParticleGun(randomStream =
"SINGLE", randomSeed = flags.Random.SeedOffset)
122 pg.sampler.pid = flags.TestBeam.BeamPID
123 pg.sampler.pos = PG.PosSampler(
125 y=flags.TestBeam.Ybeam,
126 z=flags.TestBeam.Zbeam,
128 pg.sampler.mom = PG.EEtaMPhiSampler(
129 energy=flags.TestBeam.BeamEnergy,
132 result.addEventAlgo(pg)