CMS 3D CMS Logo

List of all members | Public Member Functions
DTChamberIdComparator Class Reference

#include <DTRangeMapAccessor.h>

Public Member Functions

bool operator() (DTChamberId ch1, DTChamberId ch2) const
 Compare two ChamberId. More...
 

Detailed Description

Comparator to retrieve by chamber objects written into a RangeMap by layer or by SL.

Author
G. Cerminara - INFN Torino

Definition at line 33 of file DTRangeMapAccessor.h.

Member Function Documentation

◆ operator()()

bool DTChamberIdComparator::operator() ( DTChamberId  ch1,
DTChamberId  ch2 
) const
inline

Compare two ChamberId.

Definition at line 37 of file DTRangeMapAccessor.h.

37  {
38  if (ch1 == ch2)
39  return false;
40  return (ch1 < ch2);
41  }