16#ifndef O2_PVERTEXER_HELPERS_H
17#define O2_PVERTEXER_HELPERS_H
134 bool canUse(
float zmin,
float zmax)
const
136 return canUse() && (
z > zmin &&
z < zmax);
148 auto dt =
timeEst.getTimeStamp() -
o.timeEst.getTimeStamp();
149 auto dte2 =
timeEst.getTimeStampError() *
timeEst.getTimeStampError() +
o.timeEst.getTimeStampError() *
o.timeEst.getTimeStampError();
150 auto dtnorm2 = dt * dt / dte2;
152 return dtnorm2 + dz * dz *
sig2ZI;
158 auto dt =
timeEst.getTimeStamp() -
o.timeEst.getTimeStamp();
160 float dte2 =
o.timeEst.getTimeStampError() *
o.timeEst.getTimeStampError() +
timeEst.getTimeStampError() *
timeEst.getTimeStampError();
161 return dt / dte2 + dz * dz / (1. /
sig2ZI + 1. /
o.sig2ZI);
169 dz =
z +
tgL * dx - vtx.getZ();
178 auto dz =
z +
tgL * dx - vtx.getZ();
184 constexpr float NDOF2I = 1. / 2, NDOF3I = 1. / 3;
187 float dt =
timeEst.getTimeStamp() - vtx.getTimeStamp().getTimeStamp();
188 chi2T += dt * dt / (
timeEst.getTimeStampError() *
timeEst.getTimeStampError());
201 double syy =
src.getSigmaY2(), szz =
src.getSigmaZ2(), syz =
src.getSigmaZY();
202 auto det = syy * szz - syz * syz;
208 auto detI = 1. / det;
212 wghHisto = 1. / ((szz + addHZErr2) * (t_est.getTimeStampError() * t_est.getTimeStampError() + addHTErr2));
232 return uint16_t(bin);
2D messeageable histo class
Extention of GlobalTrackID by flags relevant for verter-track association.
Referenc on track indices contributing to the vertex, with possibility chose tracks from specific sou...
GLubyte GLubyte GLubyte GLubyte w
GLdouble GLdouble GLdouble z
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.
ClassDefNV(PVtxCompDump, 1)
uint16_t fillAndFlagBin(float x, float y, float w)
std::vector< int > filledBins
std::vector< int > trackIDs
ClassDefNV(TrackVFDump, 1)
float getResiduals(const PVertex &vtx) const
bool isITSTPCAdjusted() const
bool canUse(float zmin, float zmax) const
float tgP
tangent(phi) in tracking frame
TrackVF(const o2::track::TrackParCov &src, const TimeEst &t_est, int _entry, GTrackID _gid, float addHTErr2=0., float addHZErr2=0.)
float sigYZI
YZ component of inverse cov.matrix.
float evalChi2ToVertex(const PVertex &vtx, bool useTime)
void reportBadTrack(const o2::track::TrackParCov &src, const TimeEst &t_est, GTrackID _gid)
float wgh
track weight wrt current vertex seed
float getResiduals(const PVertex &vtx, float &dy, float &dz) const
bool operator<(const TrackVF &trc) const
float getDist2(const TrackVF &o) const
float getZForXY(float vx, float vy) const
float sig2YI
YY component of inverse cov.matrix.
float cosAlp
cos of alpha frame
int entry
track entry in the input vector
float sig2ZI
ZZ component of inverse cov.matrix.
float sinAlp
sin of alpha frame
float getDist2Sym(const TrackVF &o) const
generic track with timestamp
float maxScaleSigma2Tested
void resetForNewIteration()
void setScale(float scale2, float tukey2I)
VertexSeed(const PVertex &vtx)
int nScaleSlowConvergence