FreeHEP API
Version current

hep.physics.vec
Class BasicHepLorentzVector

java.lang.Object
  extended byhep.physics.vec.BasicHepLorentzVector
All Implemented Interfaces:
HepLorentzVector, Serializable

public class BasicHepLorentzVector
extends Object
implements HepLorentzVector, Serializable

BasicImplementation of a HepLorentzVector (4-vector)

Author:
Gary Bower (grb@slac.stanford.edu)
See Also:
Serialized Form
Source Code:
BasicHepLorentzVector.java

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

hashCode

public int hashCode()

toString

public String toString()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.