|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthephysics.vec.HepLorentzVector
hephysics.particle.LParticle
hephysics.particle.HEParticle
public class HEParticle
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).
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
add(HEParticle another)
Add 2 particles |
void |
boost(HEParticle parent)
Lorentz Boost |
HEParticle |
copy()
Make an exact copy of this particle |
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 |
int |
getType()
Get PDG type ID |
void |
print()
Print particle |
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 |
void |
setType(int type)
Set type ID |
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. |
| Methods inherited from class hephysics.particle.LParticle |
|---|
abs, add, angle, boost, calcMass, getCharge, getMass, getName, getParent, getV3, hashCode, mass, setCharge, setMass, setParent, setPxPyPz, setPxPyPzE, setThetaPhiP, 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, 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 HEParticle(String name,
double mass)
name - particle namemass - mass
public HEParticle(double px,
double py,
double pz)
px - Pxpy - Pypz - Pz
public 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 - mass
public HEParticle(HepLorentzVector momentum,
HepLorentzVector position,
double mass)
momentum - 4-momentumposition - postion in X,Y,Z,timemass - mass
public HEParticle(double px,
double py,
double pz,
double energy)
px - Px or X positionpy - Py or Y positionpz - Pz or Z positionenergy - energy or time
public 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 - mass| Method Detail |
|---|
public void setPosition(HepLorentzVector position)
position - public HepLorentzVector getPosition()
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 getType()
public void setType(int type)
type - public String toString()
toString in class LParticlepublic HEParticle copy()
copy in class LParticlepublic 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 particlepublic void print()
print in class LParticle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||