1 #ifndef __RecoVertex_AdaptiveVertexFinder_SVTimeHelpers_h__ 2 #define __RecoVertex_AdaptiveVertexFinder_SVTimeHelpers_h__ 12 const auto&
trks =
vtx.originalTracks();
13 double meantime = 0., expv_x2 = 0., normw = 0., timecov = 0.;
14 for (
const auto& trk :
trks) {
16 const double time = trk.timeExt();
17 const double inverr = 1.0 / trk.dtErrorExt();
18 const double w = inverr * inverr;
25 meantime = meantime / normw;
26 expv_x2 = expv_x2 / normw;
27 timecov = expv_x2 - meantime * meantime;
28 auto err =
vtx.positionError().matrix4D();
29 err(3, 3) = timecov / (double)
trks.size();
constexpr bool isFinite(T x)
void updateVertexTime(TransientVertex &vtx)