18 double absSignificance= fabs(significance);
22 vector<TrackProbabilityCalibration::Entry>::const_iterator
found;
23 vector<TrackProbabilityCalibration::Entry>::const_iterator it;
24 vector<TrackProbabilityCalibration::Entry>::const_iterator it_end;
25 if(ipType==0) {it=m_calibration3D->data.begin(); it_end=m_calibration3D->data.end(); }
26 else if(ipType==1) {it=m_calibration2D->data.begin(); it_end=m_calibration2D->data.end(); }
30 if(found!=it_end) probabilityHistogram = &found->histogram;
31 if(!probabilityHistogram)
35 trackProbability = 1. - probabilityHistogram->normalizedIntegral(absSignificance);
37 if(absSignificance!=0)
38 trackProbability*=significance/absSignificance;
Base class for all types of Jets.
double trackProbability(const reco::TrackRef track)
std::pair< bool, double > probability(bool quality, int ipType, float significance, const reco::Track &, const reco::Jet &, const reco::Vertex &) const