CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonTaggerNoIP.cc
Go to the documentation of this file.
1 #include <limits>
2 
6 
9  MuonTaggerNoIPMLP theNet{};
10  // default value, used if there are no leptons associated to this jet
11  float bestTag = - std::numeric_limits<float>::infinity();
13  // if there are multiple leptons, look for the highest tag result
14  for (unsigned int i = 0; i < info.leptons(); i++) {
15  const reco::SoftLeptonProperties & properties = info.properties(i);
16  if (m_selector(properties)) {
17  float tag = theNet.value( 0, properties.ptRel, properties.ratioRel, properties.deltaR, info.jet()->energy(), info.jet()->eta() ) +
18  theNet.value( 1, properties.ptRel, properties.ratioRel, properties.deltaR, info.jet()->energy(), info.jet()->eta() );
19  if (tag > bestTag)
20  bestTag = tag;
21  }
22  }
23  return bestTag;
24 }
int i
Definition: DBlmapReader.cc:9
static const TGPicture * info(bool iBackgroundIsBlack)
const T & get(unsigned int index=0) const
virtual edm::RefToBase< Jet > jet(void) const
returns a polymorphic reference to the tagged jet
Definition: JetTagInfo.h:22
btag::LeptonSelector m_selector
virtual float discriminator(const TagInfoHelper &tagInfo) const
b-tag a jet based on track-to-jet parameters in the extened info collection
const SoftLeptonProperties & properties(size_t i) const
virtual double eta() const
momentum pseudorapidity
virtual double energy() const
energy
const double infinity