◆ __init__()
| ParticleGun_EoverP_Config.PEtaSampler.__init__ |
( |
| self, |
|
|
| momentum, |
|
|
| eta, |
|
|
| pid = 211, |
|
|
| phi = [0, math.pi*2.] ) |
Definition at line 13 of file ParticleGun_EoverP_Config.py.
13 def __init__(self, momentum, eta, pid=211, phi=[0, math.pi*2.]):
14 self.momentum = momentum
15 self.eta = eta
16 pdg_table = ROOT.TDatabasePDG.Instance()
17 mass = pdg_table.GetParticle(pid).Mass()*1000.
18 self.mass = mass
19 self.phi = phi
20
◆ eta() [1/2]
| ParticleGun_EoverP_Config.PEtaSampler.eta |
( |
| self | ) |
|
◆ eta() [2/2]
| ParticleGun_EoverP_Config.PEtaSampler.eta |
( |
| self, |
|
|
| x ) |
◆ mass() [1/2]
| ParticleGun_EoverP_Config.PEtaSampler.mass |
( |
| self | ) |
|
◆ mass() [2/2]
| ParticleGun_EoverP_Config.PEtaSampler.mass |
( |
| self, |
|
|
| x ) |
◆ momentum() [1/2]
| ParticleGun_EoverP_Config.PEtaSampler.momentum |
( |
| self | ) |
|
◆ momentum() [2/2]
| ParticleGun_EoverP_Config.PEtaSampler.momentum |
( |
| self, |
|
|
| x ) |
◆ phi() [1/2]
| ParticleGun_EoverP_Config.PEtaSampler.phi |
( |
| self | ) |
|
◆ phi() [2/2]
| ParticleGun_EoverP_Config.PEtaSampler.phi |
( |
| self, |
|
|
| x ) |
◆ shoot()
| ParticleGun_EoverP_Config.PEtaSampler.shoot |
( |
| self | ) |
|
Definition at line 53 of file ParticleGun_EoverP_Config.py.
53 def shoot(self):
54 v4 = ROOT.TLorentzVector()
55 pt = p / math.cosh(self.eta())
56 v4.SetPtEtaPhiM(pt, self.eta(), self.phi(), self.mass())
57 return v4
58
◆ _eta
| ParticleGun_EoverP_Config.PEtaSampler._eta = mksampler(x) |
|
protected |
◆ _m
| ParticleGun_EoverP_Config.PEtaSampler._m = mksampler(x) |
|
protected |
◆ _momentum
| ParticleGun_EoverP_Config.PEtaSampler._momentum = mksampler(x) |
|
protected |
◆ _phi
| ParticleGun_EoverP_Config.PEtaSampler._phi = mksampler(x) |
|
protected |
◆ eta
| ParticleGun_EoverP_Config.PEtaSampler.eta = eta |
◆ mass
| ParticleGun_EoverP_Config.PEtaSampler.mass = mass |
◆ momentum
| ParticleGun_EoverP_Config.PEtaSampler.momentum = momentum |
◆ phi
| ParticleGun_EoverP_Config.PEtaSampler.phi = phi |
The documentation for this class was generated from the following file: