ATLAS Offline Software
Loading...
Searching...
No Matches
python.samplers.PosSampler Class Reference

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

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

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, x, y, z, t=0)
 x (self)
 x (self, x)
 y (self)
 y (self, y)
 z (self)
 z (self, z)
 t (self)
 t (self, t)
 shoot (self)
 __call__ (self)

Public Attributes

 x = x
 y = y
 z = z
 t = t

Protected Attributes

 _x = mksampler(x)
 _y = mksampler(y)
 _z = mksampler(z)
 _t = mksampler(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.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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__()

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()

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]

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]

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]

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]

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]

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]

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]

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]

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 = mksampler(t)
protected

Definition at line 327 of file samplers.py.

◆ _x

python.samplers.PosSampler._x = mksampler(x)
protected

Definition at line 303 of file samplers.py.

◆ _y

python.samplers.PosSampler._y = mksampler(y)
protected

Definition at line 311 of file samplers.py.

◆ _z

python.samplers.PosSampler._z = mksampler(z)
protected

Definition at line 319 of file samplers.py.

◆ t

python.samplers.PosSampler.t = t

Definition at line 295 of file samplers.py.

◆ x

python.samplers.PosSampler.x = x

Definition at line 292 of file samplers.py.

◆ y

python.samplers.PosSampler.y = y

Definition at line 293 of file samplers.py.

◆ z

python.samplers.PosSampler.z = z

Definition at line 294 of file samplers.py.


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