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 void
add(HEParticle another)
Add 2 particlesvoid
boost(HEParticle parent)
Lorentz BoostHEParticle
copy()
Make an exact copy of this particlevoid
doc()
Show online documentation.int
getBarcode()
Get barcodefloat
getChargeParity()
Returns C charge conjugation parityfloat
getIsospin()
Get isospinLParticle
getLParticle()
Returns a light-weight particle classint
getPdgcode()
Get PDG codeHepLorentzVector
getPosition()
Get position in X,Y,Z,timefloat
getSpaceparity()
get P space parityfloat
getSpin()
Get J total spinint
getStatus()
Status Monte Carlo codevoid
print()
Print particledouble
rapidity()
Compute rapidity.void
setBarcode(int barcode)
Set barcode IDvoid
setChargeParity(float chargeparity)
Set C charge conjugation parityvoid
setIsospin(float isospin)
Set isospinvoid
setPdgcode(int pdgcode)
Set PDG codevoid
setPosition(HepLorentzVector position)
Set position of particle in X,Y,Z,time.void
setSpaceParity(float spaceparity)
Set P space parityvoid
setSpin(float spin)
Set J total spinvoid
setStatus(int status)
Set Monte Carlo status codejava.lang.String
toString()
Convert to stringvoid
twoBodyDecay(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:
rapidity
in 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