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);
61 std::multiset<float> significances;
67 for(std::vector<reco::TrackIPTagInfo::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
const edm::Ref< VertexCollection > & primaryVertex() const
TrackQuality
track quality
float discriminator(const TagInfoHelper &ti) const
double m_cutMaxDistToAxis
bool isNull() const
Checks for null.
double maxImpactParameterSig
void uses(unsigned int id, const std::string &label)
PromptTrackCountingComputer(const edm::ParameterSet ¶meters)
virtual edm::RefToBase< Jet > jet(void) const
returns a polymorphic reference to the tagged jet
static TrackQuality qualityByName(const std::string &name)
std::multiset< float > orderedSignificances(const reco::TrackIPTagInfo &tkip) const
const std::vector< TrackIPData > & impactParameterData() const
double maxImpactParameter
const edm::RefVector< TrackCollection > & selectedTracks() const