FreeHEP API
Version current

hep.physics.vec
Class VecOp

java.lang.Object
  extended byhep.physics.vec.VecOp

public class VecOp
extends Object

Utility methods for dealing with 3 and 4 vectors.

Source Code:
VecOp.java

Method Summary
static Hep3Vector add(Hep3Vector v, Hep3Vector w)
           
static HepLorentzVector add(HepLorentzVector v, HepLorentzVector w)
           
static HepLorentzVector boost(HepLorentzVector fourVector, Hep3Vector boostVector)
          Boost fourVector with boostVector Note, that beta=abs(boostVector) needs to be 0 < beta < 1.
static HepLorentzVector boost(HepLorentzVector fourVector, HepLorentzVector refFourVector)
          Boost fourVector into system of refFourVector.
static Hep3Vector centerOfMass(List vecSet)
           
static double cosTheta(Hep3Vector vector)
           
static Hep3Vector cross(Hep3Vector v, Hep3Vector w)
           
static double dot(Hep3Vector v, Hep3Vector w)
           
static double dot(HepLorentzVector v, HepLorentzVector w)
           
static Hep3Vector mult(double scalar, Hep3Vector v)
           
static HepLorentzVector mult(double scalar, HepLorentzVector v)
           
static Hep3Vector mult(Hep3Matrix m, Hep3Vector v)
           
static Hep3Vector neg(Hep3Vector v)
           
static HepLorentzVector neg(HepLorentzVector v)
           
static double phi(Hep3Vector vector)
           
static Hep3Vector sub(Hep3Vector v, Hep3Vector w)
           
static HepLorentzVector sub(HepLorentzVector v, HepLorentzVector w)
           
static Hep3Vector unit(Hep3Vector v)
          returns (0,0,0) vector if input vector has length 0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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)

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


add

public static HepLorentzVector add(HepLorentzVector v,
                                   HepLorentzVector w)

sub

public static HepLorentzVector sub(HepLorentzVector v,
                                   HepLorentzVector w)

mult

public static HepLorentzVector mult(double scalar,
                                    HepLorentzVector v)

neg

public static HepLorentzVector neg(HepLorentzVector v)

dot

public static double dot(HepLorentzVector v,
                         HepLorentzVector w)

centerOfMass

public static Hep3Vector centerOfMass(List vecSet)

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.

Author::
W.Walkowiak, 02/27/2001

cosTheta

public static double cosTheta(Hep3Vector vector)

phi

public static double phi(Hep3Vector vector)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.