Definition at line 435 of file samplers.py.
◆ __init__()
def python.samplers.EEtaMPhiSampler.__init__ |
( |
|
self, |
|
|
|
energy, |
|
|
|
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)."""
◆ energy() [1/2]
def python.samplers.EEtaMPhiSampler.energy |
( |
|
self | ) |
|
◆ energy() [2/2]
def python.samplers.EEtaMPhiSampler.energy |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ eta() [1/2]
def python.samplers.EEtaMPhiSampler.eta |
( |
|
self | ) |
|
Definition at line 455 of file samplers.py.
456 "Pseudorapidity sampler"
◆ eta() [2/2]
def python.samplers.EEtaMPhiSampler.eta |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ mass() [1/2]
def python.samplers.EEtaMPhiSampler.mass |
( |
|
self | ) |
|
◆ mass() [2/2]
def python.samplers.EEtaMPhiSampler.mass |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ phi() [1/2]
def python.samplers.EEtaMPhiSampler.phi |
( |
|
self | ) |
|
Definition at line 471 of file samplers.py.
472 "Azimuthal angle sampler"
◆ phi() [2/2]
def python.samplers.EEtaMPhiSampler.phi |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ shoot()
def python.samplers.EEtaMPhiSampler.shoot |
( |
|
self | ) |
|
eta = - ln(tan(theta/2)) / 2
=> theta = 2 atan( exp(-eta) )
Reimplemented from python.samplers.Sampler.
Definition at line 478 of file samplers.py.
480 eta = - ln(tan(theta/2)) / 2
481 => theta = 2 atan( exp(-eta) )
484 theta = 2 * math.atan(math.exp(-eta))
487 p = math.sqrt( e**2 - m**2 )
488 pz = p * math.cos(theta)
489 pt = p * math.sin(theta)
491 px = pt * math.cos(phi)
492 py = pt * math.sin(phi)
493 v4 = ROOT.TLorentzVector(px, py, pz, e)
◆ _e
python.samplers.EEtaMPhiSampler._e |
|
private |
◆ _eta
python.samplers.EEtaMPhiSampler._eta |
|
private |
◆ _m
python.samplers.EEtaMPhiSampler._m |
|
private |
◆ _phi
python.samplers.EEtaMPhiSampler._phi |
|
private |
◆ energy
python.samplers.EEtaMPhiSampler.energy |
◆ eta
python.samplers.EEtaMPhiSampler.eta |
◆ mass
python.samplers.EEtaMPhiSampler.mass |
◆ phi
python.samplers.EEtaMPhiSampler.phi |
The documentation for this class was generated from the following file: