public class LParticle extends HepLorentzVector implements Comparable<LParticle>, Serializable
Constructor and Description |
---|
LParticle()
Define a dummy particle.
|
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(String name)
Define a particle with a name.
|
LParticle(String name,
double mass)
Define a particle with a name and mass.
|
LParticle(String name,
double px,
double py,
double pz,
double energy,
double mass)
Define a Lorentz particle in momentum or coordinate space.
|
Modifier and Type | Method and Description |
---|---|
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)
|
int |
compareTo(LParticle o)
Comparator.
|
LParticle |
copy()
Make an exact copy of this particle
|
void |
dividePxPyPzE(double scale)
Divide all components (Px,Py,Px,E) by a factor C.
|
void |
doc()
Show online documentation.
|
double |
getCharge()
Get charge
|
double |
getMass()
Get a mass
|
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 |
scalePxPyPzE(double scale)
Scale all components (Px,Py,Px,E) by a factor C.
|
void |
scaleXYZT(double scale)
Scale all components (X,Y,Z,T) by a factor This means all components are
multiplied by this factor.
|
void |
setCharge(double charge)
Set charge
|
void |
setMass(double mass)
Set a mass
|
void |
setParent(LParticle parent)
Set a parent particle
|
void |
setPtEtaPhiE(double pt,
double eta,
double phi,
double e)
Set 4-momentum of a particle using transverse momentum (pt),
pseudorapidity (Eta) and azimuthal angle (phi) and energy.
|
void |
setPtEtaPhiM(double pt,
double eta,
double phi,
double m)
Set 4-momentum of a particle using transverse momentum (pt),
pseudorapidity (eta) and azimuthal angle (phi) and mass (m).
|
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 and energy of a particle
|
void |
setThetaPhiP(double theta,
double phi,
double P)
Set HepLorentzVector using theta angle, phi and total momentum P.
|
void |
setXYZT(double x,
double y,
double z,
double t)
Set x,y,z and time for a particle (vertex position)
|
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.
|
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, setX, setY, setZ, skp, sub, t, theta, v3, x, y, z
public LParticle()
public LParticle(String name)
name
- particle namepublic LParticle(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 positionenergy
- energy or timepublic LParticle(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
- masspublic void setPxPyPz(double px, double py, double pz)
px
- py
- pz
- public void setPxPyPzE(double px, double py, double pz, double e)
px
- Px momentumpy
- Py momentumpz
- Pz momentume
- energypublic void setXYZT(double x, double y, double z, double t)
x
- X positiony
- Y positionz
- Z positiont
- timepublic void setParent(LParticle parent)
parent
- parent particlepublic void scalePxPyPzE(double scale)
scale
- factor used to multiply Px,Py,Pz,E components.public void scaleXYZT(double scale)
scale
- factor used to multiply X,Y,Z,T components.public void dividePxPyPzE(double scale)
scale
- factor used to divide Px,Py,Pz,Epublic LParticle getParent()
public void add(LParticle another)
another
- particle to be eddedpublic double getMass()
public double mass()
public 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 void setPtEtaPhiE(double pt, double eta, double phi, double e)
pt
- transverse momentum of a particle.eta
- eta (pseudorapidity) .phi
- azimuthal anglee
- energypublic void setPtEtaPhiM(double pt, double eta, double phi, double m)
pt
- transverse momentum of a particle.eta
- eta (pseudorapidity) .phi
- azimuthal anglem
- masspublic double abs()
public void setCharge(double charge)
charge
- chargepublic double getCharge()
public double angle(LParticle momentum)
momentum
- parent particlepublic 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 String toString()
toString
in class HepLorentzVector
public LParticle copy()
copy
in class HepLorentzVector
public void print()
public void doc()
public int compareTo(LParticle o)
compareTo
in interface Comparable<LParticle>
o
- Jas4pp 1.5 © Java Analysis Studio for Particle Physics