CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
TrackSorting Namespace Reference

Functions

reco::btag::SortCriteria getCriterium (const std::string &name)
 

Function Documentation

reco::btag::SortCriteria TrackSorting::getCriterium ( const std::string &  name)

Definition at line 11 of file TrackSorting.cc.

References edm::hlt::Exception, reco::btag::IP2DSig, reco::btag::IP2DValue, reco::btag::IP3DSig, reco::btag::Prob2D, and reco::btag::Prob3D.

12 {
13  using namespace reco::btag;
14  if (name == "sip3dSig")
15  return IP3DSig;
16  if (name == "prob3d")
17  return Prob3D;
18  if (name == "sip2dSig")
19  return IP2DSig;
20  if (name == "prob2d")
21  return Prob2D;
22  if (name == "sip2dVal")
23  return IP2DValue;
24 
25  throw cms::Exception("InvalidArgument")
26  << "Identifier \"" << name << "\" does not represent a valid "
27  << "track sorting criterium." << std::endl;
28 }