|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthephysics.vec.HepLorentzVector
hephysics.particle.LParticle
public class LParticle
a light-weight Lorentz-type particle based on four-Lorentz vector. Particle is characterized by either (px,py,pz,E) or (x,y,z,time).
Constructor Summary | |
---|---|
LParticle(double px,
double py,
double pz)
Define a 3-momentum or X,Y,Z position. |
|
LParticle(double px,
double py,
double pz,
double energy)
Define a particle in momentum or 4-space time. |
|
LParticle(double px,
double py,
double pz,
double energy,
double mass)
Define a particle in momentum or coordinate space. |
|
LParticle(java.lang.String name,
double mass)
Define a particle with a name and mass |
|
LParticle(java.lang.String name,
double px,
double py,
double pz,
double energy,
double mass)
Define a Lorentz particle in momentum or coordinate space. |
Method Summary | |
---|---|
double |
abs()
Magnitude |
void |
add(LParticle another)
Add 2 particle |
double |
angle(LParticle momentum)
Angle between 2 vectors in rad |
void |
boost(LParticle parent)
Lorentz Boost |
double |
calcMass()
Get calculated mass as sqrt(e*e-px**2-py**2-pz**2) |
LParticle |
copy()
Make an exact copy of this particle |
double |
getCharge()
Get charge |
double |
getMass()
Get a mass |
java.lang.String |
getName()
Get a name |
LParticle |
getParent()
Get a parent particle |
Hep3Vector |
getV3()
Get a 3-vector woth (Px,Py,Pz) or (X,Y,Z) |
int |
hashCode()
Get a hash code |
double |
mass()
Get a mass |
void |
print()
Print particle |
void |
setCharge(double charge)
Set charge |
void |
setMass(double mass)
Set a mass |
void |
setParent(LParticle parent)
Set a parent particle |
void |
setPxPyPz(double px,
double py,
double pz)
Set Px,Py,Pz (or x,y,z) |
void |
setPxPyPzE(double px,
double py,
double pz,
double e)
Set Px,Py,Pz (or x,y,z) and energy |
void |
setThetaPhiP(double theta,
double phi,
double P)
Set HepLorentzVector using theta angle, phi and total momentum. |
java.lang.String |
toString()
Convert to string |
void |
twoBodyDecay(LParticle prod1,
LParticle prod2,
boolean randomRotate)
Evaluates 4-vector of decay product in the rest frame of parent. |
Methods inherited from class hephysics.vec.HepLorentzVector |
---|
add, add, angle, boost, boost, boost, centerOfMass, cosTheta, dot, e, equals, et, et2, getE, getEta, getT, invariantMass, invariantMass2, isLightlike, isSpacelike, m, m2, mag, mag2, mt, mt2, mult, neg, neg, perp, perp2, phi, pseudoRapidity, px, py, pz, rapidity, restMass2, setE, setPx, setPy, setPz, setT, setV3, setV3, skp, sub, t, theta, v3, x, y, z |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LParticle(java.lang.String name, double mass)
name
- particle namemass
- masspublic LParticle(double px, double py, double pz)
px
- Px (or X_)py
- Py (or Y)pz
- Pz (or Z)public LParticle(double px, double py, double pz, double energy, double mass)
px
- Px (or X position)py
- Py (or Y position)pz
- Pz (or Z position)energy
- energy (or time)mass
- masspublic LParticle(double px, double py, double pz, double energy)
px
- Px or X positionpy
- Py or Y positionpz
- Pz or Z postionenergy
- energy or timepublic LParticle(java.lang.String name, double px, double py, double pz, double energy, double mass)
name
- Name of particlepx
- px (or X)py
- py (or Y)pz
- pz (or Z)energy
- energy or timemass
- massMethod Detail |
---|
public void setPxPyPz(double px, double py, double pz)
px
- py
- pz
- public void setPxPyPzE(double px, double py, double pz, double e)
px
- py
- pz
- e
- energypublic void setParent(LParticle parent)
parent
- parent particlepublic LParticle getParent()
public void add(LParticle another)
another
- particle to be eddedpublic double getMass()
public double mass()
public java.lang.String getName()
public Hep3Vector getV3()
getV3
in class HepLorentzVector
public void setMass(double mass)
mass
- Masspublic int hashCode()
hashCode
in class HepLorentzVector
public void setThetaPhiP(double theta, double phi, double P)
theta
- thetaphi
- phiP
- momentumpublic double abs()
public void setCharge(double charge)
charge
- chargepublic double getCharge()
public double angle(LParticle momentum)
momentum
- parent particle
public double calcMass()
public void twoBodyDecay(LParticle prod1, LParticle prod2, boolean randomRotate)
prod1
- first decay productprod2
- second decay productrandomRotate
- is Phi randomly rotated?public void boost(LParticle parent)
parent
- parent particlepublic java.lang.String toString()
toString
in class HepLorentzVector
public LParticle copy()
copy
in class HepLorentzVector
public void print()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |