31 trackProbability3D_(0),
32 trackProbability2D_(0) {}
38 const std::pair<bool, Measurement1D>& ip,
39 const std::pair<bool, Measurement1D>& ip2d,
43 bool m_computeProbabilities =
false) {
47 auto const& aTrack = it->
track();
52 dz_ = aTrack.dz(
pv.position());
53 dxy_ = aTrack.dxy(
pv.position());
59 ip3D_ = ip.second.value();
60 sip3D_ = ip.second.significance();
69 nPixelHits_ = aTrack.hitPattern().numberOfValidPixelHits();
70 nHits_ = aTrack.hitPattern().numberOfValidHits();
78 if (m_computeProbabilities) {
80 std::pair<bool, double> probability =
81 m_probabilityEstimator->
probability(
false, 0, ip.second.significance(), aTrack,
jet,
pv);
82 double prob3D = (probability.first ? probability.second : -1.);
85 probability = m_probabilityEstimator->
probability(
false, 1,
ip2d.second.significance(), aTrack,
jet,
pv);
86 double prob2D = (probability.first ? probability.second : -1.);