1 #ifndef ImpactParameter_PromptTrackCountingComputer_h 2 #define ImpactParameter_PromptTrackCountingComputer_h 13 #include "Math/GenVector/VectorUtil.h" 36 if (trackQualityType ==
"any" ||
37 trackQualityType ==
"Any" ||
47 std::multiset<float>::iterator sig;
48 unsigned int nPromptTrk = 0;
49 for(sig=significances.begin(); sig!=significances.end(); sig++) {
53 return double(nPromptTrk);
59 const std::vector<reco::btag::TrackIPData> & impactParameters((tkip.
impactParameterData()));
61 std::multiset<float> significances;
67 for(std::vector<reco::btag::TrackIPData>::const_iterator it = impactParameters.begin(); it!=impactParameters.end(); ++it, i++)
77 significances.insert( ((
m_ipType==0)?it->ip3d:it->ip2d).significance() );
98 #endif // ImpactParameter_PromptTrackCountingComputer_h T getParameter(std::string const &) const
const T & get(unsigned int index=0) const
reco::TrackBase::TrackQuality m_trackQuality
TrackQuality
track quality
const Container & selectedTracks() const
const edm::Ref< VertexCollection > & primaryVertex() const
float discriminator(const TagInfoHelper &ti) const
double m_cutMaxDistToAxis
double maxImpactParameterSig
void uses(unsigned int id, const std::string &label)
PromptTrackCountingComputer(const edm::ParameterSet ¶meters)
bool isNull() const
Checks for null.
const std::vector< btag::TrackIPData > & impactParameterData() const
static TrackQuality qualityByName(const std::string &name)
std::multiset< float > orderedSignificances(const reco::TrackIPTagInfo &tkip) const
double maxImpactParameter