CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
NegativeTrackCountingComputer Class Reference

#include <NegativeTrackCountingComputer.h>

Inheritance diagram for NegativeTrackCountingComputer:
TrackCountingComputer JetTagComputer

Public Member Functions

float discriminator (const TagInfoHelper &ti) const
 
 NegativeTrackCountingComputer (const edm::ParameterSet &parameters)
 
- Public Member Functions inherited from TrackCountingComputer
float discriminator (const TagInfoHelper &ti) const
 
 TrackCountingComputer (const edm::ParameterSet &parameters)
 
- Public Member Functions inherited from JetTagComputer
const std::vector< std::string > & getInputLabels () const
 
 JetTagComputer ()
 
 JetTagComputer (const edm::ParameterSet &configuration)
 
float operator() (const reco::BaseTagInfo &info) const
 
float operator() (const TagInfoHelper &helper) const
 
virtual void setEventSetup (const edm::EventSetup &) const
 
virtual ~JetTagComputer ()
 

Additional Inherited Members

- Protected Member Functions inherited from TrackCountingComputer
std::multiset< float > orderedSignificances (const reco::TrackIPTagInfo &tkip) const
 
- Protected Member Functions inherited from JetTagComputer
virtual float discriminator (const reco::BaseTagInfo &) const
 
void uses (unsigned int id, const std::string &label)
 
void uses (const std::string &label)
 
- Protected Attributes inherited from TrackCountingComputer
double m_cutMaxDecayLen
 
double m_cutMaxDistToAxis
 
double m_deltaR
 
int m_ipType
 
int m_nthTrack
 
reco::TrackBase::TrackQuality m_trackQuality
 
bool m_useAllQualities
 
bool useVariableJTA_
 
reco::TrackIPTagInfo::variableJTAParameters varJTApars
 

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.

7  : TrackCountingComputer(parameters)
8  {
9  }
TrackCountingComputer(const edm::ParameterSet &parameters)

Member Function Documentation

float NegativeTrackCountingComputer::discriminator ( const TagInfoHelper ti) const
inlinevirtual

Reimplemented from JetTagComputer.

Definition at line 11 of file NegativeTrackCountingComputer.h.

References JetTagComputer::TagInfoHelper::get(), i, TrackCountingComputer::m_nthTrack, and TrackCountingComputer::orderedSignificances().

12  {
13  const reco::TrackIPTagInfo & tkip = ti.get<reco::TrackIPTagInfo>();
14  std::multiset<float> significances = orderedSignificances(tkip);
15  std::multiset<float>::iterator nth=significances.begin();
16  for(int i=0;i<m_nthTrack-1 && nth!=significances.end();i++) nth++;
17  if(nth!=significances.end()) return -(*nth); else return -100.;
18  }
int i
Definition: DBlmapReader.cc:9
std::multiset< float > orderedSignificances(const reco::TrackIPTagInfo &tkip) const