CMS 3D CMS Logo

lessAlignmentDetId< T > Struct Template Reference

A struct to sort Alignments and AlignmentErrors by increasing DetId. More...

#include <CondFormats/Alignment/interface/AlignmentSorter.h>

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.

00016   { 
00017         return a.rawId() < b.rawId(); 
00018   }


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:27:28 2009 for CMSSW by  doxygen 1.5.4