Functions | |
reco::TrackIPTagInfo::SortCriteria | getCriterium (const std::string &name) |
TrackIPTagInfo::SortCriteria TrackSorting::getCriterium | ( | const std::string & | name | ) |
Definition at line 11 of file TrackSorting.cc.
References Exception, reco::TrackIPTagInfo::IP2DSig, reco::TrackIPTagInfo::IP2DValue, reco::TrackIPTagInfo::IP3DSig, reco::TrackIPTagInfo::Prob2D, and reco::TrackIPTagInfo::Prob3D.
{ if (name == "sip3dSig") return TrackIPTagInfo::IP3DSig; if (name == "prob3d") return TrackIPTagInfo::Prob3D; if (name == "sip2dSig") return TrackIPTagInfo::IP2DSig; if (name == "prob2d") return TrackIPTagInfo::Prob2D; if (name == "sip2dVal") return TrackIPTagInfo::IP2DValue; throw cms::Exception("InvalidArgument") << "Identifier \"" << name << "\" does not represent a valid " << "track sorting criterium." << std::endl; }