1 #ifndef ImpactParameter_TrackCountingComputer_h
2 #define ImpactParameter_TrackCountingComputer_h
8 #include "Math/GenVector/VectorUtil.h"
24 std::string trackQualityType = parameters.
getParameter<std::string>(
"trackQualityClass");
27 if (trackQualityType ==
"any" ||
28 trackQualityType ==
"Any" ||
39 std::multiset<float>::reverse_iterator nth=significances.rbegin();
40 for(
int i=0;
i<
m_nthTrack-1 && nth!=significances.rend();
i++) nth++;
41 if(nth!=significances.rend())
return *nth;
else return -100.;
49 std::multiset<float> significances;
55 for(std::vector<reco::TrackIPTagInfo::TrackIPData>::const_iterator it = impactParameters.begin(); it!=impactParameters.end(); ++it, i++)
63 significances.insert( ((
m_ipType==0)?it->ip3d:it->ip2d).significance() );
81 #endif // ImpactParameter_TrackCountingComputer_h
T getParameter(std::string const &) const
const T & get(unsigned int index=0) const
const edm::Ref< VertexCollection > & primaryVertex() const
TrackQuality
track quality
std::multiset< float > orderedSignificances(const reco::TrackIPTagInfo &tkip) const
bool isNull() const
Checks for null.
TrackCountingComputer(const edm::ParameterSet ¶meters)
void uses(unsigned int id, const std::string &label)
float discriminator(const TagInfoHelper &ti) const
double m_cutMaxDistToAxis
virtual edm::RefToBase< Jet > jet(void) const
returns a polymorphic reference to the tagged jet
static TrackQuality qualityByName(const std::string &name)
const std::vector< TrackIPData > & impactParameterData() const
reco::TrackBase::TrackQuality m_trackQuality
const edm::RefVector< TrackCollection > & selectedTracks() const