public class HEParticle extends LParticle implements Serializable
Constructor and Description |
---|
HEParticle(double px,
double py,
double pz)
Define a 3-momentum for a given particle.
|
HEParticle(double px,
double py,
double pz,
double energy)
Define a particle in momentum space.
|
HEParticle(double px,
double py,
double pz,
double energy,
double mass)
Define a 4-momentum and energy particle
|
HEParticle(HepLorentzVector momentum,
HepLorentzVector position,
double mass)
Define a particle in momentum and position
|
HEParticle(String name,
double mass)
Define a particle with a name and mass
|
HEParticle(String name,
double px,
double py,
double pz,
double energy,
double mass)
Define a Lorentz particle in momentum space.
|
Modifier and Type | Method and Description |
---|---|
void |
add(HEParticle another)
Add 2 particles
|
void |
boost(HEParticle parent)
Lorentz Boost
|
HEParticle |
copy()
Make an exact copy of this particle
|
void |
doc()
Show online documentation.
|
int |
getBarcode()
Get barcode
|
float |
getChargeParity()
Returns C charge conjugation parity
|
float |
getIsospin()
Get isospin
|
LParticle |
getLParticle()
Returns a light-weight particle class
|
int |
getPdgcode()
Get PDG code
|
HepLorentzVector |
getPosition()
Get position in X,Y,Z,time
|
float |
getSpaceparity()
get P space parity
|
float |
getSpin()
Get J total spin
|
int |
getStatus()
Status Monte Carlo code
|
void |
print()
Print particle
|
double |
rapidity()
Compute rapidity.
|
void |
setBarcode(int barcode)
Set barcode ID
|
void |
setChargeParity(float chargeparity)
Set C charge conjugation parity
|
void |
setIsospin(float isospin)
Set isospin
|
void |
setPdgcode(int pdgcode)
Set PDG code
|
void |
setPosition(HepLorentzVector position)
Set position of particle in X,Y,Z,time.
|
void |
setSpaceParity(float spaceparity)
Set P space parity
|
void |
setSpin(float spin)
Set J total spin
|
void |
setStatus(int status)
Set Monte Carlo status code
|
String |
toString()
Convert to string
|
void |
twoBodyDecay(HEParticle prod1,
HEParticle prod2,
boolean randomRotate)
Evaluates 4-vector of decay product in the rest frame of parent.
|
abs, add, angle, boost, calcMass, compareTo, dividePxPyPzE, getCharge, getMass, getName, getParent, getV3, hashCode, mass, scalePxPyPzE, scaleXYZT, setCharge, setMass, setParent, setPtEtaPhiE, setPtEtaPhiM, setPxPyPz, setPxPyPzE, setThetaPhiP, setXYZT, twoBodyDecay
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, restMass2, setE, setPx, setPy, setPz, setT, setV3, setV3, setX, setY, setZ, skp, sub, t, theta, v3, x, y, z
public HEParticle(String name, double mass)
name
- particle namemass
- masspublic HEParticle(double px, double py, double pz)
px
- Pxpy
- Pypz
- Pzpublic HEParticle(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 HEParticle(HepLorentzVector momentum, HepLorentzVector position, double mass)
momentum
- 4-momentumposition
- postion in X,Y,Z,timemass
- masspublic HEParticle(double px, double py, double pz, double energy)
px
- Px or X positionpy
- Py or Y positionpz
- Pz or Z positionenergy
- energy or timepublic HEParticle(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 setPosition(HepLorentzVector position)
position
- public HepLorentzVector getPosition()
public double rapidity()
rapidity
in class HepLorentzVector
public void add(HEParticle another)
another
- particle to be addedpublic void setIsospin(float isospin)
isospin
- public float getIsospin()
public void setChargeParity(float chargeparity)
chargeparity
- charge paritypublic float getChargeParity()
public void setSpin(float spin)
spin
- public float getSpin()
public void setPdgcode(int pdgcode)
pdgcode
- public int getPdgcode()
public void setSpaceParity(float spaceparity)
spaceparity
- public float getSpaceparity()
public int getStatus()
public void setStatus(int status)
status
- public int getBarcode()
public void setBarcode(int barcode)
barcode
- public HEParticle copy()
public LParticle getLParticle()
public void twoBodyDecay(HEParticle prod1, HEParticle prod2, boolean randomRotate)
prod1
- first decay productprod2
- second decay productrandomRotate
- is Phi randomly rotated?public void boost(HEParticle parent)
parent
- parent particleJas4pp 1.5 © Java Analysis Studio for Particle Physics