#include <PromptTrackCountingComputer.h>
Public Member Functions | |
float | discriminator (const TagInfoHelper &ti) const |
PromptTrackCountingComputer (const edm::ParameterSet ¶meters) | |
Private Attributes | |
double | maxImpactParameterSig |
Definition at line 12 of file PromptTrackCountingComputer.h.
PromptTrackCountingComputer::PromptTrackCountingComputer | ( | const edm::ParameterSet & | parameters | ) | [inline] |
Definition at line 15 of file PromptTrackCountingComputer.h.
References edm::ParameterSet::getParameter(), and maxImpactParameterSig.
: TrackCountingComputer(parameters) { maxImpactParameterSig = parameters.getParameter<double>("maxImpactParameterSig"); }
float PromptTrackCountingComputer::discriminator | ( | const TagInfoHelper & | ti | ) | const [inline, virtual] |
Reimplemented from TrackCountingComputer.
Definition at line 20 of file PromptTrackCountingComputer.h.
References JetTagComputer::TagInfoHelper::get(), maxImpactParameterSig, and TrackCountingComputer::orderedSignificances().
{ const reco::TrackIPTagInfo & tkip = ti.get<reco::TrackIPTagInfo>(); std::multiset<float> significances = orderedSignificances(tkip); std::multiset<float>::iterator sig; unsigned int nPromptTrk = 0; for(sig=significances.begin(); sig!=significances.end(); sig++) { if (fabs(*sig) < maxImpactParameterSig) nPromptTrk++; // edm::LogDebug("") << "Track "<< nPromptTrk << " sig=" << *sig; } return double(nPromptTrk); }
double PromptTrackCountingComputer::maxImpactParameterSig [private] |
Definition at line 35 of file PromptTrackCountingComputer.h.
Referenced by discriminator(), and PromptTrackCountingComputer().