CMS 3D CMS Logo

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 14 of file AlignmentSorter.h.

Member Function Documentation

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

Definition at line 17 of file AlignmentSorter.h.

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