CMS 3D CMS Logo

Public Member Functions | Private Attributes

PromptTrackCountingComputer Class Reference

#include <PromptTrackCountingComputer.h>

Inheritance diagram for PromptTrackCountingComputer:
TrackCountingComputer JetTagComputer

List of all members.

Public Member Functions

float discriminator (const TagInfoHelper &ti) const
 PromptTrackCountingComputer (const edm::ParameterSet &parameters)

Private Attributes

double maxImpactParameterSig

Detailed Description

Definition at line 12 of file PromptTrackCountingComputer.h.


Constructor & Destructor Documentation

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");
  }

Member Function Documentation

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);
   }

Member Data Documentation

Definition at line 35 of file PromptTrackCountingComputer.h.

Referenced by discriminator(), and PromptTrackCountingComputer().