CMS 3D CMS Logo

Public Member Functions

NegativeTrackCountingComputer Class Reference

#include <NegativeTrackCountingComputer.h>

Inheritance diagram for NegativeTrackCountingComputer:
TrackCountingComputer JetTagComputer

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 4 of file NegativeTrackCountingComputer.h.


Constructor & Destructor Documentation

NegativeTrackCountingComputer::NegativeTrackCountingComputer ( const edm::ParameterSet parameters) [inline]

Definition at line 7 of file NegativeTrackCountingComputer.h.

                                                                     : TrackCountingComputer(parameters)
  {
  }

Member Function Documentation

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