Package madgraph :: Package various :: Module lhe_parser :: Class FourMomentum
[hide private]
[frames] | no frames]

Class FourMomentum

source code

object --+
         |
        FourMomentum

a convenient object for 4-momenta operation

Instance Methods [hide private]
 
__init__(self, obj=0, px=0, py=0, pz=0, E=0)
initialize the four momenta
source code
 
__add__(self, obj) source code
 
__iadd__(self, obj)
update the object with the sum
source code
 
__sub__(self, obj) source code
 
__isub__(self, obj)
update the object with the sum
source code
 
__mul__(self, obj) source code
 
__rmul__(self, obj) source code
 
__pow__(self, power) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self, mode='python')
str(x)
source code
 
get_tuple(self) source code
 
boost(self, mom)
mom 4-momenta is suppose to be given in the rest frame of this 4-momenta.
source code
 
zboost(self, pboost=None, E=0, pz=0)
Both momenta should be in the same frame.
source code
 
boost_to_restframe(self, pboost)
apply the boost transformation such that pboost is at rest in the new frame.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  mass
return the mass
  mass_sqr
return the mass square
  pt
  pseudorapidity
  rapidity
  pt2
return the pt square
  norm
return | ec p|
  norm_sq
return | ec p|^2
  theta
return the mass square

Inherited from object: __class__

Method Details [hide private]

__init__(self, obj=0, px=0, py=0, pz=0, E=0)
(Constructor)

source code 

initialize the four momenta

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self, mode='python')
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

boost(self, mom)

source code 

mom 4-momenta is suppose to be given in the rest frame of this 4-momenta. the output is the 4-momenta in the frame of this 4-momenta function copied from HELAS routine.

zboost(self, pboost=None, E=0, pz=0)

source code 

Both momenta should be in the same frame. The boost perform correspond to the boost required to set pboost at rest (only z boost applied).

boost_to_restframe(self, pboost)

source code 

apply the boost transformation such that pboost is at rest in the new frame. First apply a rotation to allign the pboost to the z axis and then use zboost routine (see above)


Property Details [hide private]

mass

return the mass

Get Method:
unreachable.mass(self) - return the mass

mass_sqr

return the mass square

Get Method:
unreachable.mass_sqr(self) - return the mass square

pt

Get Method:
unreachable.pt(self)

pseudorapidity

Get Method:
unreachable.pseudorapidity(self)

rapidity

Get Method:
unreachable.rapidity(self)

pt2

return the pt square

Get Method:
unreachable.pt2(self) - return the pt square

norm

return | ec p|

Get Method:
unreachable.norm(self) - return | ec p|

norm_sq

return | ec p|^2

Get Method:
unreachable.norm_sq(self) - return | ec p|^2

theta

return the mass square

Get Method:
unreachable.theta(self) - return the mass square