CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LeptonTaggerDistance.cc
Go to the documentation of this file.
1 #include <limits>
2 
5 
7 float LeptonTaggerDistance::discriminator(const TagInfoHelper & tagInfo) const {
9  // if there are any leptons, look for any one within the requested deltaR
10  for (unsigned int i = 0; i < info.leptons(); i++) {
11  if (info.properties(i).deltaR <= m_maxDistance)
12  return 1.0;
13  }
14  // default value, used if there are no leptons associated to this jet
16 }
int i
Definition: DBlmapReader.cc:9
const T & get(unsigned int index=0) const
virtual float discriminator(const TagInfoHelper &tagInfo) const
b-tag a jet based on track-to-jet pseudo-angular distance
unsigned int leptons(void) const
const double infinity
const SoftLeptonProperties & properties(size_t i) const