test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
lessAlignmentDetId< T > Struct Template Reference

#include <AlignmentSorter.h>

Inheritance diagram for lessAlignmentDetId< T >:

Public Member Functions

bool operator() (const T &a, const T &b)
 

Detailed Description

template<class T>
struct lessAlignmentDetId< T >

A struct to sort Alignments and AlignmentErrorsExtended by increasing DetId

To sort Alignments, do something like: std::sort( alignments->m_align.begin(), alignments->m_align.end(), lessAlignmentDetId<AlignTransform>() );

Definition at line 12 of file AlignmentSorter.h.

Member Function Documentation

template<class T >
bool lessAlignmentDetId< T >::operator() ( const T a,
const T b 
)
inline

Definition at line 15 of file AlignmentSorter.h.

16  {
17  return a.rawId() < b.rawId();
18  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121