5#ifndef INDETTRACKPERFMON_VERTEXPARAMETERSHELPER_H
6#define INDETTRACKPERFMON_VERTEXPARAMETERSHELPER_H
29 inline float posX(
const V& v ) {
return v.x(); }
33 inline float posY(
const V& v ) {
return v.y(); }
37 inline float posZ(
const V& v ) {
return v.z(); }
52 return accHasValidTime.
isAvailable(v) ? accHasValidTime(v) : 0;
60 return accTime.
isAvailable(v) ? accTime(v) : -9999.;
76 return v.covariancePosition()( par1, par2 );
84 return (
cov(v, par, par) < 0 ) ? 0. : std::sqrt(
cov(v, par, par) ); }
92 return accTimeResol.
isAvailable(v) ? accTimeResol(v) : -9999.;
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
float getTime(const xAOD::TrackParticle &p)
Accessor utility function for getting the track time.
VposDefs
enum for vertex position
uint8_t getHasValidTime(const xAOD::TrackParticle &p)
Accessor utility function for getting the track hasValidTime.
float getTimeErr(const xAOD::Vertex &v)
Accessor utility function for getting the vertex time resolution.
float posX(const V &v)
Accessor utility function for getting the value of vertex position x.
float posZ(const V &v)
Accessor utility function for getting the value of vertex position z.
float getError(const xAOD::TrackParticle &p, Trk::ParamDefs par)
Accessor utility function for getting the track parameters error.
float getNdof(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of dof.
float posY(const V &v)
Accessor utility function for getting the value of vertex position y.
float getChiSquared(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of chi^2.
float timeErr(const V &v)
float getCov(const xAOD::TrackParticle &p, Trk::ParamDefs par1, Trk::ParamDefs par2)
Accessor utility function for getting the track parameters covariance.
int getVertexType(const xAOD::Vertex &v)
Accessor utility function for getting the vertex type.
float cov(const U &p, Trk::ParamDefs par1, Trk::ParamDefs par2)
int vertexType(const V &v)
TruthVertex_v1 TruthVertex
Typedef to implementation.
Vertex_v1 Vertex
Define the latest version of the vertex class.