Definition at line 497 of file samplers.py.
◆ __init__()
def python.samplers.ERapMPhiSampler.__init__ |
( |
|
self, |
|
|
|
energy, |
|
|
|
rap, |
|
|
|
mass = 0.0 , |
|
|
|
phi = [0, TWOPI] |
|
) |
| |
◆ __call__()
def python.samplers.Sampler.__call__ |
( |
|
self | ) |
|
|
inherited |
This is the call method that will actually be used (so that normal
functions can also be passed in as samplers).
Definition at line 17 of file samplers.py.
18 """This is the call method that will actually be used (so that normal
19 functions can also be passed in as samplers)."""
◆ energy() [1/2]
def python.samplers.ERapMPhiSampler.energy |
( |
|
self | ) |
|
◆ energy() [2/2]
def python.samplers.ERapMPhiSampler.energy |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ mass() [1/2]
def python.samplers.ERapMPhiSampler.mass |
( |
|
self | ) |
|
◆ mass() [2/2]
def python.samplers.ERapMPhiSampler.mass |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ phi() [1/2]
def python.samplers.ERapMPhiSampler.phi |
( |
|
self | ) |
|
Definition at line 533 of file samplers.py.
534 "Azimuthal angle sampler"
◆ phi() [2/2]
def python.samplers.ERapMPhiSampler.phi |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ rap() [1/2]
def python.samplers.ERapMPhiSampler.rap |
( |
|
self | ) |
|
◆ rap() [2/2]
def python.samplers.ERapMPhiSampler.rap |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ shoot()
def python.samplers.ERapMPhiSampler.shoot |
( |
|
self | ) |
|
y = 0.5 * ln((E+pz)/(E-pz))
-> (E^2 - pz^2) exp(2y) = (E+pz)^2
& (E^2 - pz^2) exp(-2y) = (E-pz)^2
-> E = sqrt(pt^2 + m^2) cosh(y)
-> pz = sqrt(pt^2 + m^2) sinh(y)
-> sqrt(pt^2 + m^2) = E / cosh(y)
Reimplemented from python.samplers.Sampler.
Definition at line 540 of file samplers.py.
542 y = 0.5 * ln((E+pz)/(E-pz))
543 -> (E^2 - pz^2) exp(2y) = (E+pz)^2
544 & (E^2 - pz^2) exp(-2y) = (E-pz)^2
545 -> E = sqrt(pt^2 + m^2) cosh(y)
546 -> pz = sqrt(pt^2 + m^2) sinh(y)
547 -> sqrt(pt^2 + m^2) = E / cosh(y)
549 e =
max(self.mass(),self.energy())
551 sqrt_pt2_m2 = e / math.cosh(y)
552 pz = sqrt_pt2_m2 * math.sinh(y)
554 pt = math.sqrt( sqrt_pt2_m2**2 - m**2 )
556 px = pt * math.cos(phi)
557 py = pt * math.sin(phi)
558 v4 = ROOT.TLorentzVector(px, py, pz, e)
◆ _e
python.samplers.ERapMPhiSampler._e |
|
private |
◆ _m
python.samplers.ERapMPhiSampler._m |
|
private |
◆ _phi
python.samplers.ERapMPhiSampler._phi |
|
private |
◆ _rap
python.samplers.ERapMPhiSampler._rap |
|
private |
◆ energy
python.samplers.ERapMPhiSampler.energy |
◆ mass
python.samplers.ERapMPhiSampler.mass |
◆ phi
python.samplers.ERapMPhiSampler.phi |
◆ rap
python.samplers.ERapMPhiSampler.rap |
The documentation for this class was generated from the following file: