hep.physics.vec
Class BasicHepLorentzVector

java.lang.Object
  extended by hep.physics.vec.BasicHepLorentzVector
All Implemented Interfaces:
HepLorentzVector, java.io.Serializable

public class BasicHepLorentzVector
extends java.lang.Object
implements HepLorentzVector, java.io.Serializable

BasicImplementation of a HepLorentzVector (4-vector)

Version:
$Id: BasicHepLorentzVector.java 9146 2006-10-16 19:22:42Z tonyj $
Author:
Gary Bower (grb@slac.stanford.edu)
See Also:
Serialized Form

Constructor Summary
BasicHepLorentzVector()
           
BasicHepLorentzVector(double t, double[] x)
           
BasicHepLorentzVector(double t, double x, double y, double z)
           
BasicHepLorentzVector(double t, float[] x)
           
BasicHepLorentzVector(double t, Hep3Vector v)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 double magnitude()
          The magnitude of the Lorentz vector.
 double magnitudeSquared()
          The square of the magnitude of the vector
 void setT(double t)
           
 void setV3(double t, double x, double y, double z)
           
 void setV3(double t, Hep3Vector v)
           
 double t()
           
 java.lang.String toString()
           
 Hep3Vector v3()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicHepLorentzVector

public BasicHepLorentzVector()

BasicHepLorentzVector

public BasicHepLorentzVector(double t,
                             double x,
                             double y,
                             double z)

BasicHepLorentzVector

public BasicHepLorentzVector(double t,
                             double[] x)

BasicHepLorentzVector

public BasicHepLorentzVector(double t,
                             float[] x)

BasicHepLorentzVector

public BasicHepLorentzVector(double t,
                             Hep3Vector v)
Method Detail

setV3

public void setV3(double t,
                  double x,
                  double y,
                  double z)

setV3

public void setV3(double t,
                  Hep3Vector v)

setT

public void setT(double t)

t

public double t()
Specified by:
t in interface HepLorentzVector

v3

public Hep3Vector v3()
Specified by:
v3 in interface HepLorentzVector

magnitude

public double magnitude()
Description copied from interface: HepLorentzVector
The magnitude of the Lorentz vector.

Specified by:
magnitude in interface HepLorentzVector

magnitudeSquared

public double magnitudeSquared()
Description copied from interface: HepLorentzVector
The square of the magnitude of the vector

Specified by:
magnitudeSquared in interface HepLorentzVector

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2010 FreeHEP. All Rights Reserved.