A special sampler to generate single particles flat in 1/pT and in
impact parameter to the beam, with flat z0.
Definition at line 10 of file jobOption.ParticleGun_correlated.py.
◆ __init__() [1/2]
def jobOption.MyParticleSampler.__init__ |
( |
|
self | ) |
|
◆ __init__() [2/2]
def jobOption.MyParticleSampler.__init__ |
( |
|
self | ) |
|
Definition at line 16 of file jobOption.ParticleGun_flatcurvature_flatip.py.
17 psamp = PG.PtEtaMPhiSampler(pt=PG.InvSampler(4000, 400000), eta=[0.1,0.3], phi=[0.3, 0.5])
18 xsamp = PG.PosSampler(0, 0, [-150,150], 0)
19 PG.ParticleSampler.__init__(self, pid={13,-13}, mom=psamp, pos=xsamp)
20 self.ip = PG.mksampler([-2,2])
◆ shoot() [1/2]
def jobOption.MyParticleSampler.shoot |
( |
|
self | ) |
|
Definition at line 16 of file jobOption.ParticleGun_correlated.py.
17 "Return a vector of sampled particles"
18 p1 = PG.SampledParticle(11, self.mom1.shoot())
22 mom2 = PG.PtEtaMPhiSampler(pt=25000,
23 eta=[eta1-0.5, eta1+0.5],
24 phi=[phi1-0.5, phi1+0.5])
25 p2 = PG.SampledParticle(11, mom2.shoot())
◆ shoot() [2/2]
def jobOption.MyParticleSampler.shoot |
( |
|
self | ) |
|
◆ ip
jobOption.MyParticleSampler.ip |
◆ mom1
jobOption.MyParticleSampler.mom1 |
The documentation for this class was generated from the following files: