Class ParticleList

java.lang.Object
org.jlab.clas.physics.ParticleList

public class ParticleList extends Object
Author:
gavalian
  • Constructor Details Link icon

    • ParticleList Link icon

      public ParticleList()
  • Method Details Link icon

    • add Link icon

      public void add(Particle p)
    • clear Link icon

      public void clear()
    • count Link icon

      public int count()
    • countByCharge Link icon

      public int countByCharge(int charge)
      returns number of particles of given charge
      Parameters:
      charge - charge of the particle
      Returns:
      count
    • countByPid Link icon

      public int countByPid(int pid)
      returns number of particles with given particle id (lund id)
      Parameters:
      pid - particle id
      Returns:
      count
    • getByPid Link icon

      public Particle getByPid(int pid, int skip)
      returns particle with id = pid and skips 'skip' particles
      Parameters:
      pid -
      skip -
      Returns:
    • getByCharge Link icon

      public Particle getByCharge(int charge, int skip)
      returns particles by charge skipping skip particles.
      Parameters:
      charge -
      skip -
      Returns:
    • toLundString Link icon

      public String toLundString()