Documentation of 'hephysics.particle.HEParticle' Java class.
HEParticle
hephysics.particle

Class 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 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:
      • rapidity

        public double rapidity()
        Compute rapidity. 0.5*log( (m+z)/(m-z) );
        Overrides:
        rapidity in class HepLorentzVector
        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
        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
      • doc

        public void doc()
        Show online documentation.
        Overrides:
        doc in class LParticle

DMelt 3.0 © DataMelt by jWork.ORG