Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:46

0001 
0002 //--------------
0003 // Operations --
0004 //--------------
0005 bool DTSectCollId::operator==(const DTSectCollId& id) const {
0006   if (_wheel != id.wheel())
0007     return false;
0008   if (_sector != id.sector())
0009     return false;
0010   return true;
0011 }
0012 
0013 bool DTSectCollId::operator!=(const DTSectCollId& id) const { return !(*this == id); }
0014 
0015 bool DTSectCollId::operator<(const DTSectCollId& id) const {
0016   if (wheel() < id.wheel())
0017     return true;
0018   if (wheel() > id.wheel())
0019     return false;
0020 
0021   if (sector() < id.sector())
0022     return true;
0023   if (sector() > id.sector())
0024     return false;
0025 
0026   return false;
0027 }
0028 DTSectCollId& DTSectCollId::operator=(const DTSectCollId& statId) {
0029   _wheel = statId._wheel;
0030   _sector = statId._sector;
0031   return *this;
0032 }
0033 
0034 //------------