LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::ReconstructedParticleImpl Class Reference

Implementation of ReconstructedParticle. More...

#include <IMPL/ReconstructedParticleImpl.h>

Inheritance diagram for IMPL::ReconstructedParticleImpl:
EVENT::ReconstructedParticle IMPL::AccessChecked EVENT::LCObject lcrtrel::LCRTRelations IOIMPL::ReconstructedParticleIOImpl

Public Member Functions

 ReconstructedParticleImpl ()
 Default constructor, initializes values to 0.
 
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. More...
 
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::FloatVecgetCovMatrix () 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. More...
 
virtual EVENT::ParticleIDgetParticleIDUsed () const
 The particle Id used for the kinematics of this particle. More...
 
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::ClusterVecgetClusters () const
 The clusters that have been used for this particle.
 
virtual const EVENT::TrackVecgetTracks () const
 The tracks that have been used for this particle.
 
virtual EVENT::VertexgetStartVertex () const
 The start vertex associated to this particle.
 
virtual EVENT::VertexgetEndVertex () 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
More...
 
void setParticleIDUsed (EVENT::ParticleID *pid)
 
void setGoodnessOfPID (float goodness)
 
void addParticle (EVENT::ReconstructedParticle *particle)
 Add a particle that has been used to create this 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)
 
- Public Member Functions inherited from EVENT::ReconstructedParticle
virtual ~ReconstructedParticle ()
 Destructor.
 
- Public Member Functions inherited from EVENT::LCObject
virtual ~LCObject ()
 Destructor.
 
virtual LCObjectclone () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
- Public Member Functions inherited from lcrtrel::LCRTRelations
template<class V >
V::ext_type ext ()
 Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,...
 
template<class V >
const V::ext_type ext () const
 
template<class V >
V::rel_type rel ()
 Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation.
 
- Public Member Functions inherited from IMPL::AccessChecked
virtual int simpleUID () const
 

Protected Attributes

int _type
 
double _momentum [3]
 
double _energy
 
EVENT::FloatVec _cov
 
double _mass
 
float _charge
 
float _reference [3]
 
EVENT::ParticleID_pidUsed
 
float _goodnessOfPID
 
EVENT::ParticleIDVec _pid
 
EVENT::ReconstructedParticleVec _particles
 
EVENT::ClusterVec _clusters
 
EVENT::TrackVec _tracks
 
EVENT::Vertex_sv
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly
 
int _id
 

Additional Inherited Members

- Public Types inherited from EVENT::ReconstructedParticle
typedef ReconstructedParticle lcobject_type
 Useful typedef for template programming with LCIO.
 
- Protected Member Functions inherited from lcrtrel::LCRTRelations
template<class V >
V::ptr & ptr () const
 Returns the reference to the pointer to the extension/relation object.
 
- Protected Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess () throw ( EVENT::ReadOnlyException )
 
void checkAccess (const char *what) throw ( EVENT::ReadOnlyException )
 

Detailed Description

Implementation of ReconstructedParticle.

See Also
ReconstructedParticle
Author
gaede
Version
Mar 30, 2003

Member Function Documentation

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.

See Also
ParticleID

Implements EVENT::ReconstructedParticle.

Referenced by SIO::SIOReconstructedParticleHandler::read().

const EVENT::ParticleIDVec & IMPL::ReconstructedParticleImpl::getParticleIDs ( ) const
virtual

The particle Id's sorted by their likelihood.

See Also
ParticleID

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.

See Also
ParticleID

Implements EVENT::ReconstructedParticle.

int IMPL::ReconstructedParticleImpl::getType ( ) const
virtual

Type of reconstructed particle.

Check/set collection parameterrs ReconstructedParticleTypeNames and ReconstructedParticleTypeValues.

Implements EVENT::ReconstructedParticle.


The documentation for this class was generated from the following files: