10#include <mdst/dataobjects/KLMCluster.h>
13#include <framework/gearbox/Const.h>
14#include <mdst/dataobjects/ECLCluster.h>
15#include <mdst/dataobjects/Track.h>
23 m_globalX(0), m_globalY(0), m_globalZ(0), m_p(0)
28 int nInnermostLayer,
float p) :
29 m_time(time), m_layers(nLayers), m_innermostLayer(nInnermostLayer),
30 m_globalX(x), m_globalY(y), m_globalZ(z), m_p(p)
46 return sqrt(mass * mass +
m_p *
m_p);
53 return ROOT::Math::PxPyPzEVector(p3.X(), p3.Y(), p3.Z(),
getEnergy());
59 return eclClusters.
size() > 0;
65 return tracks.
size() > 0;
72 TMatrixDSym errorMatrix(4);
73 TMatrixD jacobian(4, 4);
81 jacobian(1, 0) = jacobian(0, 1);
86 jacobian(2, 0) = jacobian(0, 2);
87 jacobian(2, 1) = jacobian(1, 2);
92 return errorMatrix.Similarity(jacobian);
99 TMatrixDSym errorMatrix(7);
101 for (i = 0; i < 4; i++) {
102 for (j = i; j < 4; j++)
103 errorMatrix[i][j] = errorMatrix4[i][j];
105 for (i = 4; i < 7; i++)
106 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.
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 getMomentumMag() const
Get momentum magnitude.
TMatrixDSym getError4x4() const
Get KLM cluster momentum error matrix.
ROOT::Math::PxPyPzEVector 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.