org.lcsim.reconstructedParticle
Class ParticleId
java.lang.Object
org.lcsim.reconstructedParticle.ParticleId
- All Implemented Interfaces:
- java.lang.Comparable
- public class ParticleId
- extends java.lang.Object
- implements java.lang.Comparable
Encapsulates a ParticleType, its probability,
and the ParticleTypeIdentifier used to make this
identification. Natural ordering is on probability.
- Author:
- Norman A. Graf
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ParticleId
public ParticleId(ParticleType type,
double prob,
java.lang.String identifier)
type
public ParticleType type()
probability
public double probability()
identifier
public java.lang.String identifier()
toString
public java.lang.String toString()
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo in interface java.lang.Comparable