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 54 of file DTRangeMapAccessor.h.

Member Function Documentation

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

Definition at line 56 of file DTRangeMapAccessor.h.

References DTChamberId::station().

56  {
57 
58  if (ch1.station() == ch2.station())
59  return false;
60 
61  return (ch1.station() < ch2.station());
62  }
int station() const
Return the station number.
Definition: DTChamberId.h:51