hephysics.particle
Class HEParticle
- java.lang.Object
-
- hephysics.vec.HepLorentzVector
-
- hephysics.particle.LParticle
-
- hephysics.particle.HEParticle
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<LParticle>
public class HEParticle extends LParticle implements java.io.Serializable
a HEP-type basic particle based on 4-Lorentz vector. It is characterized by status, particle code, and coordinate position in (X,Y,Z,time).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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 particleHEParticle(HepLorentzVector momentum, HepLorentzVector position, double mass)Define a particle in momentum and positionHEParticle(java.lang.String name, double mass)Define a particle with a name and massHEParticle(java.lang.String name, double px, double py, double pz, double energy, double mass)Define a Lorentz particle in momentum space.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(HEParticle another)Add 2 particlesvoidboost(HEParticle parent)Lorentz BoostHEParticlecopy()Make an exact copy of this particlevoiddoc()Show online documentation.intgetBarcode()Get barcodefloatgetChargeParity()Returns C charge conjugation parityfloatgetIsospin()Get isospinLParticlegetLParticle()Returns a light-weight particle classintgetPdgcode()Get PDG codeHepLorentzVectorgetPosition()Get position in X,Y,Z,timefloatgetSpaceparity()get P space parityfloatgetSpin()Get J total spinintgetStatus()Status Monte Carlo codevoidprint()Print particledoublerapidity()Compute rapidity.voidsetBarcode(int barcode)Set barcode IDvoidsetChargeParity(float chargeparity)Set C charge conjugation parityvoidsetIsospin(float isospin)Set isospinvoidsetPdgcode(int pdgcode)Set PDG codevoidsetPosition(HepLorentzVector position)Set position of particle in X,Y,Z,time.voidsetSpaceParity(float spaceparity)Set P space parityvoidsetSpin(float spin)Set J total spinvoidsetStatus(int status)Set Monte Carlo status codejava.lang.StringtoString()Convert to stringvoidtwoBodyDecay(HEParticle prod1, HEParticle prod2, boolean randomRotate)Evaluates 4-vector of decay product in the rest frame of parent.-
Methods inherited from class hephysics.particle.LParticle
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
-
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, restMass2, setE, setPx, setPy, setPz, setT, setV3, setV3, setX, setY, setZ, skp, sub, t, theta, v3, x, y, z
-
-
-
-
Constructor Detail
-
HEParticle
public HEParticle(java.lang.String name, double mass)Define a particle with a name and mass- Parameters:
name- particle namemass- mass
-
HEParticle
public HEParticle(double px, double py, double pz)Define a 3-momentum for a given particle. Energy is set to 0.- Parameters:
px- Pxpy- Pypz- Pz
-
HEParticle
public HEParticle(double px, double py, double pz, double energy, double mass)Define a 4-momentum and energy particle- Parameters:
px- Px (or X position)py- Py (or Y position)pz- Pz (or Z position)energy- energy (or time)mass- mass
-
HEParticle
public HEParticle(HepLorentzVector momentum, HepLorentzVector position, double mass)
Define a particle in momentum and position- Parameters:
momentum- 4-momentumposition- postion in X,Y,Z,timemass- mass
-
HEParticle
public HEParticle(double px, double py, double pz, double energy)Define a particle in momentum space. Mass is set to 0- Parameters:
px- Px or X positionpy- Py or Y positionpz- Pz or Z positionenergy- energy or time
-
HEParticle
public HEParticle(java.lang.String name, double px, double py, double pz, double energy, double mass)Define a Lorentz particle in momentum space.- Parameters:
name- Name of particlepx- px (or X)py- py (or Y)pz- pz (or Z)energy- energy or timemass- mass
-
-
Method Detail
-
setPosition
public void setPosition(HepLorentzVector position)
Set position of particle in X,Y,Z,time.- Parameters:
position-
-
getPosition
public HepLorentzVector getPosition()
Get position in X,Y,Z,time- Returns:
-
rapidity
public double rapidity()
Compute rapidity. 0.5*log( (m+z)/(m-z) );- Overrides:
rapidityin classHepLorentzVector- Returns:
-
add
public void add(HEParticle another)
Add 2 particles- Parameters:
another- particle to be added
-
setIsospin
public void setIsospin(float isospin)
Set isospin- Parameters:
isospin-
-
getIsospin
public float getIsospin()
Get isospin- Returns:
-
setChargeParity
public void setChargeParity(float chargeparity)
Set C charge conjugation parity- Parameters:
chargeparity- charge parity
-
getChargeParity
public float getChargeParity()
Returns C charge conjugation parity- Returns:
-
setSpin
public void setSpin(float spin)
Set J total spin- Parameters:
spin-
-
getSpin
public float getSpin()
Get J total spin- Returns:
-
setPdgcode
public void setPdgcode(int pdgcode)
Set PDG code- Parameters:
pdgcode-
-
getPdgcode
public int getPdgcode()
Get PDG code- Returns:
-
setSpaceParity
public void setSpaceParity(float spaceparity)
Set P space parity- Parameters:
spaceparity-
-
getSpaceparity
public float getSpaceparity()
get P space parity- Returns:
-
getStatus
public int getStatus()
Status Monte Carlo code- Returns:
- status
-
setStatus
public void setStatus(int status)
Set Monte Carlo status code- Parameters:
status-
-
getBarcode
public int getBarcode()
Get barcode- Returns:
- barcode
-
setBarcode
public void setBarcode(int barcode)
Set barcode ID- Parameters:
barcode-
-
toString
public java.lang.String toString()
Convert to string
-
copy
public HEParticle copy()
Make an exact copy of this particle
-
getLParticle
public LParticle getLParticle()
Returns a light-weight particle class- Returns:
-
twoBodyDecay
public void twoBodyDecay(HEParticle prod1, HEParticle prod2, boolean randomRotate)
Evaluates 4-vector of decay product in the rest frame of parent.- Parameters:
prod1- first decay productprod2- second decay productrandomRotate- is Phi randomly rotated?
-
boost
public void boost(HEParticle parent)
Lorentz Boost- Parameters:
parent- parent particle
-
-
DMelt 3.0 © DataMelt by jWork.ORG