fourvector Class Reference

#include <fourvector.h>

List of all members.

Public Member Functions

 fourvector (void)
 fourvector (double t, double x, double y, double z)
fourvectorsum_up (const fourvector &v)
fourvectorrescale (double c)
double transverse_momentum (void) const
double rapidity (void) const
double azimuthal_angle (void) const
double spatial_norm (void) const
double spatial_scalar_product (const fourvector &q) const
double energy_component (void) const

Protected Attributes

double t
double x
double y
double z

Detailed Description

The class fourvector


Constructor & Destructor Documentation

fourvector ( void   )  [inline]

Default constructor

fourvector ( double  tt,
double  xx,
double  yy,
double  zz 
) [inline]

Standard constructor


Member Function Documentation

double azimuthal_angle ( void   )  const [inline]

Returns the azimuthal angle $\phi$.

double energy_component ( void   )  const [inline]

Returns the energy component.

double rapidity ( void   )  const [inline]

Returns the rapidity with respect to the $z$-axis.

fourvector & rescale ( double  c  )  [inline]

Scales all components by $c$.

double spatial_norm ( void   )  const [inline]

The norm of the spatial components of the fourvector:

\[ v_x^2 + v_y^2 + v_z^2 \]

double spatial_scalar_product ( const fourvector q  )  const [inline]

Returns

\[ \vec{p} \cdot \vec{q} \]

fourvector & sum_up ( const fourvector v  )  [inline]

Adds $v$ to the fourvector.

double transverse_momentum ( void   )  const [inline]

Returns the transverse momentum with respect to the $z$-axis.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208