CMS 3D CMS Logo

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

is sv1 < sv2 More...

#include <OutputDDToDDL.h>

Public Member Functions

bool operator() (const DDsvalues_type &sv1, const DDsvalues_type &sv2)
 

Detailed Description

is sv1 < sv2

Definition at line 17 of file OutputDDToDDL.h.

Member Function Documentation

bool ddsvaluesCmp::operator() ( const DDsvalues_type sv1,
const DDsvalues_type sv2 
)

Definition at line 17 of file OutputDDToDDL.cc.

References first, and edm::second().

17  {
18  if ( sv1.size() < sv2.size() ) return true;
19  if ( sv2.size() < sv1.size() ) return false;
20  size_t ind = 0;
21  for (; ind < sv1.size(); ++ind) {
22  if ( sv1[ind].first < sv2[ind].first ) return true;
23  if ( sv2[ind].first < sv1[ind].first ) return false;
24  if ( sv1[ind].second < sv2[ind].second ) return true;
25  if ( sv2[ind].second < sv1[ind].second ) return false;
26  }
27  return false;
28 }
U second(std::pair< T, U > const &p)
bool first
Definition: L1TdeRCT.cc:94