ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
python.samplers.PosSampler Class Reference

Beam-spot (origin vertex) sampling. More...

Inheritance diagram for python.samplers.PosSampler:
Collaboration diagram for python.samplers.PosSampler:

Public Member Functions

def __init__ (self, x, y, z, t=0)
 
def x (self)
 
def x (self, x)
 
def y (self)
 
def y (self, y)
 
def z (self)
 
def z (self, z)
 
def t (self)
 
def t (self, t)
 
def shoot (self)
 
def __call__ (self)
 

Public Attributes

 x
 
 y
 
 z
 
 t
 

Private Attributes

 _x
 
 _y
 
 _z
 
 _t
 

Detailed Description

Beam-spot (origin vertex) sampling.

Sampler of position 3-vectors, for modelling a beamspot.

Definition at line 286 of file samplers.py.

Constructor & Destructor Documentation

◆ __init__()

def python.samplers.PosSampler.__init__ (   self,
  x,
  y,
  z,
  t = 0 
)

Definition at line 291 of file samplers.py.

291  def __init__(self, x, y, z, t=0):
292  self.x = x
293  self.y = y
294  self.z = z
295  self.t = t
296 

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 

◆ shoot()

def python.samplers.PosSampler.shoot (   self)

Reimplemented from python.samplers.Sampler.

Definition at line 329 of file samplers.py.

329  def shoot(self):
330  x = self.x()
331  y = self.y()
332  z = self.z()
333  t = self.t()
334  #print "POS =", x, y, z, t
335  return ROOT.TLorentzVector(x, y, z, t)
336 
337 
338 # TODO: Make a 3-Gaussian BeamspotSampler
339 
340 

◆ t() [1/2]

def python.samplers.PosSampler.t (   self)

Definition at line 322 of file samplers.py.

322  def t(self):
323  "Time sampler"
324  return self._t

◆ t() [2/2]

def python.samplers.PosSampler.t (   self,
  t 
)

Definition at line 326 of file samplers.py.

326  def t(self, t):
327  self._t = mksampler(t)
328 

◆ x() [1/2]

def python.samplers.PosSampler.x (   self)

Definition at line 298 of file samplers.py.

298  def x(self):
299  "x position sampler"
300  return self._x

◆ x() [2/2]

def python.samplers.PosSampler.x (   self,
  x 
)

Definition at line 302 of file samplers.py.

302  def x(self, x):
303  self._x = mksampler(x)
304 

◆ y() [1/2]

def python.samplers.PosSampler.y (   self)

Definition at line 306 of file samplers.py.

306  def y(self):
307  "y position sampler"
308  return self._y

◆ y() [2/2]

def python.samplers.PosSampler.y (   self,
  y 
)

Definition at line 310 of file samplers.py.

310  def y(self, y):
311  self._y = mksampler(y)
312 

◆ z() [1/2]

def python.samplers.PosSampler.z (   self)

Definition at line 314 of file samplers.py.

314  def z(self):
315  "z position sampler"
316  return self._z

◆ z() [2/2]

def python.samplers.PosSampler.z (   self,
  z 
)

Definition at line 318 of file samplers.py.

318  def z(self, z):
319  self._z = mksampler(z)
320 

Member Data Documentation

◆ _t

python.samplers.PosSampler._t
private

Definition at line 327 of file samplers.py.

◆ _x

python.samplers.PosSampler._x
private

Definition at line 303 of file samplers.py.

◆ _y

python.samplers.PosSampler._y
private

Definition at line 311 of file samplers.py.

◆ _z

python.samplers.PosSampler._z
private

Definition at line 319 of file samplers.py.

◆ t

python.samplers.PosSampler.t

Definition at line 295 of file samplers.py.

◆ x

python.samplers.PosSampler.x

Definition at line 292 of file samplers.py.

◆ y

python.samplers.PosSampler.y

Definition at line 293 of file samplers.py.

◆ z

python.samplers.PosSampler.z

Definition at line 294 of file samplers.py.


The documentation for this class was generated from the following file:
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
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