#include <NegativeTrackCountingComputer.h>
Public Member Functions | |
float | discriminator (const TagInfoHelper &ti) const |
NegativeTrackCountingComputer (const edm::ParameterSet ¶meters) |
Definition at line 4 of file NegativeTrackCountingComputer.h.
NegativeTrackCountingComputer::NegativeTrackCountingComputer | ( | const edm::ParameterSet & | parameters | ) | [inline] |
Definition at line 7 of file NegativeTrackCountingComputer.h.
: TrackCountingComputer(parameters) { }
float NegativeTrackCountingComputer::discriminator | ( | const TagInfoHelper & | ti | ) | const [inline, virtual] |
Reimplemented from TrackCountingComputer.
Definition at line 11 of file NegativeTrackCountingComputer.h.
References JetTagComputer::TagInfoHelper::get(), i, TrackCountingComputer::m_nthTrack, and TrackCountingComputer::orderedSignificances().
{ const reco::TrackIPTagInfo & tkip = ti.get<reco::TrackIPTagInfo>(); std::multiset<float> significances = orderedSignificances(tkip); std::multiset<float>::iterator nth=significances.begin(); for(int i=0;i<m_nthTrack-1 && nth!=significances.end();i++) nth++; if(nth!=significances.end()) return -(*nth); else return -100.; }