CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
LogErrorEventFilter::ErrorSort Struct Reference

Public Member Functions

bool operator() (const Error &e1, const Error &e2)
 

Detailed Description

Definition at line 47 of file LogErrorEventFilter.cc.

Member Function Documentation

bool LogErrorEventFilter::ErrorSort::operator() ( const Error e1,
const Error e2 
)
inline

Definition at line 48 of file LogErrorEventFilter.cc.

References edm::ErrorSummaryEntry::category, edm::ELseverityLevel::getLevel(), edm::ErrorSummaryEntry::module, and edm::ErrorSummaryEntry::severity.

48  {
49  if (e1.severity.getLevel() != e2.severity.getLevel()) return e1.severity.getLevel() > e2.severity.getLevel();
50  if (e1.module != e2.module) return e1.module < e2.module;
51  if (e1.category != e2.category) return e1.category < e2.category;
52  return false;
53  }