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

Public Member Functions

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

Public Attributes

 mass
 

Private Attributes

 _m
 

Detailed Description

Definition at line 365 of file samplers.py.

Constructor & Destructor Documentation

◆ __init__()

def python.samplers.NullMomSampler.__init__ (   self,
  mass = 0.0 
)

Definition at line 368 of file samplers.py.

368  def __init__(self, mass=0.0):
369  self.mass = mass
370 

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.NullMomSampler.mass (   self)

Definition at line 372 of file samplers.py.

372  def mass(self):
373  "Mass sampler"
374  return self._m

◆ mass() [2/2]

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

Definition at line 376 of file samplers.py.

376  def mass(self, x):
377  self._m = mksampler(x)
378 

◆ shoot()

def python.samplers.NullMomSampler.shoot (   self)

Reimplemented from python.samplers.Sampler.

Definition at line 379 of file samplers.py.

379  def shoot(self):
380  v4 = ROOT.TLorentzVector(0, 0, 0, self.mass)
381  return v4
382 
383 

Member Data Documentation

◆ _m

python.samplers.NullMomSampler._m
private

Definition at line 377 of file samplers.py.

◆ mass

python.samplers.NullMomSampler.mass

Definition at line 369 of file samplers.py.


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