public class Hep3Vector extends Object implements Serializable
Constructor and Description |
---|
Hep3Vector()
New 3-vector
|
Hep3Vector(double[] d)
Create a BasicHep3Vector from a double array
|
Hep3Vector(double dx,
double dy,
double dz)
Define a 3-vector
|
Hep3Vector(float[] f)
Define a new vector
|
Modifier and Type | Method and Description |
---|---|
double |
abs()
Magnitude
|
void |
add(Hep3Vector v)
Add a vector
|
Hep3Vector |
add(Hep3Vector v,
Hep3Vector w)
Add 2 vectors and return a new object
|
double |
angle(Hep3Vector momentum)
Angle between 2 vectors
|
HepLorentzVector |
boost(HepLorentzVector fourVector,
Hep3Vector boostVector)
Boost fourVector with boostVector.
|
HepLorentzVector |
boost(HepLorentzVector fourVector,
HepLorentzVector refFourVector)
Boost fourVector into system of refFourVector.
|
Hep3Vector |
centerOfMass(List<Hep3Vector> vecSet)
Return a center of mass of a list of vectors
|
Hep3Vector |
copy(Hep3Vector p)
New copy
|
double |
cosTheta()
cosTheta
|
double |
cosTheta(Hep3Vector vector)
Cosine Theta
|
Hep3Vector |
cross(Hep3Vector v,
Hep3Vector w)
Cross product of 2 vectors
|
double |
dot(Hep3Vector p)
Dot operation
|
double |
dot(Hep3Vector v,
Hep3Vector w)
Dot product of 2 vectors
|
boolean |
equals(Object obj) |
double |
getEta() |
int |
hashCode() |
double |
mag() |
double |
mag2() |
double |
magnitudeSquared() |
void |
mult(double scalar)
Multiply by a scaler
|
Hep3Vector |
mult(double scalar,
Hep3Vector v)
Multiply by a scaler
|
Hep3Vector |
mult(Hep3Matrix m,
Hep3Vector v) |
Hep3Vector |
neg(Hep3Vector v)
Invert
|
double |
perp()
Transverse
|
double |
perp2()
Transverse
|
double |
phi()
Phi
|
double |
pseudoRapidity()
Pseudorapidity.
|
double |
rapidity()
Rapidity.
|
void |
setPhi(double ph)
Set phi
|
void |
setV(double dx,
double dy,
double dz)
Set vector
|
void |
setX(double x)
Set X component
|
void |
setY(double y)
Y component
|
void |
setZ(double z)
Set Z component
|
void |
sub(Hep3Vector v)
Subtract
|
Hep3Vector |
sub(Hep3Vector v,
Hep3Vector w)
Subtract
|
double |
theta()
angle theta (=atan2(perp(),z)
|
String |
toString() |
Hep3Vector |
unit(Hep3Vector v)
returns (0,0,0) vector if input vector has length 0
|
double[] |
v() |
double |
x() |
double |
y() |
double |
z() |
public Hep3Vector()
public Hep3Vector(double dx, double dy, double dz)
dx
- dy
- dz
- public Hep3Vector(double[] d)
d
- An array {x,y,z}public Hep3Vector(float[] f)
f
- public double abs()
public Hep3Vector copy(Hep3Vector p)
p
- public double cosTheta()
public double phi()
public Hep3Vector unit(Hep3Vector v)
public Hep3Vector neg(Hep3Vector v)
v
- public Hep3Vector add(Hep3Vector v, Hep3Vector w)
v
- w
- public void add(Hep3Vector v)
v
- public void sub(Hep3Vector v)
v
- public Hep3Vector sub(Hep3Vector v, Hep3Vector w)
v
- w
- public Hep3Vector mult(double scalar, Hep3Vector v)
scalar
- v
- public void mult(double scalar)
scalar
- public Hep3Vector centerOfMass(List<Hep3Vector> vecSet)
vecSet
- public Hep3Vector cross(Hep3Vector v, Hep3Vector w)
v
- vector 1w
- vector 2public double dot(Hep3Vector v, Hep3Vector w)
v
- vector 1w
- vector 2public double perp()
public double dot(Hep3Vector p)
p
- public double perp2()
public double angle(Hep3Vector momentum)
momentum
- public void setV(double dx, double dy, double dz)
dx
- dy
- dz
- public double x()
public double y()
public double z()
public void setX(double x)
x
- public HepLorentzVector boost(HepLorentzVector fourVector, Hep3Vector boostVector)
public HepLorentzVector boost(HepLorentzVector fourVector, HepLorentzVector refFourVector)
public Hep3Vector mult(Hep3Matrix m, Hep3Vector v)
public void setY(double y)
y
- public void setZ(double z)
z
- public double mag2()
public double theta()
public double cosTheta(Hep3Vector vector)
vector
- public void setPhi(double ph)
ph
- phi in radianspublic double pseudoRapidity()
public double rapidity()
public double getEta()
public double mag()
public double magnitudeSquared()
public double[] v()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics