CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoBTag/ImpactParameter/interface/NegativeTrackCountingComputer.h

Go to the documentation of this file.
00001 #include "RecoBTag/ImpactParameter/interface/TrackCountingComputer.h"
00002 
00003 
00004 class NegativeTrackCountingComputer : public TrackCountingComputer
00005 {
00006  public:
00007   NegativeTrackCountingComputer(const edm::ParameterSet & parameters ) : TrackCountingComputer(parameters)
00008   {
00009   }
00010  
00011   float discriminator(const TagInfoHelper & ti) const 
00012    {
00013      const reco::TrackIPTagInfo & tkip = ti.get<reco::TrackIPTagInfo>();
00014      std::multiset<float> significances = orderedSignificances(tkip);
00015      std::multiset<float>::iterator nth=significances.begin();
00016      for(int i=0;i<m_nthTrack-1 && nth!=significances.end();i++) nth++;  
00017      if(nth!=significances.end()) return -(*nth); else return -100.;
00018    }
00019 
00020 };