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

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, pt, eta, mass=0.0, phi=[0, TWOPI])
 pt (self)
 pt (self, x)
 eta (self)
 eta (self, x)
 mass (self)
 mass (self, x)
 phi (self)
 phi (self, x)
 shoot (self)
 __call__ (self)

Public Attributes

 pt = pt
 eta = eta
 mass = mass
 phi = phi

Protected Attributes

 _pt = mksampler(x)
 _eta = mksampler(x)
 _m = mksampler(x)
 _phi = mksampler(x)

Detailed Description

Definition at line 624 of file samplers.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.samplers.PtEtaMPhiSampler.__init__ ( self,
pt,
eta,
mass = 0.0,
phi = [0, TWOPI] )

Definition at line 627 of file samplers.py.

627 def __init__(self, pt, eta, mass=0.0, phi=[0, TWOPI]):
628 self.pt = pt
629 self.eta = eta
630 self.mass = mass
631 self.phi = phi
632

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

◆ eta() [1/2]

python.samplers.PtEtaMPhiSampler.eta ( self)

Definition at line 642 of file samplers.py.

642 def eta(self):
643 "Pseudorapidity sampler"
644 return self._eta
Scalar eta() const
pseudorapidity method

◆ eta() [2/2]

python.samplers.PtEtaMPhiSampler.eta ( self,
x )

Definition at line 646 of file samplers.py.

646 def eta(self, x):
647 self._eta = mksampler(x)
648

◆ mass() [1/2]

python.samplers.PtEtaMPhiSampler.mass ( self)

Definition at line 650 of file samplers.py.

650 def mass(self):
651 "Mass sampler"
652 return self._m

◆ mass() [2/2]

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

Definition at line 654 of file samplers.py.

654 def mass(self, x):
655 self._m = mksampler(x)
656

◆ phi() [1/2]

python.samplers.PtEtaMPhiSampler.phi ( self)

Definition at line 658 of file samplers.py.

658 def phi(self):
659 "Azimuthal angle sampler"
660 return self._phi
Scalar phi() const
phi method

◆ phi() [2/2]

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

Definition at line 662 of file samplers.py.

662 def phi(self, x):
663 self._phi = mksampler(x)
664

◆ pt() [1/2]

python.samplers.PtEtaMPhiSampler.pt ( self)

Definition at line 634 of file samplers.py.

634 def pt(self):
635 "Transverse momentum sampler"
636 return self._pt

◆ pt() [2/2]

python.samplers.PtEtaMPhiSampler.pt ( self,
x )

Definition at line 638 of file samplers.py.

638 def pt(self, x):
639 self._pt = mksampler(x)
640

◆ shoot()

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.

665 def shoot(self):
666 """
667 eta = - ln(tan(theta/2)) / 2
668 => theta = 2 atan( exp(-eta) )
669 """
670 eta = self.eta()
671 theta = 2 * math.atan(math.exp(-eta))
672 pt = self.pt()
673 p = pt / math.sin(theta)
674 phi = self.phi()
675 px = pt * math.cos(phi)
676 py = pt * math.sin(phi)
677 pz = p * math.cos(theta)
678 m = self.mass()
679 e = math.sqrt( p**2 + m**2 )
680 v4 = ROOT.TLorentzVector(px, py, pz, e)
681 return v4
682
683

Member Data Documentation

◆ _eta

python.samplers.PtEtaMPhiSampler._eta = mksampler(x)
protected

Definition at line 647 of file samplers.py.

◆ _m

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

Definition at line 655 of file samplers.py.

◆ _phi

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

Definition at line 663 of file samplers.py.

◆ _pt

python.samplers.PtEtaMPhiSampler._pt = mksampler(x)
protected

Definition at line 639 of file samplers.py.

◆ eta

python.samplers.PtEtaMPhiSampler.eta = eta

Definition at line 629 of file samplers.py.

◆ mass

python.samplers.PtEtaMPhiSampler.mass = mass

Definition at line 630 of file samplers.py.

◆ phi

python.samplers.PtEtaMPhiSampler.phi = phi

Definition at line 631 of file samplers.py.

◆ pt

python.samplers.PtEtaMPhiSampler.pt = pt

Definition at line 628 of file samplers.py.


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