hep.physics.vec
Class BasicHepLorentzVector
- java.lang.Object
-
- 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)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)inthashCode()doublemagnitude()The magnitude of the Lorentz vector.doublemagnitudeSquared()The square of the magnitude of the vectorvoidsetT(double t)voidsetV3(double t, double x, double y, double z)voidsetV3(double t, Hep3Vector v)doublet()java.lang.StringtoString()Hep3Vectorv3()
-
-
-
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:
tin interfaceHepLorentzVector
-
v3
public Hep3Vector v3()
- Specified by:
v3in interfaceHepLorentzVector
-
magnitude
public double magnitude()
Description copied from interface:HepLorentzVectorThe magnitude of the Lorentz vector.- Specified by:
magnitudein interfaceHepLorentzVector
-
magnitudeSquared
public double magnitudeSquared()
Description copied from interface:HepLorentzVectorThe square of the magnitude of the vector- Specified by:
magnitudeSquaredin interfaceHepLorentzVector
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG