Definition at line 684 of file samplers.py.
◆ __init__()
def python.samplers.PtRapMPhiSampler.__init__ |
( |
|
self, |
|
|
|
pt, |
|
|
|
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)."""
◆ mass() [1/2]
def python.samplers.PtRapMPhiSampler.mass |
( |
|
self | ) |
|
◆ mass() [2/2]
def python.samplers.PtRapMPhiSampler.mass |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ phi() [1/2]
def python.samplers.PtRapMPhiSampler.phi |
( |
|
self | ) |
|
Definition at line 718 of file samplers.py.
719 "Azimuthal angle sampler"
◆ phi() [2/2]
def python.samplers.PtRapMPhiSampler.phi |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ pt() [1/2]
def python.samplers.PtRapMPhiSampler.pt |
( |
|
self | ) |
|
Definition at line 694 of file samplers.py.
695 "Transverse momentum sampler"
◆ pt() [2/2]
def python.samplers.PtRapMPhiSampler.pt |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ rap() [1/2]
def python.samplers.PtRapMPhiSampler.rap |
( |
|
self | ) |
|
◆ rap() [2/2]
def python.samplers.PtRapMPhiSampler.rap |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ shoot()
def python.samplers.PtRapMPhiSampler.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 725 of file samplers.py.
727 y = 0.5 * ln((E+pz)/(E-pz))
728 -> (E^2 - pz^2) exp(2y) = (E+pz)^2
729 & (E^2 - pz^2) exp(-2y) = (E-pz)^2
730 -> E = sqrt(pt^2 + m^2) cosh(y)
731 -> pz = sqrt(pt^2 + m^2) sinh(y)
732 -> sqrt(pt^2 + m^2) = E / cosh(y)
738 sqrt_pt2_m2 = math.sqrt( pt**2 + m**2 )
740 e = sqrt_pt2_m2 * math.cosh(y)
741 pz = sqrt_pt2_m2 * math.sinh(y)
743 px = pt * math.cos(phi)
744 py = pt * math.sin(phi)
745 v4 = ROOT.TLorentzVector(px, py, pz, e)
◆ _m
python.samplers.PtRapMPhiSampler._m |
|
private |
◆ _phi
python.samplers.PtRapMPhiSampler._phi |
|
private |
◆ _pt
python.samplers.PtRapMPhiSampler._pt |
|
private |
◆ _rap
python.samplers.PtRapMPhiSampler._rap |
|
private |
◆ mass
python.samplers.PtRapMPhiSampler.mass |
◆ phi
python.samplers.PtRapMPhiSampler.phi |
◆ pt
python.samplers.PtRapMPhiSampler.pt |
◆ rap
python.samplers.PtRapMPhiSampler.rap |
The documentation for this class was generated from the following file: