CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/CondFormats/EcalObjects/interface/EcalXtalGroupId.h

Go to the documentation of this file.
00001 #ifndef CondFormats_EcalObjects_EcalXtalGroupId_H
00002 #define CondFormats_EcalObjects_EcalXtalGroupId_H
00003 
00009 class EcalXtalGroupId {
00010 public:
00011   EcalXtalGroupId()  : id_(0){}
00012   EcalXtalGroupId(const unsigned int& id)  : id_(id){}
00013 
00014   bool operator>(const EcalXtalGroupId& rhs) const{ return ( id_>rhs.id() ); }
00015   bool operator>=(const EcalXtalGroupId& rhs) const { return ( id_>=rhs.id() ); }
00016   bool operator==(const EcalXtalGroupId& rhs) const { return ( id_==rhs.id() ); }
00017   bool operator<(const EcalXtalGroupId& rhs) const { return ( id_<rhs.id() ); }
00018   bool operator<=(const EcalXtalGroupId& rhs) const { return ( id_<=rhs.id() ); }
00019     
00020   const unsigned int id() const { return id_; }
00021 
00022 private:
00023   unsigned int id_;
00024   
00025 };
00026 #endif