Implementation of ReconstructedParticle. More...
#include <IMPL/ReconstructedParticleImpl.h>
Public Member Functions | |
ReconstructedParticleImpl () | |
Default constructor, initializes values to 0. | |
ReconstructedParticleImpl (const ReconstructedParticleImpl &) | |
default copy constructor - use with care | |
ReconstructedParticleImpl & | operator= (const ReconstructedParticleImpl &) |
default assignment operator - use with care | |
virtual | ~ReconstructedParticleImpl () |
Destructor. | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. | |
virtual int | getType () const |
Type of reconstructed particle. | |
virtual bool | isCompound () const |
Convenient method - same as (getParticles().size() > 0 ). | |
virtual const double * | getMomentum () const |
The magnitude of the reconstructed particle's momentum,. | |
virtual double | getEnergy () const |
Energy of the reconstructed particle. | |
virtual const EVENT::FloatVec & | getCovMatrix () const |
Covariance matrix of the reconstructed particle's 4vector (10 parameters). | |
virtual double | getMass () const |
Mass of the reconstructed particle, set independently from four vector quantities. | |
virtual float | getCharge () const |
Charge of the reconstructed particle. | |
virtual const float * | getReferencePoint () const |
Reference point of the reconstructedParticle parameters. | |
virtual const EVENT::ParticleIDVec & | getParticleIDs () const |
The particle Id's sorted by their likelihood. | |
virtual EVENT::ParticleID * | getParticleIDUsed () const |
The particle Id used for the kinematics of this particle. | |
virtual float | getGoodnessOfPID () const |
The overall goodness of the PID on a scale of [0;1]. | |
virtual const EVENT::ReconstructedParticleVec & | getParticles () const |
The reconstructed particles that have been combined to this particle. | |
virtual const EVENT::ClusterVec & | getClusters () const |
The clusters that have been used for this particle. | |
virtual const EVENT::TrackVec & | getTracks () const |
The tracks that have been used for this particle. | |
virtual EVENT::Vertex * | getStartVertex () const |
The start vertex associated to this particle. | |
virtual EVENT::Vertex * | getEndVertex () const |
The vertex where the particle decays This method actually returns the start vertex from the first daughter particle found. | |
void | setType (int type) |
void | setMomentum (const float *momentum) |
void | setMomentum (const double *momentum) |
void | setEnergy (float energy) |
void | setCovMatrix (const float *cov) |
void | setCovMatrix (const EVENT::FloatVec &) |
void | setMass (float mass) |
void | setCharge (float charge) |
void | setReferencePoint (const float *reference) |
void | addParticleID (EVENT::ParticleID *pid) |
Set the type of reconstructed particle, one of: ReconstructedParticle::SINGLE, ReconstructedParticle::V0, ReconstructedParticle::COMPOUND, ReconstructedParticle::JET . | |
void | setParticleIDUsed (EVENT::ParticleID *pid) |
void | setGoodnessOfPID (float goodness) |
void | addParticle (EVENT::ReconstructedParticle *particle) |
void | addCluster (EVENT::Cluster *cluster) |
Add a cluster that has been used to create this particle. | |
void | addTrack (EVENT::Track *track) |
Add a track that has been used to create this particle. | |
void | setStartVertex (EVENT::Vertex *sv) |
Protected Attributes | |
double | _momentum [3] = {0.,0.,0.} |
float | _reference [3] = {0.,0.,0.} |
Implementation of ReconstructedParticle.
void IMPL::ReconstructedParticleImpl::addParticleID | ( | EVENT::ParticleID * | pid | ) | [virtual] |
Set the type of reconstructed particle, one of:
ReconstructedParticle::SINGLE,
ReconstructedParticle::V0,
ReconstructedParticle::COMPOUND,
ReconstructedParticle::JET
.
Set primary flag. Set particle momentum (px,py,pz).Set energy. Set the values of the covariance matrix of the particles four vector (px,py,pz,E). Set the values of the covariance matrix of the particles four vector (px,py,pz,E).Set mass - independently from four vector. Set the charge. Set the reference point, i.e. the point where the four vector is defined.Add a ParticleID object.
Implements EVENT::ReconstructedParticle.
Referenced by SIO::SIOReconstructedParticleHandler::read().
const EVENT::ParticleIDVec & IMPL::ReconstructedParticleImpl::getParticleIDs | ( | ) | const [virtual] |
The particle Id's sorted by their likelihood.
Implements EVENT::ReconstructedParticle.
Referenced by UTIL::PIDHandler::setParticleIDUsed().
EVENT::ParticleID * IMPL::ReconstructedParticleImpl::getParticleIDUsed | ( | ) | const [virtual] |
The particle Id used for the kinematics of this particle.
Implements EVENT::ReconstructedParticle.
int IMPL::ReconstructedParticleImpl::getType | ( | ) | const [virtual] |
Type of reconstructed particle.
Check/set collection parameterrs ReconstructedParticleTypeNames and ReconstructedParticleTypeValues.
Implements EVENT::ReconstructedParticle.