Documentation of 'hep.physics.particle.BasicParticle' Java class
BasicParticle
hep.physics.particle

Class BasicParticle

  • All Implemented Interfaces:
    Particle


    public class BasicParticle
    extends java.lang.Object
    implements Particle
    Default implementation of Particle.
    • Constructor Detail

      • BasicParticle

        public BasicParticle(Hep3Vector origin,
                             HepLorentzVector p,
                             ParticleType ptype,
                             int status,
                             double time)
        Create a new BasicParticle
        Parameters:
        origin - The origin of this particle
        p - The momentum and energy of this particle
        ptype - The type of this particle
        status - The status of this particle
        time - The production time of this particle
    • Method Detail

      • addDaughter

        public void addDaughter(Particle child)
        Adds a child to this particle. If the child is also an instance of this class this particle will also be added as its parent.
        Parameters:
        child - The child particle
      • setMass

        public void setMass(double mass)
        Overrides the mass obtained from the particle type.
      • getPX

        public double getPX()
        Description copied from interface: Particle
        X component of momentum
        Specified by:
        getPX in interface Particle
      • getPY

        public double getPY()
        Description copied from interface: Particle
        Y component of momentum
        Specified by:
        getPY in interface Particle
      • getPZ

        public double getPZ()
        Description copied from interface: Particle
        Z component of momentum
        Specified by:
        getPZ in interface Particle
      • getEnergy

        public double getEnergy()
        Description copied from interface: Particle
        Energy
        Specified by:
        getEnergy in interface Particle
      • getMass

        public double getMass()
        Description copied from interface: Particle
        Mass
        Specified by:
        getMass in interface Particle
      • getOriginX

        public double getOriginX()
        Specified by:
        getOriginX in interface Particle
      • getOriginY

        public double getOriginY()
        Specified by:
        getOriginY in interface Particle
      • getOriginZ

        public double getOriginZ()
        Specified by:
        getOriginZ in interface Particle
      • getProductionTime

        public double getProductionTime()
        Description copied from interface: Particle
        Production time
        Specified by:
        getProductionTime in interface Particle
      • getGeneratorStatus

        public int getGeneratorStatus()
        Description copied from interface: Particle
        Status code, one of FINALSTATE, INTERMEDIATE or DOCUMENTATION
        Specified by:
        getGeneratorStatus in interface Particle
      • getDaughters

        public java.util.List getDaughters()
        Description copied from interface: Particle
        Returns a list of the decay products of this particle
        Specified by:
        getDaughters in interface Particle
      • getParents

        public java.util.List getParents()
        Description copied from interface: Particle
        Returns a list of the parent(s) of this particle
        Specified by:
        getParents in interface Particle
      • getCharge

        public double getCharge()
        Description copied from interface: Particle
        Returns the particle's charge
        Specified by:
        getCharge in interface Particle
      • getPDGID

        public int getPDGID()
        Description copied from interface: Particle
        Convenience method for getting particles PDGID
        Specified by:
        getPDGID in interface Particle

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.