hephysics.vec
Class VecOp

java.lang.Object
  extended by hephysics.vec.VecOp

public class VecOp
extends Object

Utility methods for dealing with 3 and 4 vectors.


Method Summary
static Hep3Vector add(Hep3Vector v, Hep3Vector w)
           
static HepLorentzVector boost(HepLorentzVector fourVector, Hep3Vector boostVector)
          Boost fourVector with boostVector.
static HepLorentzVector boost(HepLorentzVector fourVector, HepLorentzVector refFourVector)
          Boost fourVector into system of refFourVector.
static double cosTheta(Hep3Vector vector)
           
static Hep3Vector cross(Hep3Vector v, Hep3Vector w)
           
static double dot(Hep3Vector v, Hep3Vector w)
           
static Hep3Matrix inverse(Hep3Matrix m)
           
static Hep3Matrix mult(double scalar, Hep3Matrix m)
           
static Hep3Vector mult(double scalar, Hep3Vector v)
           
static Hep3Matrix mult(Hep3Matrix m1, Hep3Matrix m2)
           
static Hep3Vector mult(Hep3Matrix m, Hep3Vector v)
           
static Hep3Vector neg(Hep3Vector v)
           
static double phi(Hep3Vector vector)
           
static Hep3Vector sub(Hep3Vector v, Hep3Vector w)
           
static String toString(Hep3Matrix m)
           
static String toString(Hep3Vector v)
           
static String toString(HepLorentzVector v)
           
static Hep3Vector unit(Hep3Vector v)
          returns (0,0,0) vector if input vector has length 0
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public static Hep3Vector add(Hep3Vector v,
                             Hep3Vector w)

sub

public static Hep3Vector sub(Hep3Vector v,
                             Hep3Vector w)

mult

public static Hep3Vector mult(double scalar,
                              Hep3Vector v)

mult

public static Hep3Vector mult(Hep3Matrix m,
                              Hep3Vector v)

mult

public static Hep3Matrix mult(Hep3Matrix m1,
                              Hep3Matrix m2)

mult

public static Hep3Matrix mult(double scalar,
                              Hep3Matrix m)

inverse

public static Hep3Matrix inverse(Hep3Matrix m)
                          throws hephysics.matrix.MatrixOp.IndeterminateMatrixException
Throws:
hephysics.matrix.MatrixOp.IndeterminateMatrixException

neg

public static Hep3Vector neg(Hep3Vector v)

dot

public static double dot(Hep3Vector v,
                         Hep3Vector w)

cross

public static Hep3Vector cross(Hep3Vector v,
                               Hep3Vector w)

unit

public static Hep3Vector unit(Hep3Vector v)
returns (0,0,0) vector if input vector has length 0


boost

public static HepLorentzVector boost(HepLorentzVector fourVector,
                                     Hep3Vector boostVector)
Boost fourVector with boostVector. Note, that beta=abs(boostVector) needs to be 0 < beta < 1.


boost

public static HepLorentzVector boost(HepLorentzVector fourVector,
                                     HepLorentzVector refFourVector)
Boost fourVector into system of refFourVector.


cosTheta

public static double cosTheta(Hep3Vector vector)

phi

public static double phi(Hep3Vector vector)

toString

public static String toString(Hep3Vector v)

toString

public static String toString(HepLorentzVector v)

toString

public static String toString(Hep3Matrix m)


jHepWork 3.1 ©