10 #include <mdst/dataobjects/KLMCluster.h>
13 #include <framework/gearbox/Const.h>
14 #include <mdst/dataobjects/ECLCluster.h>
15 #include <mdst/dataobjects/Track.h>
20 m_globalX(0), m_globalY(0), m_globalZ(0), m_p(0),
21 m_errorX(0), m_errorY(0), m_errorZ(0), m_errorP(0)
26 int nInnermostLayer,
float p) :
27 m_time(time), m_layers(nLayers), m_innermostLayer(nInnermostLayer),
28 m_globalX(x), m_globalY(y), m_globalZ(z), m_p(p),
29 m_errorX(0), m_errorY(0), m_errorZ(0), m_errorP(0)
45 return sqrt(mass * mass +
m_p *
m_p);
58 return eclClusters.
size() > 0;
64 return tracks.size() > 0;
71 TMatrixDSym errorMatrix(4);
72 TMatrixD jacobian(4, 4);
84 jacobian(1, 0) = jacobian(0, 1);
89 jacobian(2, 0) = jacobian(0, 2);
90 jacobian(2, 1) = jacobian(1, 2);
95 return errorMatrix.Similarity(jacobian);
102 TMatrixDSym errorMatrix(7);
104 for (i = 0; i < 4; i++) {
105 for (j = i; j < 4; j++)
106 errorMatrix[i][j] = errorMatrix4[i][j];
108 for (i = 4; i < 7; i++)
109 errorMatrix[i][i] = 1.0;
double getMass() const
Particle mass.
static const ParticleType Klong
K^0_L particle.
bool getAssociatedTrackFlag() const
Check for associated tracks.
float getEnergy() const
Get energy.
float m_globalX
Global position X coordinate.
float m_errorX
Error of vertex X coordinate.
TMatrixDSym getError7x7() const
Get KLM cluster momentum error matrix.
float m_globalZ
Global position Z coordinate.
float m_p
Absolute value of momentum, 0 means unknown.
bool getAssociatedEclClusterFlag() const
Check for associated ECL clusters.
float m_errorP
Error of momentum absolute value.
float m_errorY
Error of vertex Y coordinate.
float getMomentumMag() const
Get momentum magnitude.
TMatrixDSym getError4x4() const
Get KLM cluster momentum error matrix.
float m_errorZ
Error of vertex Z coordinate.
TLorentzVector getMomentum() const
Get momentum.
float m_globalY
Global position Y coordinate.
Class for type safe access to objects that are referred to in relations.
size_t size() const
Get number of relations.
Abstract base class for different kinds of events.