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

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, px, py, pz, mass=0.0)
 mass (self)
 mass (self, x)
 px (self)
 px (self, x)
 py (self)
 py (self, x)
 pz (self)
 pz (self, x)
 shoot (self)
 __call__ (self)

Public Attributes

 mass = mass
 px = px
 py = py
 pz = pz

Protected Attributes

 _m = mksampler(x)
 _px = mksampler(x)
 _py = mksampler(x)
 _pz = mksampler(x)

Detailed Description

Definition at line 384 of file samplers.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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

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]

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]

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]

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]

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]

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]

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]

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]

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

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

Definition at line 399 of file samplers.py.

◆ _px

python.samplers.MXYZSampler._px = mksampler(x)
protected

Definition at line 407 of file samplers.py.

◆ _py

python.samplers.MXYZSampler._py = mksampler(x)
protected

Definition at line 415 of file samplers.py.

◆ _pz

python.samplers.MXYZSampler._pz = mksampler(x)
protected

Definition at line 423 of file samplers.py.

◆ mass

python.samplers.MXYZSampler.mass = mass

Definition at line 388 of file samplers.py.

◆ px

python.samplers.MXYZSampler.px = px

Definition at line 389 of file samplers.py.

◆ py

python.samplers.MXYZSampler.py = py

Definition at line 390 of file samplers.py.

◆ pz

python.samplers.MXYZSampler.pz = pz

Definition at line 391 of file samplers.py.


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