CMS 3D CMS Logo

List of all members | Public Member Functions
DTChamberIdDetLayerComparator Class Reference

#include <DTRangeMapAccessor.h>

Public Member Functions

bool operator() (DTChamberId ch1, DTChamberId ch2) const
 

Detailed Description

Comparator to retrieve by chamber objects written into a RangeMap by DetLayer.

Author
M. Sani

Definition at line 52 of file DTRangeMapAccessor.h.

Member Function Documentation

◆ operator()()

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

Definition at line 54 of file DTRangeMapAccessor.h.

References DTChamberId::station().

54  {
55  if (ch1.station() == ch2.station())
56  return false;
57 
58  return (ch1.station() < ch2.station());
59  }
int station() const
Return the station number.
Definition: DTChamberId.h:42