ATLAS Offline Software
Loading...
Searching...
No Matches
python.samplers.ERapMPhiSampler Class Reference
Inheritance diagram for python.samplers.ERapMPhiSampler:
Collaboration diagram for python.samplers.ERapMPhiSampler:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, energy, rap, mass=0.0, phi=[0, TWOPI])
 energy (self)
 energy (self, x)
 rap (self)
 rap (self, x)
 mass (self)
 mass (self, x)
 phi (self)
 phi (self, x)
 shoot (self)
 __call__ (self)

Public Attributes

 energy = energy
 rap = rap
 mass = mass
 phi = phi

Protected Attributes

 _e = mksampler(x)
 _rap = mksampler(x)
 _m = mksampler(x)
 _phi = mksampler(x)

Detailed Description

Definition at line 497 of file samplers.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.samplers.ERapMPhiSampler.__init__ ( self,
energy,
rap,
mass = 0.0,
phi = [0, TWOPI] )

Definition at line 502 of file samplers.py.

502 def __init__(self, energy, rap, mass=0.0, phi=[0, TWOPI]):
503 self.energy = energy
504 self.rap = rap
505 self.mass = mass
506 self.phi = phi
507

Member Function Documentation

◆ __call__()

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.

17 def __call__(self):
18 """This is the call method that will actually be used (so that normal
19 functions can also be passed in as samplers)."""
20 return self.shoot()
21

◆ energy() [1/2]

python.samplers.ERapMPhiSampler.energy ( self)

Definition at line 509 of file samplers.py.

509 def energy(self):
510 "Energy sampler"
511 return self._e

◆ energy() [2/2]

python.samplers.ERapMPhiSampler.energy ( self,
x )

Definition at line 513 of file samplers.py.

513 def energy(self, x):
514 self._e = mksampler(x)
515

◆ mass() [1/2]

python.samplers.ERapMPhiSampler.mass ( self)

Definition at line 525 of file samplers.py.

525 def mass(self):
526 "Mass sampler"
527 return self._m

◆ mass() [2/2]

python.samplers.ERapMPhiSampler.mass ( self,
x )

Definition at line 529 of file samplers.py.

529 def mass(self, x):
530 self._m = mksampler(x)
531

◆ phi() [1/2]

python.samplers.ERapMPhiSampler.phi ( self)

Definition at line 533 of file samplers.py.

533 def phi(self):
534 "Azimuthal angle sampler"
535 return self._phi
Scalar phi() const
phi method

◆ phi() [2/2]

python.samplers.ERapMPhiSampler.phi ( self,
x )

Definition at line 537 of file samplers.py.

537 def phi(self, x):
538 self._phi = mksampler(x)
539

◆ rap() [1/2]

python.samplers.ERapMPhiSampler.rap ( self)

Definition at line 517 of file samplers.py.

517 def rap(self):
518 "Rapidity sampler"
519 return self._rap

◆ rap() [2/2]

python.samplers.ERapMPhiSampler.rap ( self,
x )

Definition at line 521 of file samplers.py.

521 def rap(self, x):
522 self._rap = mksampler(x)
523

◆ shoot()

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.

540 def shoot(self):
541 """
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)
548 """
549 e = max(self.mass(),self.energy())
550 y = self.rap()
551 sqrt_pt2_m2 = e / math.cosh(y)
552 pz = sqrt_pt2_m2 * math.sinh(y)
553 m = self.mass()
554 pt = math.sqrt( sqrt_pt2_m2**2 - m**2 )
555 phi = self.phi()
556 px = pt * math.cos(phi)
557 py = pt * math.sin(phi)
558 v4 = ROOT.TLorentzVector(px, py, pz, e)
559 return v4
560
561
#define max(a, b)
Definition cfImp.cxx:41

Member Data Documentation

◆ _e

python.samplers.ERapMPhiSampler._e = mksampler(x)
protected

Definition at line 514 of file samplers.py.

◆ _m

python.samplers.ERapMPhiSampler._m = mksampler(x)
protected

Definition at line 530 of file samplers.py.

◆ _phi

python.samplers.ERapMPhiSampler._phi = mksampler(x)
protected

Definition at line 538 of file samplers.py.

◆ _rap

python.samplers.ERapMPhiSampler._rap = mksampler(x)
protected

Definition at line 522 of file samplers.py.

◆ energy

python.samplers.ERapMPhiSampler.energy = energy

Definition at line 503 of file samplers.py.

◆ mass

python.samplers.ERapMPhiSampler.mass = mass

Definition at line 505 of file samplers.py.

◆ phi

python.samplers.ERapMPhiSampler.phi = phi

Definition at line 506 of file samplers.py.

◆ rap

python.samplers.ERapMPhiSampler.rap = rap

Definition at line 504 of file samplers.py.


The documentation for this class was generated from the following file: