◆ __init__()
def jobOption.PtEtaHistParticleSampler.__init__ |
( |
|
self, |
|
|
|
pid, |
|
|
|
histfile, |
|
|
|
num = 100 |
|
) |
| |
◆ shoot()
def jobOption.PtEtaHistParticleSampler.shoot |
( |
|
self | ) |
|
Definition at line 21 of file jobOption.ParticleGun_corrhist.py.
22 "Return a vector of sampled particles from the provided pT--eta histogram"
24 for i
in xrange(self.numparticles):
25 ptrand, etarand = self.hist.GetRandom()
29 mom = PG.PtEtaMPhiSampler(pt=ptrand, eta=etarand, mass=PG.MASSES[abs(pid)])
30 p = PG.SampledParticle(pid,
mom())
◆ hist
jobOption.PtEtaHistParticleSampler.hist |
◆ numparticles
jobOption.PtEtaHistParticleSampler.numparticles |
◆ pid
jobOption.PtEtaHistParticleSampler.pid |
The documentation for this class was generated from the following file: