LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::ReconstructedParticleImpl Class Reference

Implementation of ReconstructedParticle. More...

#include <ReconstructedParticleImpl.h>

+ Inheritance diagram for IMPL::ReconstructedParticleImpl:

Public Member Functions

 ReconstructedParticleImpl ()
 Default constructor, initializes values to 0. More...
 
 ReconstructedParticleImpl (const ReconstructedParticleImpl &)=default
 default copy constructor - use with care More...
 
ReconstructedParticleImploperator= (const ReconstructedParticleImpl &)=default
 default assignment operator - use with care More...
 
virtual ~ReconstructedParticleImpl ()
 Destructor. More...
 
virtual int id () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
virtual int getType () const
 Type of reconstructed particle. More...
 
virtual bool isCompound () const
 Convenient method - same as (getParticles().size() > 0 ). More...
 
virtual const double * getMomentum () const
 The magnitude of the reconstructed particle's momentum,. More...
 
virtual double getEnergy () const
 Energy of the reconstructed particle. More...
 
virtual const EVENT::FloatVecgetCovMatrix () const
 Covariance matrix of the reconstructed particle's 4vector (10 parameters). More...
 
virtual double getMass () const
 Mass of the reconstructed particle, set independently from four vector quantities. More...
 
virtual float getCharge () const
 Charge of the reconstructed particle. More...
 
virtual const float * getReferencePoint () const
 Reference point of the reconstructedParticle parameters. More...
 
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]. More...
 
virtual const
EVENT::ReconstructedParticleVec
getParticles () const
 The reconstructed particles that have been combined to this particle. More...
 
virtual const EVENT::ClusterVecgetClusters () const
 The clusters that have been used for this particle. More...
 
virtual const EVENT::TrackVecgetTracks () const
 The tracks that have been used for this particle. More...
 
virtual EVENT::VertexgetStartVertex () const
 The start vertex associated to this particle. More...
 
virtual EVENT::VertexgetEndVertex () const
 The vertex where the particle decays This method actually returns the start vertex from the first daughter particle found. More...
 
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. More...
 
void addCluster (EVENT::Cluster *cluster)
 Add a cluster that has been used to create this particle. More...
 
void addTrack (EVENT::Track *track)
 Add a track that has been used to create this particle. More...
 
void setStartVertex (EVENT::Vertex *sv)
 
- Public Member Functions inherited from EVENT::ReconstructedParticle
virtual ~ReconstructedParticle ()
 Destructor. More...
 
- Public Member Functions inherited from EVENT::LCObject
virtual ~LCObject ()
 Destructor. More...
 
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,... More...
 
template<class V >
const V::ext_type ext () const
 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,... More...
 
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. More...
 
- Public Member Functions inherited from IMPL::AccessChecked
 AccessChecked ()
 
virtual ~AccessChecked ()
 
virtual int simpleUID () const
 

Protected Attributes

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

Additional Inherited Members

- Public Types inherited from EVENT::ReconstructedParticle
typedef ReconstructedParticle lcobject_type
 Useful typedef for template programming with LCIO. More...
 
- Public Types inherited from lcrtrel::LCRTRelations
typedef std::type_index ext_index
 
typedef std::shared_ptr< void > ext_type
 
typedef std::map< ext_index,
ext_type
ext_map
 
- Protected Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess ()
 
void checkAccess (const char *what)
 
- Static Protected Attributes inherited from IMPL::AccessChecked
static std::atomic_int _lCObjectId
 

Detailed Description

Implementation of ReconstructedParticle.

See Also
ReconstructedParticle
Author
gaede
Version
Mar 30, 2003

Definition at line 22 of file ReconstructedParticleImpl.h.

Constructor & Destructor Documentation

IMPL::ReconstructedParticleImpl::ReconstructedParticleImpl ( )

Default constructor, initializes values to 0.

Definition at line 11 of file ReconstructedParticleImpl.cc.

References _cov, _momentum, _reference, NCOVARIANCE, and std::vector< T >::resize().

IMPL::ReconstructedParticleImpl::ReconstructedParticleImpl ( const ReconstructedParticleImpl )
default

default copy constructor - use with care

IMPL::ReconstructedParticleImpl::~ReconstructedParticleImpl ( )
virtual

Destructor.

Definition at line 31 of file ReconstructedParticleImpl.cc.

References _pid, std::vector< T >::begin(), and std::vector< T >::end().

Member Function Documentation

void IMPL::ReconstructedParticleImpl::addCluster ( EVENT::Cluster cluster)
virtual

Add a cluster that has been used to create this particle.

Implements EVENT::ReconstructedParticle.

Definition at line 176 of file ReconstructedParticleImpl.cc.

References _clusters, IMPL::AccessChecked::checkAccess(), and std::vector< T >::push_back().

void IMPL::ReconstructedParticleImpl::addParticle ( EVENT::ReconstructedParticle particle)
virtual

Add a particle that has been used to create this particle.

Implements EVENT::ReconstructedParticle.

Definition at line 170 of file ReconstructedParticleImpl.cc.

References _particles, IMPL::AccessChecked::checkAccess(), and std::vector< T >::push_back().

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.

Definition at line 162 of file ReconstructedParticleImpl.cc.

References _pid, std::vector< T >::begin(), std::vector< T >::end(), and std::vector< T >::push_back().

void IMPL::ReconstructedParticleImpl::addTrack ( EVENT::Track track)
virtual

Add a track that has been used to create this particle.

Implements EVENT::ReconstructedParticle.

Definition at line 182 of file ReconstructedParticleImpl.cc.

References _tracks, IMPL::AccessChecked::checkAccess(), and std::vector< T >::push_back().

float IMPL::ReconstructedParticleImpl::getCharge ( ) const
virtual

Charge of the reconstructed particle.

Implements EVENT::ReconstructedParticle.

Definition at line 45 of file ReconstructedParticleImpl.cc.

References _charge.

const EVENT::ClusterVec & IMPL::ReconstructedParticleImpl::getClusters ( ) const
virtual

The clusters that have been used for this particle.

Implements EVENT::ReconstructedParticle.

Definition at line 59 of file ReconstructedParticleImpl.cc.

References _clusters.

const EVENT::FloatVec & IMPL::ReconstructedParticleImpl::getCovMatrix ( ) const
virtual

Covariance matrix of the reconstructed particle's 4vector (10 parameters).

Implements EVENT::ReconstructedParticle.

Definition at line 43 of file ReconstructedParticleImpl.cc.

References _cov.

EVENT::Vertex * IMPL::ReconstructedParticleImpl::getEndVertex ( ) const
virtual

The vertex where the particle decays This method actually returns the start vertex from the first daughter particle found.

Implements EVENT::ReconstructedParticle.

Definition at line 72 of file ReconstructedParticleImpl.cc.

References std::vector< T >::at(), getParticles(), and EVENT::ReconstructedParticle::getStartVertex().

double IMPL::ReconstructedParticleImpl::getEnergy ( ) const
virtual

Energy of the reconstructed particle.

Implements EVENT::ReconstructedParticle.

Definition at line 42 of file ReconstructedParticleImpl.cc.

References _energy.

float IMPL::ReconstructedParticleImpl::getGoodnessOfPID ( ) const
virtual

The overall goodness of the PID on a scale of [0;1].

Implements EVENT::ReconstructedParticle.

Definition at line 51 of file ReconstructedParticleImpl.cc.

References _goodnessOfPID.

double IMPL::ReconstructedParticleImpl::getMass ( ) const
virtual

Mass of the reconstructed particle, set independently from four vector quantities.

Implements EVENT::ReconstructedParticle.

Definition at line 44 of file ReconstructedParticleImpl.cc.

References _mass.

const double * IMPL::ReconstructedParticleImpl::getMomentum ( ) const
virtual

The magnitude of the reconstructed particle's momentum,.

Implements EVENT::ReconstructedParticle.

Definition at line 41 of file ReconstructedParticleImpl.cc.

References _momentum.

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

The particle Id's sorted by their likelihood.

See Also
ParticleID

Implements EVENT::ReconstructedParticle.

Definition at line 54 of file ReconstructedParticleImpl.cc.

References _pid.

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.

Definition at line 49 of file ReconstructedParticleImpl.cc.

References _pidUsed.

const EVENT::ReconstructedParticleVec & IMPL::ReconstructedParticleImpl::getParticles ( ) const
virtual

The reconstructed particles that have been combined to this particle.

Implements EVENT::ReconstructedParticle.

Definition at line 56 of file ReconstructedParticleImpl.cc.

References _particles.

Referenced by getEndVertex(), and isCompound().

const float * IMPL::ReconstructedParticleImpl::getReferencePoint ( ) const
virtual

Reference point of the reconstructedParticle parameters.

Implements EVENT::ReconstructedParticle.

Definition at line 46 of file ReconstructedParticleImpl.cc.

References _reference.

EVENT::Vertex * IMPL::ReconstructedParticleImpl::getStartVertex ( ) const
virtual

The start vertex associated to this particle.

Implements EVENT::ReconstructedParticle.

Definition at line 68 of file ReconstructedParticleImpl.cc.

References _sv.

const EVENT::TrackVec & IMPL::ReconstructedParticleImpl::getTracks ( ) const
virtual

The tracks that have been used for this particle.

Implements EVENT::ReconstructedParticle.

Definition at line 62 of file ReconstructedParticleImpl.cc.

References _tracks.

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

Type of reconstructed particle.

Check/set collection parameterrs ReconstructedParticleTypeNames and ReconstructedParticleTypeValues.

Implements EVENT::ReconstructedParticle.

Definition at line 38 of file ReconstructedParticleImpl.cc.

References _type.

virtual int IMPL::ReconstructedParticleImpl::id ( ) const
inlinevirtual

Returns an object id for internal (debugging) use in LCIO.

Implements EVENT::LCObject.

Definition at line 39 of file ReconstructedParticleImpl.h.

References IMPL::AccessChecked::simpleUID().

virtual bool IMPL::ReconstructedParticleImpl::isCompound ( ) const
inlinevirtual

Convenient method - same as (getParticles().size() > 0 ).

Implements EVENT::ReconstructedParticle.

Definition at line 50 of file ReconstructedParticleImpl.h.

References getParticles(), and std::vector< T >::size().

ReconstructedParticleImpl& IMPL::ReconstructedParticleImpl::operator= ( const ReconstructedParticleImpl )
default

default assignment operator - use with care

void IMPL::ReconstructedParticleImpl::setCharge ( float  charge)

Definition at line 140 of file ReconstructedParticleImpl.cc.

References _charge, and IMPL::AccessChecked::checkAccess().

void IMPL::ReconstructedParticleImpl::setCovMatrix ( const float *  cov)
void IMPL::ReconstructedParticleImpl::setCovMatrix ( const EVENT::FloatVec cov)
void IMPL::ReconstructedParticleImpl::setEnergy ( float  energy)

Definition at line 120 of file ReconstructedParticleImpl.cc.

References _energy, and IMPL::AccessChecked::checkAccess().

void IMPL::ReconstructedParticleImpl::setGoodnessOfPID ( float  goodness)
void IMPL::ReconstructedParticleImpl::setMass ( float  mass)

Definition at line 135 of file ReconstructedParticleImpl.cc.

References _mass, and IMPL::AccessChecked::checkAccess().

void IMPL::ReconstructedParticleImpl::setMomentum ( const float *  momentum)

Definition at line 106 of file ReconstructedParticleImpl.cc.

References _momentum, and IMPL::AccessChecked::checkAccess().

void IMPL::ReconstructedParticleImpl::setMomentum ( const double *  momentum)

Definition at line 113 of file ReconstructedParticleImpl.cc.

References _momentum, and IMPL::AccessChecked::checkAccess().

void IMPL::ReconstructedParticleImpl::setParticleIDUsed ( EVENT::ParticleID pid)
void IMPL::ReconstructedParticleImpl::setReferencePoint ( const float *  reference)

Definition at line 145 of file ReconstructedParticleImpl.cc.

References _reference, and IMPL::AccessChecked::checkAccess().

void IMPL::ReconstructedParticleImpl::setStartVertex ( EVENT::Vertex sv)

Definition at line 79 of file ReconstructedParticleImpl.cc.

References _sv, and IMPL::AccessChecked::checkAccess().

void IMPL::ReconstructedParticleImpl::setType ( int  type)

Definition at line 91 of file ReconstructedParticleImpl.cc.

References _type, and IMPL::AccessChecked::checkAccess().

Member Data Documentation

float IMPL::ReconstructedParticleImpl::_charge {}
protected

Definition at line 143 of file ReconstructedParticleImpl.h.

Referenced by getCharge(), and setCharge().

EVENT::ClusterVec IMPL::ReconstructedParticleImpl::_clusters {}
protected

Definition at line 149 of file ReconstructedParticleImpl.h.

Referenced by addCluster(), and getClusters().

EVENT::FloatVec IMPL::ReconstructedParticleImpl::_cov {}
protected
double IMPL::ReconstructedParticleImpl::_energy {0.}
protected

Definition at line 140 of file ReconstructedParticleImpl.h.

Referenced by getEnergy(), and setEnergy().

float IMPL::ReconstructedParticleImpl::_goodnessOfPID {0.}
protected

Definition at line 146 of file ReconstructedParticleImpl.h.

Referenced by getGoodnessOfPID(), and setGoodnessOfPID().

double IMPL::ReconstructedParticleImpl::_mass {0.}
protected

Definition at line 142 of file ReconstructedParticleImpl.h.

Referenced by getMass(), and setMass().

double IMPL::ReconstructedParticleImpl::_momentum[3] = {0.,0.,0.}
protected
EVENT::ReconstructedParticleVec IMPL::ReconstructedParticleImpl::_particles {}
protected

Definition at line 148 of file ReconstructedParticleImpl.h.

Referenced by addParticle(), and getParticles().

EVENT::ParticleIDVec IMPL::ReconstructedParticleImpl::_pid {}
protected
EVENT::ParticleID* IMPL::ReconstructedParticleImpl::_pidUsed { NULL}
protected

Definition at line 145 of file ReconstructedParticleImpl.h.

Referenced by getParticleIDUsed(), and setParticleIDUsed().

float IMPL::ReconstructedParticleImpl::_reference[3] = {0.,0.,0.}
protected
EVENT::Vertex* IMPL::ReconstructedParticleImpl::_sv {}
protected

Definition at line 151 of file ReconstructedParticleImpl.h.

Referenced by getStartVertex(), and setStartVertex().

EVENT::TrackVec IMPL::ReconstructedParticleImpl::_tracks {}
protected

Definition at line 150 of file ReconstructedParticleImpl.h.

Referenced by addTrack(), and getTracks().

int IMPL::ReconstructedParticleImpl::_type {0}
protected

Definition at line 138 of file ReconstructedParticleImpl.h.

Referenced by getType(), and setType().


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