1 #ifndef __RecoVertex_AdaptiveVertexFinder_SVTimeHelpers_h__ 2 #define __RecoVertex_AdaptiveVertexFinder_SVTimeHelpers_h__ 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;
20 expv_x2 += time*time*
w;
25 meantime = meantime/normw;
26 expv_x2 = expv_x2/normw;
27 timecov = expv_x2 - meantime*meantime;
29 err(3,3) = timecov/(double)trks.size();
GlobalError positionError() const
float totalChiSquared() const
const AlgebraicSymMatrix44 & matrix4D() const
std::vector< reco::TransientTrack > const & originalTracks() const
GlobalPoint position() const
void updateVertexTime(TransientVertex &vtx)