CMS 3D CMS Logo

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 }
static const TGPicture * info(bool iBackgroundIsBlack)
const T & get(unsigned int index=0) const
const SoftLeptonProperties & properties(size_t i) const
const double infinity
float discriminator(const TagInfoHelper &tagInfo) const override
b-tag a jet based on track-to-jet pseudo-angular distance