CMS 3D CMS Logo

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 override
 
 TemplatedNegativeTrackCountingComputer (const edm::ParameterSet &parameters)
 
- Public Member Functions inherited from TemplatedTrackCountingComputer< Container, Base >
float discriminator (const TagInfoHelper &ti) const override
 
 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
 
using Tokens = void
 
- 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 (const std::string &label)
 
void uses (unsigned int id, 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

◆ TemplatedNegativeTrackCountingComputer()

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

Member Function Documentation

◆ discriminator()

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

Reimplemented from JetTagComputer.

Definition at line 12 of file TemplatedNegativeTrackCountingComputer.h.

12  {
15  std::multiset<float> significances = this->orderedSignificances(tkip);
16  std::multiset<float>::iterator nth = significances.begin();
17  for (int i = 0; i < this->m_nthTrack - 1 && nth != significances.end(); i++)
18  nth++;
19  if (nth != significances.end())
20  return -(*nth);
21  else
22  return -100.;
23  }

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

BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
reco::IPTagInfo
Definition: IPTagInfo.h:48
mps_fire.i
i
Definition: mps_fire.py:428
TemplatedTrackCountingComputer::m_nthTrack
int m_nthTrack
Definition: TemplatedTrackCountingComputer.h:115
JetTagComputer::TagInfoHelper::get
const T & get(unsigned int index=0) const
Definition: JetTagComputer.h:42
TemplatedTrackCountingComputer::orderedSignificances
std::multiset< float > orderedSignificances(const TagInfo &tkip) const
Definition: TemplatedTrackCountingComputer.h:69
TemplatedTrackCountingComputer
Definition: TemplatedTrackCountingComputer.h:12