public class HepLorentzVector extends Object implements Serializable
Constructor and Description |
---|
HepLorentzVector()
Default Lorentz vector constructor
|
HepLorentzVector(double[] x,
double t)
Define a Lorentz vector
|
HepLorentzVector(double x,
double y,
double z,
double t)
Define a Lorentz vector
This can either be (x,y,z,time) or (px,py,pz,energy)
|
HepLorentzVector(float[] x,
double t)
Define a Lorentz vector
|
HepLorentzVector(Hep3Vector v,
double t)
Define Lorentz vector
|
Modifier and Type | Method and Description |
---|---|
void |
add(HepLorentzVector parent)
Add 2 Lorentz vectors
|
HepLorentzVector |
add(HepLorentzVector v,
HepLorentzVector w)
Add 2 vectors
|
double |
angle(HepLorentzVector momentum)
Angle between 2 vectors
|
void |
boost(double bx,
double by,
double bz)
Lorentz Boost using 3-vector
|
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<HepLorentzVector> vecSet)
Return a center mass vector
|
HepLorentzVector |
copy()
Make exact copy
|
double |
cosTheta()
cosTheta
|
double |
dot(HepLorentzVector v,
HepLorentzVector w)
Dot product
|
double |
e()
Get energy
|
boolean |
equals(Object obj)
Compre 2 vectors
|
double |
et()
Transverse energy.
|
double |
et2()
Transverse energy squared.
|
double |
getE()
Get energy (as e())
|
double |
getEta()
Get a pseudorapidity: eta=-ln (tan (theta/2)) )
|
double |
getT()
Get time (as t())
|
Hep3Vector |
getV3()
Get 3-vector
|
int |
hashCode()
Hash code
|
double |
invariantMass()
Same as m().
|
double |
invariantMass2()
Same as m2().
|
boolean |
isLightlike(double epsilon)
is spacelike?
|
boolean |
isSpacelike()
Is particle spacelike (i.e restMass2() smaller than 0)
|
double |
m()
Invariant mass.
|
double |
m2()
Invariant mass squared
|
double |
mag()
Magnitude sqrt(x**2+y**2+z**2)
|
double |
mag2()
Magnitude squared: t()*t() - v.mag2() or e()*e() - v.mag2().
|
double |
mt()
Transverse mass.
|
double |
mt2()
Transverse mass: e()*e() - pz()*pz()
|
HepLorentzVector |
mult(double scalar,
HepLorentzVector v)
Multiply by a scaler
|
Hep3Vector |
neg(Hep3Vector v) |
HepLorentzVector |
neg(HepLorentzVector v)
Inverse
|
double |
perp()
Transverse momentum.
|
double |
perp2()
Transverse momentum squared
|
double |
phi()
Phi
|
double |
pseudoRapidity()
Pseudorapidity.
|
double |
px()
Get X position or (Px,Py,Pz)
|
double |
py()
Get Y position or Py
|
double |
pz()
Get Z position ot Pz
|
double |
rapidity()
Rapidity.
|
double |
restMass2()
Rest mass squared -- same as m2()
|
void |
setE(double e)
Set energy
|
void |
setPx(double px)
Set Px
|
void |
setPy(double py)
Set Py
|
void |
setPz(double pz)
Set Pz
|
void |
setT(double t)
Set time
|
void |
setV3(double x,
double y,
double z)
Set 3-vector position or Px,Py,Pz
|
void |
setV3(Hep3Vector v)
Set 3-vector
|
void |
setX(double x)
Set X position.
|
void |
setY(double y)
Set Y position.
|
void |
setZ(double z)
Set Z position.
|
double |
skp(HepLorentzVector momentum)
Useful: for x1*x2+y1*y2+z1*z2
|
HepLorentzVector |
sub(HepLorentzVector v,
HepLorentzVector w)
Subtract 2 vectors
|
double |
t()
Get time
|
double |
theta()
Get theta angle
|
String |
toString()
Convert to string
|
Hep3Vector |
v3()
Get 3-vector
|
double |
x()
Get X position or Px
|
double |
y()
Get Y
|
double |
z()
Get Z position or Pz
|
public HepLorentzVector()
public HepLorentzVector(double x, double y, double z, double t)
x
- X position (or Px)y
- Y position (or Py)z
- Z position (or Pz)t
- time or energypublic HepLorentzVector(double[] x, double t)
x
- 3-vector position or momentumt
- time or energypublic HepLorentzVector(float[] x, double t)
x
- 3-vector with position or 3-momentumt
- time or energypublic HepLorentzVector(Hep3Vector v, double t)
x
- 3-vector with position or 3-momentumt
- time or energypublic void setV3(Hep3Vector v)
v
- position 9x,y,z)public void setV3(double x, double y, double z)
x
- Xy
- Yz
- Zpublic double px()
public double py()
public double pz()
public double x()
public double y()
public double z()
public double e()
public double getE()
public void setPx(double px)
px
- public void setPy(double py)
py
- public void setPz(double pz)
pz
- public void setX(double x)
x
- position.public void setY(double y)
y
- Y position.public void setZ(double z)
z
- X position.public void add(HepLorentzVector parent)
parent
- public double mt2()
public double mag2()
public void boost(double bx, double by, double bz)
bx
- Xby
- Ybz
- Zpublic void setE(double e)
e
- energypublic void setT(double t)
t
- timepublic double t()
public double getT()
public Hep3Vector v3()
public double et2()
public double et()
public double restMass2()
public double mt()
public double invariantMass2()
public double m2()
public double invariantMass()
public double m()
public boolean isSpacelike()
public boolean isLightlike(double epsilon)
epsilon
- precisionpublic double dot(HepLorentzVector v, HepLorentzVector w)
v
- w
- public HepLorentzVector add(HepLorentzVector v, HepLorentzVector w)
v
- w
- public HepLorentzVector sub(HepLorentzVector v, HepLorentzVector w)
v
- w
- public HepLorentzVector mult(double scalar, HepLorentzVector v)
scalar
- v
- public HepLorentzVector neg(HepLorentzVector v)
v
- public Hep3Vector neg(Hep3Vector v)
public Hep3Vector centerOfMass(List<HepLorentzVector> vecSet)
vecSet
- public HepLorentzVector boost(HepLorentzVector fourVector, Hep3Vector boostVector)
public HepLorentzVector boost(HepLorentzVector fourVector, HepLorentzVector refFourVector)
public double cosTheta()
public double phi()
public double perp()
public double perp2()
public double angle(HepLorentzVector momentum)
momentum
- public double theta()
public double pseudoRapidity()
public double rapidity()
public double getEta()
public Hep3Vector getV3()
public double mag()
public double skp(HepLorentzVector momentum)
momentum
- public HepLorentzVector copy()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics