hephysics.particle
Class HEParticle

java.lang.Object
  extended by hephysics.vec.HepLorentzVector
      extended by hephysics.particle.LParticle
          extended by hephysics.particle.HEParticle
All Implemented Interfaces:
java.io.Serializable

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
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(java.lang.String name, double mass)
          Define a particle with a name and mass
HEParticle(java.lang.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
 java.lang.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

HEParticle

public HEParticle(java.lang.String name,
                  double mass)
Define a particle with a name and mass

Parameters:
name - particle name
mass - 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 - Px
py - Py
pz - 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-momentum
position - postion in X,Y,Z,time
mass - 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 position
py - Py or Y position
pz - Pz or Z position
energy - 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 particle
px - px (or X)
py - py (or Y)
pz - pz (or Z)
energy - energy or time
mass - 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:

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 -

getType

public int getType()
Get PDG type ID

Returns:
ID

setType

public void setType(int type)
Set type ID

Parameters:
type -

toString

public java.lang.String toString()
Convert to string

Overrides:
toString in class LParticle

copy

public HEParticle copy()
Make an exact copy of this particle

Overrides:
copy in class LParticle
Returns:
new copy

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 product
prod2 - second decay product
randomRotate - is Phi randomly rotated?

boost

public void boost(HEParticle parent)
Lorentz Boost

Parameters:
parent - parent particle

print

public void print()
Print particle

Overrides:
print in class LParticle


jHepWork 2.8 (©) S.Chekanov