31 trackProbability3D_(0),
32 trackProbability2D_(0)
39 float mass,
const std::pair<bool,Measurement1D> & ip,
const std::pair<bool,Measurement1D> &
ip2d,
45 auto const& aTrack = it->
track();
57 ip3D_=ip.second.value();
58 sip3D_=ip.second.significance();
59 ip2D_=ip2d.second.value();
60 sip2D_=ip2d.second.significance();
67 nPixelHits_=aTrack.hitPattern().numberOfValidPixelHits();
68 nHits_=aTrack.hitPattern().numberOfValidHits();
76 if (m_computeProbabilities) {
79 std::pair<bool,double> probability = m_probabilityEstimator->
probability(
false,0,ip.second.significance(),aTrack,
jet,
pv);
80 double prob3D=(probability.first ? probability.second : -1.);
83 probability = m_probabilityEstimator->
probability(
false,1,ip2d.second.significance(),aTrack,
jet,
pv);
84 double prob2D=(probability.first ? probability.second : -1.);
double y() const
y coordinate
Base class for all types of Jets.
double px() const final
x coordinate of momentum vector
constexpr bool isFinite(T x)
const Point & position() const
position
double pz() const final
z coordinate of momentum vector
double z() const
z coordinate
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)
double x() const
x coordinate
const Track & track() const
double py() const final
y coordinate of momentum vector
float trackProbability3D_
std::pair< bool, double > probability(bool quality, int ipType, float significance, const reco::Track &, const reco::Jet &, const reco::Vertex &) const
float trackProbability2D_