CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
TemplatedNegativeTrackCountingComputer< Container, Base > Class Template Reference

#include <TemplatedNegativeTrackCountingComputer.h>

Inheritance diagram for TemplatedNegativeTrackCountingComputer< Container, Base >:
TemplatedTrackCountingComputer< Container, Base > JetTagComputer

Public Member Functions

float discriminator (const JetTagComputer::TagInfoHelper &ti) const
 
 TemplatedNegativeTrackCountingComputer (const edm::ParameterSet &parameters)
 
- Public Member Functions inherited from TemplatedTrackCountingComputer< Container, Base >
float discriminator (const TagInfoHelper &ti) const
 
 TemplatedTrackCountingComputer (const edm::ParameterSet &parameters)
 
- Public Member Functions inherited from JetTagComputer
const std::vector< std::string > & getInputLabels () const
 
virtual void initialize (const JetTagComputerRecord &)
 
 JetTagComputer ()
 
 JetTagComputer (const edm::ParameterSet &configuration)
 
float operator() (const reco::BaseTagInfo &info) const
 
float operator() (const TagInfoHelper &helper) const
 
void setupDone ()
 
virtual ~JetTagComputer ()
 

Additional Inherited Members

- Public Types inherited from TemplatedTrackCountingComputer< Container, Base >
typedef reco::IPTagInfo
< Container, Base > 
TagInfo
 
- Protected Member Functions inherited from TemplatedTrackCountingComputer< Container, Base >
std::multiset< float > orderedSignificances (const TagInfo &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 TemplatedTrackCountingComputer< Container, Base >
double m_cutMaxDecayLen
 
double m_cutMaxDistToAxis
 
double m_deltaR
 
int m_ipType
 
double m_minIP
 
int m_nthTrack
 
reco::TrackBase::TrackQuality m_trackQuality
 
bool m_useAllQualities
 
bool m_useSignedIPSig
 
bool useVariableJTA_
 
reco::btag::variableJTAParameters varJTApars
 

Detailed Description

template<class Container, class Base>
class TemplatedNegativeTrackCountingComputer< Container, Base >

Definition at line 7 of file TemplatedNegativeTrackCountingComputer.h.

Constructor & Destructor Documentation

template<class Container , class Base >
TemplatedNegativeTrackCountingComputer< Container, Base >::TemplatedNegativeTrackCountingComputer ( const edm::ParameterSet parameters)
inline

Member Function Documentation

template<class Container , class Base >
float TemplatedNegativeTrackCountingComputer< Container, Base >::discriminator ( const JetTagComputer::TagInfoHelper ti) const
inlinevirtual

Reimplemented from JetTagComputer.

Definition at line 14 of file TemplatedNegativeTrackCountingComputer.h.

References JetTagComputer::TagInfoHelper::get(), i, TemplatedTrackCountingComputer< Container, Base >::m_nthTrack, and TemplatedTrackCountingComputer< Container, Base >::orderedSignificances().

15  {
17  std::multiset<float> significances = this->orderedSignificances(tkip);
18  std::multiset<float>::iterator nth=significances.begin();
19  for(int i=0;i<this->m_nthTrack-1 && nth!=significances.end();i++) nth++;
20  if(nth!=significances.end()) return -(*nth); else return -100.;
21  }
int i
Definition: DBlmapReader.cc:9
const T & get(unsigned int index=0) const
std::multiset< float > orderedSignificances(const TagInfo &tkip) const