CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TemplatedNegativeTrackCountingComputer.h
Go to the documentation of this file.
1 #ifndef ImpactParameter_TemplatedNegativeTrackCountingComputer_h
2 #define ImpactParameter_TemplatedNegativeTrackCountingComputer_h
3 
5 
6 template <class Container, class Base>
8 public:
11 
12  float discriminator(const JetTagComputer::TagInfoHelper& ti) const override {
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  }
24 };
25 
26 #endif // ImpactParameter_TemplatedNegativeTrackCountingComputer_h
const T & get(unsigned int index=0) const
float discriminator(const JetTagComputer::TagInfoHelper &ti) const override
std::multiset< float > orderedSignificances(const TagInfo &tkip) const
TemplatedNegativeTrackCountingComputer(const edm::ParameterSet &parameters)
edm::AssociationVector< reco::JetRefBaseProd, Values > Container