org.lcsim.reconstructedParticle
Class ReconstructedParticle

java.lang.Object
  extended byorg.lcsim.reconstructedParticle.ReconstructedParticle

public class ReconstructedParticle
extends java.lang.Object

This class encapsulates the kinematics and type ID of a reconstructed particle.

Author:
Norman A. Graf

Constructor Summary
ReconstructedParticle(Lorentz4Vector fourMomentum, int charge)
          Basic constructor.
ReconstructedParticle(Lorentz4Vector fourMomentum, int charge, hep.lcd.event.Cluster c, hep.lcd.event.Track t)
          Basic constructor.
ReconstructedParticle(Lorentz4Vector fourMomentum, int charge, java.util.Set cells, hep.lcd.event.Track t)
          Basic constructor.
ReconstructedParticle(java.util.Set constituents)
          Constituent constructor.
 
Method Summary
 void addId(ParticleId id)
          Add a ParticleId object to this ReconstructedParticle.
 int charge()
          Returns the particle's charge
 java.util.Set clusters()
          Returns the list of calorimeter Clusters
 Lorentz4Vector fourMomentum()
          Returns the particle's kinematics.
 double phi()
           
 void setComposite(ReconstructedParticle p)
          Sets the composite ReconstructedParticle of which this is a component.
 double theta()
           
 java.lang.String toString()
          String representation of this class.
 java.util.Set tracks()
          Returns the list of tracks
 java.lang.String type()
          Return the name of the most probable particle identification.
 void unsetFinal()
          Sets this particle to be an intermediate state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReconstructedParticle

public ReconstructedParticle(Lorentz4Vector fourMomentum,
                             int charge)
Basic constructor. Used for non-composite particles.

Parameters:
fourMomentum - The particle's kinematics
charge - The particle's charge

ReconstructedParticle

public ReconstructedParticle(Lorentz4Vector fourMomentum,
                             int charge,
                             hep.lcd.event.Cluster c,
                             hep.lcd.event.Track t)
Basic constructor. Used for non-composite particles.

Parameters:
fourMomentum - The particle's kinematics
charge - The particle's charge

ReconstructedParticle

public ReconstructedParticle(Lorentz4Vector fourMomentum,
                             int charge,
                             java.util.Set cells,
                             hep.lcd.event.Track t)
Basic constructor. Used for non-composite particles.

Parameters:
fourMomentum - The particle's kinematics
charge - The particle's charge

ReconstructedParticle

public ReconstructedParticle(java.util.Set constituents)
Constituent constructor. Used for composite particles

Parameters:
constituents - A list of constituent ReconstructedParticles
Method Detail

unsetFinal

public void unsetFinal()
Sets this particle to be an intermediate state.


setComposite

public void setComposite(ReconstructedParticle p)
Sets the composite ReconstructedParticle of which this is a component.

Parameters:
p - The ReconstructedParticle of which this is a component.

fourMomentum

public Lorentz4Vector fourMomentum()
Returns the particle's kinematics.

Returns:
A Lorentz four momentum.

theta

public double theta()

phi

public double phi()

charge

public int charge()
Returns the particle's charge

Returns:
Integer charge

addId

public void addId(ParticleId id)
Add a ParticleId object to this ReconstructedParticle. The natural ordering will be used to sort multiple ParticleId's. type() will return the most probable ParticleId.

Parameters:
id - The ParticleId object
See Also:
ParticleId

clusters

public java.util.Set clusters()
Returns the list of calorimeter Clusters

Returns:
a Set of Cluster objects associated with this ReconstructedParticle. May be null.

tracks

public java.util.Set tracks()
Returns the list of tracks

Returns:
a Set of Track objects associated with this ReconstructedParticle. May be null.

type

public java.lang.String type()
Return the name of the most probable particle identification.

Returns:
String name

toString

public java.lang.String toString()
String representation of this class.

Returns:
String