Definition at line 624 of file samplers.py.
◆ __init__()
def python.samplers.PtEtaMPhiSampler.__init__ |
( |
|
self, |
|
|
|
pt, |
|
|
|
eta, |
|
|
|
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)."""
◆ eta() [1/2]
def python.samplers.PtEtaMPhiSampler.eta |
( |
|
self | ) |
|
Definition at line 642 of file samplers.py.
643 "Pseudorapidity sampler"
◆ eta() [2/2]
def python.samplers.PtEtaMPhiSampler.eta |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ mass() [1/2]
def python.samplers.PtEtaMPhiSampler.mass |
( |
|
self | ) |
|
◆ mass() [2/2]
def python.samplers.PtEtaMPhiSampler.mass |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ phi() [1/2]
def python.samplers.PtEtaMPhiSampler.phi |
( |
|
self | ) |
|
Definition at line 658 of file samplers.py.
659 "Azimuthal angle sampler"
◆ phi() [2/2]
def python.samplers.PtEtaMPhiSampler.phi |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ pt() [1/2]
def python.samplers.PtEtaMPhiSampler.pt |
( |
|
self | ) |
|
Definition at line 634 of file samplers.py.
635 "Transverse momentum sampler"
◆ pt() [2/2]
def python.samplers.PtEtaMPhiSampler.pt |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ shoot()
def python.samplers.PtEtaMPhiSampler.shoot |
( |
|
self | ) |
|
eta = - ln(tan(theta/2)) / 2
=> theta = 2 atan( exp(-eta) )
Reimplemented from python.samplers.Sampler.
Definition at line 665 of file samplers.py.
667 eta = - ln(tan(theta/2)) / 2
668 => theta = 2 atan( exp(-eta) )
671 theta = 2 * math.atan(math.exp(-eta))
673 p = pt / math.sin(theta)
675 px = pt * math.cos(phi)
676 py = pt * math.sin(phi)
677 pz = p * math.cos(theta)
679 e = math.sqrt( p**2 + m**2 )
680 v4 = ROOT.TLorentzVector(px, py, pz, e)
◆ _eta
python.samplers.PtEtaMPhiSampler._eta |
|
private |
◆ _m
python.samplers.PtEtaMPhiSampler._m |
|
private |
◆ _phi
python.samplers.PtEtaMPhiSampler._phi |
|
private |
◆ _pt
python.samplers.PtEtaMPhiSampler._pt |
|
private |
◆ eta
python.samplers.PtEtaMPhiSampler.eta |
◆ mass
python.samplers.PtEtaMPhiSampler.mass |
◆ phi
python.samplers.PtEtaMPhiSampler.phi |
◆ pt
python.samplers.PtEtaMPhiSampler.pt |
The documentation for this class was generated from the following file: