CMS 3D CMS Logo

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

#include <TransientProductLookupMap.h>

Public Member Functions

bool operator() (std::pair< TypeInBranchType, ConstBranchDescription const * > const &iLHS, std::pair< TypeInBranchType, ConstBranchDescription const * > const &iRHS) const
 

Detailed Description

Definition at line 44 of file TransientProductLookupMap.h.

Member Function Documentation

bool edm::CompareTypeInBranchTypeConstBranchDescription::operator() ( std::pair< TypeInBranchType, ConstBranchDescription const * > const &  iLHS,
std::pair< TypeInBranchType, ConstBranchDescription const * > const &  iRHS 
) const

Definition at line 30 of file TransientProductLookupMap.cc.

References trackerHits::c.

31  {
32  if(iLHS.first < iRHS.first) {
33  return true;
34  }
35  if(iRHS.first < iLHS.first) {
36  return false;
37  }
38 
39  int c = iLHS.second->moduleLabel().compare(iRHS.second->moduleLabel());
40  if(c < 0) {
41  return true;
42  }
43  if(c > 0) {
44  return false;
45  }
46  c = iLHS.second->productInstanceName().compare(iRHS.second->productInstanceName());
47  if(c < 0) {
48  return true;
49  }
50  if(c > 0) {
51  return false;
52  }
53 
54  return iLHS.second->processName() < iRHS.second->processName();
55  }