CMS 3D CMS Logo

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

Functions

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

Function Documentation

TrackIPTagInfo::SortCriteria TrackSorting::getCriterium ( const std::string &  name)

Definition at line 11 of file TrackSorting.cc.

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

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