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.);
Base class for all types of Jets.
constexpr bool isFinite(T x)
std::pair< bool, double > probability(bool quality, int ipType, float significance, const reco::Track &, const reco::Jet &, const reco::Vertex &) const
SeedingTrackInfoBuilder()
void buildSeedingTrackInfo(const reco::TransientTrack *it, const reco::Vertex &pv, const reco::Jet &jet, float mass, const std::pair< bool, Measurement1D > &ip, const std::pair< bool, Measurement1D > &ip2d, float jet_distance, float jaxis_dlength, HistogramProbabilityEstimator *m_probabilityEstimator, bool m_computeProbabilities)
float trackProbability3D_
float trackProbability2D_