LCIO
02.17
|
Implementation of ReconstructedParticle. More...
#include <ReconstructedParticleImpl.h>
Public Member Functions | |
ReconstructedParticleImpl () | |
Default constructor, initializes values to 0. More... | |
ReconstructedParticleImpl (const ReconstructedParticleImpl &)=default | |
default copy constructor - use with care More... | |
ReconstructedParticleImpl & | operator= (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::FloatVec & | getCovMatrix () 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::ParticleID * | getParticleIDUsed () 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::ClusterVec & | getClusters () const |
The clusters that have been used for this particle. More... | |
virtual const EVENT::TrackVec & | getTracks () const |
The tracks that have been used for this particle. More... | |
virtual EVENT::Vertex * | getStartVertex () const |
The start vertex associated to this particle. More... | |
virtual EVENT::Vertex * | getEndVertex () 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) |
![]() | |
virtual | ~ReconstructedParticle () |
Destructor. More... | |
![]() | |
virtual | ~LCObject () |
Destructor. More... | |
virtual LCObject * | clone () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
![]() | |
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... | |
![]() | |
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 {} |
![]() | |
bool | _readOnly {false} |
int | _id {-1} |
Additional Inherited Members | |
![]() | |
typedef ReconstructedParticle | lcobject_type |
Useful typedef for template programming with LCIO. More... | |
![]() | |
typedef std::type_index | ext_index |
typedef std::shared_ptr< void > | ext_type |
typedef std::map< ext_index, ext_type > | ext_map |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () |
void | checkAccess (const char *what) |
![]() | |
static std::atomic_int | _lCObjectId |
Implementation of ReconstructedParticle.
Definition at line 22 of file ReconstructedParticleImpl.h.
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().
|
default |
default copy constructor - use with care
|
virtual |
Destructor.
Definition at line 31 of file ReconstructedParticleImpl.cc.
References _pid, std::vector< T >::begin(), and std::vector< T >::end().
|
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().
|
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().
|
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.
Definition at line 162 of file ReconstructedParticleImpl.cc.
References _pid, std::vector< T >::begin(), std::vector< T >::end(), and std::vector< T >::push_back().
|
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().
|
virtual |
Charge of the reconstructed particle.
Implements EVENT::ReconstructedParticle.
Definition at line 45 of file ReconstructedParticleImpl.cc.
References _charge.
|
virtual |
The clusters that have been used for this particle.
Implements EVENT::ReconstructedParticle.
Definition at line 59 of file ReconstructedParticleImpl.cc.
References _clusters.
|
virtual |
Covariance matrix of the reconstructed particle's 4vector (10 parameters).
Implements EVENT::ReconstructedParticle.
Definition at line 43 of file ReconstructedParticleImpl.cc.
References _cov.
|
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().
|
virtual |
Energy of the reconstructed particle.
Implements EVENT::ReconstructedParticle.
Definition at line 42 of file ReconstructedParticleImpl.cc.
References _energy.
|
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.
|
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.
|
virtual |
The magnitude of the reconstructed particle's momentum,.
Implements EVENT::ReconstructedParticle.
Definition at line 41 of file ReconstructedParticleImpl.cc.
References _momentum.
|
virtual |
The particle Id's sorted by their likelihood.
Implements EVENT::ReconstructedParticle.
Definition at line 54 of file ReconstructedParticleImpl.cc.
References _pid.
Referenced by UTIL::PIDHandler::setParticleIDUsed().
|
virtual |
The particle Id used for the kinematics of this particle.
Implements EVENT::ReconstructedParticle.
Definition at line 49 of file ReconstructedParticleImpl.cc.
References _pidUsed.
|
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().
|
virtual |
Reference point of the reconstructedParticle parameters.
Implements EVENT::ReconstructedParticle.
Definition at line 46 of file ReconstructedParticleImpl.cc.
References _reference.
|
virtual |
The start vertex associated to this particle.
Implements EVENT::ReconstructedParticle.
Definition at line 68 of file ReconstructedParticleImpl.cc.
References _sv.
|
virtual |
The tracks that have been used for this particle.
Implements EVENT::ReconstructedParticle.
Definition at line 62 of file ReconstructedParticleImpl.cc.
References _tracks.
|
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.
|
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().
|
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().
|
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 | ) |
Definition at line 125 of file ReconstructedParticleImpl.cc.
References _cov, IMPL::AccessChecked::checkAccess(), and NCOVARIANCE.
void IMPL::ReconstructedParticleImpl::setCovMatrix | ( | const EVENT::FloatVec & | cov | ) |
Definition at line 130 of file ReconstructedParticleImpl.cc.
References _cov, IMPL::AccessChecked::checkAccess(), and NCOVARIANCE.
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 | ) |
Definition at line 157 of file ReconstructedParticleImpl.cc.
References _goodnessOfPID, and IMPL::AccessChecked::checkAccess().
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 | ) |
Definition at line 152 of file ReconstructedParticleImpl.cc.
References _pidUsed, and IMPL::AccessChecked::checkAccess().
Referenced by UTIL::PIDHandler::setParticleIDUsed().
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().
|
protected |
Definition at line 143 of file ReconstructedParticleImpl.h.
Referenced by getCharge(), and setCharge().
|
protected |
Definition at line 149 of file ReconstructedParticleImpl.h.
Referenced by addCluster(), and getClusters().
|
protected |
Definition at line 141 of file ReconstructedParticleImpl.h.
Referenced by getCovMatrix(), ReconstructedParticleImpl(), and setCovMatrix().
|
protected |
Definition at line 140 of file ReconstructedParticleImpl.h.
Referenced by getEnergy(), and setEnergy().
|
protected |
Definition at line 146 of file ReconstructedParticleImpl.h.
Referenced by getGoodnessOfPID(), and setGoodnessOfPID().
|
protected |
Definition at line 142 of file ReconstructedParticleImpl.h.
|
protected |
Definition at line 139 of file ReconstructedParticleImpl.h.
Referenced by getMomentum(), ReconstructedParticleImpl(), and setMomentum().
|
protected |
Definition at line 148 of file ReconstructedParticleImpl.h.
Referenced by addParticle(), and getParticles().
|
protected |
Definition at line 147 of file ReconstructedParticleImpl.h.
Referenced by addParticleID(), getParticleIDs(), and ~ReconstructedParticleImpl().
|
protected |
Definition at line 145 of file ReconstructedParticleImpl.h.
Referenced by getParticleIDUsed(), and setParticleIDUsed().
|
protected |
Definition at line 144 of file ReconstructedParticleImpl.h.
Referenced by getReferencePoint(), ReconstructedParticleImpl(), and setReferencePoint().
|
protected |
Definition at line 151 of file ReconstructedParticleImpl.h.
Referenced by getStartVertex(), and setStartVertex().
|
protected |
Definition at line 150 of file ReconstructedParticleImpl.h.
Referenced by addTrack(), and getTracks().
|
protected |
Definition at line 138 of file ReconstructedParticleImpl.h.