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

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

Public Attributes

 energy = energy
 theta = theta
 mass = mass
 phi = phi

Protected Attributes

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

Detailed Description

Definition at line 562 of file samplers.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 567 of file samplers.py.

567 def __init__(self, energy, theta, mass=0.0, phi=[0, TWOPI]):
568 self.energy = energy
569 self.theta = theta
570 self.mass = mass
571 self.phi = phi
572

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.EThetaMPhiSampler.energy ( self)

Definition at line 574 of file samplers.py.

574 def energy(self):
575 "Energy sampler"
576 return self._e

◆ energy() [2/2]

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

Definition at line 578 of file samplers.py.

578 def energy(self, x):
579 self._e = mksampler(x)
580

◆ mass() [1/2]

python.samplers.EThetaMPhiSampler.mass ( self)

Definition at line 590 of file samplers.py.

590 def mass(self):
591 "Mass sampler"
592 return self._m

◆ mass() [2/2]

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

Definition at line 594 of file samplers.py.

594 def mass(self, x):
595 self._m = mksampler(x)
596

◆ phi() [1/2]

python.samplers.EThetaMPhiSampler.phi ( self)

Definition at line 598 of file samplers.py.

598 def phi(self):
599 "Azimuthal angle sampler"
600 return self._phi
Scalar phi() const
phi method

◆ phi() [2/2]

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

Definition at line 602 of file samplers.py.

602 def phi(self, x):
603 self._phi = mksampler(x)
604

◆ shoot()

python.samplers.EThetaMPhiSampler.shoot ( self)
p = sqrt(e^2 - m^2)
pz = p cos(theta)
pt = p sin(theta)

Reimplemented from python.samplers.Sampler.

Definition at line 605 of file samplers.py.

605 def shoot(self):
606 """
607 p = sqrt(e^2 - m^2)
608 pz = p cos(theta)
609 pt = p sin(theta)
610 """
611 e = max(self.energy(),self.mass())
612 m = self.mass()
613 p = math.sqrt( max(0.0,e**2 - m**2) )
614 theta = self.theta()
615 pz = p * math.cos(theta)
616 pt = p * math.sin(theta)
617 phi = self.phi()
618 px = pt * math.cos(phi)
619 py = pt * math.sin(phi)
620 v4 = ROOT.TLorentzVector(px, py, pz, e)
621 return v4
622
623
#define max(a, b)
Definition cfImp.cxx:41

◆ theta() [1/2]

python.samplers.EThetaMPhiSampler.theta ( self)

Definition at line 582 of file samplers.py.

582 def theta(self):
583 "Polar angle sampler"
584 return self._theta
Scalar theta() const
theta method

◆ theta() [2/2]

python.samplers.EThetaMPhiSampler.theta ( self,
x )

Definition at line 586 of file samplers.py.

586 def theta(self, x):
587 self._theta = mksampler(x)
588

Member Data Documentation

◆ _e

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

Definition at line 579 of file samplers.py.

◆ _m

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

Definition at line 595 of file samplers.py.

◆ _phi

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

Definition at line 603 of file samplers.py.

◆ _theta

python.samplers.EThetaMPhiSampler._theta = mksampler(x)
protected

Definition at line 587 of file samplers.py.

◆ energy

python.samplers.EThetaMPhiSampler.energy = energy

Definition at line 568 of file samplers.py.

◆ mass

python.samplers.EThetaMPhiSampler.mass = mass

Definition at line 570 of file samplers.py.

◆ phi

python.samplers.EThetaMPhiSampler.phi = phi

Definition at line 571 of file samplers.py.

◆ theta

python.samplers.EThetaMPhiSampler.theta = theta

Definition at line 569 of file samplers.py.


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