Contents
Class ParticleList
java.lang.Object
org.jlab.clas.physics.ParticleList
- Author:
- gavalian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
int
count()
int
countByCharge
(int charge) returns number of particles of given chargeint
countByPid
(int pid) returns number of particles with given particle id (lund id)getByCharge
(int charge, int skip) returns particles by charge skipping skip particles.getByPid
(int pid, int skip) returns particle with id = pid and skips 'skip' particles
-
Constructor Details
-
Method Details
-
add
-
clear
public void clear() -
count
public int count() -
countByCharge
public int countByCharge(int charge) returns number of particles of given charge- Parameters:
charge
- charge of the particle- Returns:
- count
-
countByPid
public int countByPid(int pid) returns number of particles with given particle id (lund id)- Parameters:
pid
- particle id- Returns:
- count
-
getByPid
returns particle with id = pid and skips 'skip' particles- Parameters:
pid
-skip
-- Returns:
-
getByCharge
returns particles by charge skipping skip particles.- Parameters:
charge
-skip
-- Returns:
-
toLundString
-