CMS 3D CMS Logo

Public Member Functions

lessAlignmentDetId< T > Struct Template Reference

#include <AlignmentSorter.h>

Inheritance diagram for lessAlignmentDetId< T >:
binary_function

List of all members.

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 AlignmentErrors 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.

  { 
        return a.rawId() < b.rawId(); 
  }