2 #ifndef IMPL_RECONSTRUCTEDPARTICLEIMPL_H
3 #define IMPL_RECONSTRUCTEDPARTICLEIMPL_H 1
6 #include "EVENT/ReconstructedParticle.h"
7 #include "AccessChecked.h"
10 #define NCOVARIANCE 10
33 virtual int id()
const {
return simpleUID() ; }
60 virtual double getMass()
const ;
109 void setType(
int type) ;
112 void setMomentum(
const float* momentum ) ;
113 void setMomentum(
const double* momentum ) ;
114 void setEnergy(
float energy) ;
115 void setCovMatrix(
const float* cov ) ;
117 void setMass(
float mass ) ;
118 void setCharge(
float charge ) ;
119 void setReferencePoint(
const float* reference ) ;
122 void setGoodnessOfPID(
float goodness ) ;
133 double _momentum[3] ;
138 float _reference[3] ;
140 float _goodnessOfPID ;
The Vertex class for LCIO.
Definition: Vertex.h:34
void addParticleID(EVENT::ParticleID *pid)
Set the type of reconstructed particle, one of: ReconstructedParticle::SINGLE, ReconstructedParticl...
Definition: ReconstructedParticleImpl.cc:162
virtual EVENT::ParticleID * getParticleIDUsed() const
The particle Id used for the kinematics of this particle.
Definition: ReconstructedParticleImpl.cc:49
std::vector< Track * > TrackVec
Vector of (pointers to) Tracks.
Definition: Track.h:22
std::vector< ParticleID * > ParticleIDVec
Vector of (pointers to) ParticleIDs.
Definition: ParticleID.h:16
std::vector< float > FloatVec
Vector of floats.
Definition: LCIOSTLTypes.h:18
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: ReconstructedParticleImpl.h:33
virtual const float * getReferencePoint() const
Reference point of the reconstructedParticle parameters.
Definition: ReconstructedParticleImpl.cc:46
std::vector< Cluster * > ClusterVec
Vector of (pointers to) Clusters.
Definition: Cluster.h:20
void addParticle(EVENT::ReconstructedParticle *particle)
Add a particle that has been used to create this particle.
Definition: ReconstructedParticleImpl.cc:170
virtual int getType() const
Type of reconstructed particle.
Definition: ReconstructedParticleImpl.cc:38
virtual const double * getMomentum() const
The magnitude of the reconstructed particle's momentum,.
Definition: ReconstructedParticleImpl.cc:41
virtual double getMass() const
Mass of the reconstructed particle, set independently from four vector quantities.
Definition: ReconstructedParticleImpl.cc:44
virtual double getEnergy() const
Energy of the reconstructed particle.
Definition: ReconstructedParticleImpl.cc:42
virtual EVENT::Vertex * getStartVertex() const
The start vertex associated to this particle.
Definition: ReconstructedParticleImpl.cc:68
The LCIO cluster.
Definition: Cluster.h:30
The LCIO track class.
Definition: Track.h:33
virtual const EVENT::TrackVec & getTracks() const
The tracks that have been used for this particle.
Definition: ReconstructedParticleImpl.cc:62
virtual const EVENT::ReconstructedParticleVec & getParticles() const
The reconstructed particles that have been combined to this particle.
Definition: ReconstructedParticleImpl.cc:56
virtual EVENT::Vertex * getEndVertex() const
The vertex where the particle decays This method actually returns the start vertex from the first dau...
Definition: ReconstructedParticleImpl.cc:72
virtual const EVENT::FloatVec & getCovMatrix() const
Covariance matrix of the reconstructed particle's 4vector (10 parameters).
Definition: ReconstructedParticleImpl.cc:43
The LCIO reconstructedParticle.
Definition: ReconstructedParticle.h:35
ReconstructedParticleImpl()
Default constructor, initializes values to 0.
Definition: ReconstructedParticleImpl.cc:11
Persistent interface for LCIO ParticleIDs.
Definition: ParticleID.h:28
void addTrack(EVENT::Track *track)
Add a track that has been used to create this particle.
Definition: ReconstructedParticleImpl.cc:182
virtual float getGoodnessOfPID() const
The overall goodness of the PID on a scale of [0;1].
Definition: ReconstructedParticleImpl.cc:51
void addCluster(EVENT::Cluster *cluster)
Add a cluster that has been used to create this particle.
Definition: ReconstructedParticleImpl.cc:176
virtual const EVENT::ClusterVec & getClusters() const
The clusters that have been used for this particle.
Definition: ReconstructedParticleImpl.cc:59
virtual const EVENT::ParticleIDVec & getParticleIDs() const
The particle Id's sorted by their likelihood.
Definition: ReconstructedParticleImpl.cc:54
virtual float getCharge() const
Charge of the reconstructed particle.
Definition: ReconstructedParticleImpl.cc:45
std::vector< ReconstructedParticle * > ReconstructedParticleVec
Vector of (pointers to) ReconstructedParticles.
Definition: ReconstructedParticle.h:26
Controls access to objects.
Definition: AccessChecked.h:17
virtual ~ReconstructedParticleImpl()
Destructor.
Definition: ReconstructedParticleImpl.cc:31
virtual bool isCompound() const
Convenient method - same as (getParticles().size() > 0 ).
Definition: ReconstructedParticleImpl.h:44
Implementation of ReconstructedParticle.
Definition: ReconstructedParticleImpl.h:22