Documentation of 'hephysics.jet.ParticleF' Java class.
ParticleF
hephysics.jet

Class ParticleF

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ParticleF>


    public class ParticleF
    extends java.lang.Object
    implements java.lang.Comparable<ParticleF>, java.io.Serializable
    A class representing a jet or particle with pre-computed et, et2, phi, eta (float values). It uses floats to speedup calculations for jet fundings. The class is used by light-weight hephysics.jets.KTjet algorithm. "F" means float calculations The class has a minimum dynamic computation to minimize CPU. Use LParticle for (slower) dynamic calculations. To use double precision calculations, use hephysics.jets.ParticleD class.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ParticleF()
      Initialize pseudoparticle.
      ParticleF(float px, float py, float pz, float energy)
      Initialize fast particle from 4-momenta.
      ParticleF(LParticle p)
      Initialize pseudoparticle.
    • Constructor Detail

      • ParticleF

        public ParticleF(LParticle p)
        Initialize pseudoparticle.
        Parameters:
        p - initialisation particle.
      • ParticleF

        public ParticleF()
        Initialize pseudoparticle.
      • ParticleF

        public ParticleF(float px,
                         float py,
                         float pz,
                         float energy)
        Initialize fast particle from 4-momenta. The methods precomputes internal variables et, et, phi, eta.
        Parameters:
        px -
        py -
        pz -
        energy -
    • Method Detail

      • setPxPyPzE

        public void setPxPyPzE(float px,
                               float py,
                               float pz,
                               float energy)
        Initialize from 4-momenta. Recompute et2, et, eta, and phi.
        Parameters:
        px -
        py -
        pz -
        energy -
      • getEta

        public float getEta()
      • getPhi

        public float getPhi()
      • getEt2

        public float getEt2()
      • getEt

        public float getEt()
      • perp

        public float perp()
        Same as getEt(). Returns perp without calculations.
      • eta

        public float eta()
        Same as getEta(). Returns pseudo-rapidity without calculations.
      • setEta

        public void setEta(float eta)
      • setEt2

        public void setEt2(float et2)
      • setPhi

        public void setPhi(float phi)
      • getLParticle

        public LParticle getLParticle()
      • compareTo

        public int compareTo(ParticleF o)
        Comparator. using perp2 for comparison (in increasing order)
        Specified by:
        compareTo in interface java.lang.Comparable<ParticleF>
        Parameters:
        o -
        Returns:
      • doc

        public void doc()
        Show online documentation.
      • toString

        public java.lang.String toString()
        Convert a particle to a string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string with the particle
      • add

        public void add(ParticleF a)
        Add to this particle and recalculate all characteristics.
        Parameters:
        a -
      • hashCode

        public int hashCode()
        Get a hash code
        Overrides:
        hashCode in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG