ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
python.samplers.MXYZSampler Class Reference
Inheritance diagram for python.samplers.MXYZSampler:
Collaboration diagram for python.samplers.MXYZSampler:

Public Member Functions

def __init__ (self, px, py, pz, mass=0.0)
 
def mass (self)
 
def mass (self, x)
 
def px (self)
 
def px (self, x)
 
def py (self)
 
def py (self, x)
 
def pz (self)
 
def pz (self, x)
 
def shoot (self)
 
def __call__ (self)
 

Public Attributes

 mass
 
 px
 
 py
 
 pz
 

Private Attributes

 _m
 
 _px
 
 _py
 
 _pz
 

Detailed Description

Definition at line 384 of file samplers.py.

Constructor & Destructor Documentation

◆ __init__()

def python.samplers.MXYZSampler.__init__ (   self,
  px,
  py,
  pz,
  mass = 0.0 
)

Definition at line 387 of file samplers.py.

387  def __init__(self, px, py, pz, mass=0.0):
388  self.mass = mass
389  self.px = px
390  self.py = py
391  self.pz = pz
392 

Member Function Documentation

◆ __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.

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 

◆ mass() [1/2]

def python.samplers.MXYZSampler.mass (   self)

Definition at line 394 of file samplers.py.

394  def mass(self):
395  "Mass sampler"
396  return self._m

◆ mass() [2/2]

def python.samplers.MXYZSampler.mass (   self,
  x 
)

Definition at line 398 of file samplers.py.

398  def mass(self, x):
399  self._m = mksampler(x)
400 

◆ px() [1/2]

def python.samplers.MXYZSampler.px (   self)

Definition at line 402 of file samplers.py.

402  def px(self):
403  "px sampler"
404  return self._px

◆ px() [2/2]

def python.samplers.MXYZSampler.px (   self,
  x 
)

Definition at line 406 of file samplers.py.

406  def px(self, x):
407  self._px = mksampler(x)
408 

◆ py() [1/2]

def python.samplers.MXYZSampler.py (   self)

Definition at line 410 of file samplers.py.

410  def py(self):
411  "py sampler"
412  return self._py

◆ py() [2/2]

def python.samplers.MXYZSampler.py (   self,
  x 
)

Definition at line 414 of file samplers.py.

414  def py(self, x):
415  self._py = mksampler(x)
416 

◆ pz() [1/2]

def python.samplers.MXYZSampler.pz (   self)

Definition at line 418 of file samplers.py.

418  def pz(self):
419  "pz sampler"
420  return self._pz

◆ pz() [2/2]

def python.samplers.MXYZSampler.pz (   self,
  x 
)

Definition at line 422 of file samplers.py.

422  def pz(self, x):
423  self._pz = mksampler(x)
424 

◆ shoot()

def python.samplers.MXYZSampler.shoot (   self)

Reimplemented from python.samplers.Sampler.

Definition at line 425 of file samplers.py.

425  def shoot(self):
426  m = self.mass()
427  px = self.px()
428  py = self.py()
429  pz = self.pz()
430  e = math.sqrt(px**2 + py**2 + pz**2 + m**2)
431  v4 = ROOT.TLorentzVector(px, py, pz, e)
432  return v4
433 
434 

Member Data Documentation

◆ _m

python.samplers.MXYZSampler._m
private

Definition at line 399 of file samplers.py.

◆ _px

python.samplers.MXYZSampler._px
private

Definition at line 407 of file samplers.py.

◆ _py

python.samplers.MXYZSampler._py
private

Definition at line 415 of file samplers.py.

◆ _pz

python.samplers.MXYZSampler._pz
private

Definition at line 423 of file samplers.py.

◆ mass

python.samplers.MXYZSampler.mass

Definition at line 388 of file samplers.py.

◆ px

python.samplers.MXYZSampler.px

Definition at line 389 of file samplers.py.

◆ py

python.samplers.MXYZSampler.py

Definition at line 390 of file samplers.py.

◆ pz

python.samplers.MXYZSampler.pz

Definition at line 391 of file samplers.py.


The documentation for this class was generated from the following file:
test_pyathena.px
px
Definition: test_pyathena.py:18
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
python.samplers.mksampler
def mksampler(x)
Convenience function for sampler-making from Python literals.
Definition: samplers.py:245
Amg::py
@ py
Definition: GeoPrimitives.h:39
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18