Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:10

0001 #ifndef CondFormats_EcalObjects_EcalXtalGroupId_H
0002 #define CondFormats_EcalObjects_EcalXtalGroupId_H
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 /**
0006  * Author: Shahram Rahatlou, University of Rome & INFN
0007  * Created: 22 Feb 2006
0008  * $Id: EcalXtalGroupId.h,v 1.3 2006/02/23 16:56:34 rahatlou Exp $
0009  **/
0010 
0011 class EcalXtalGroupId {
0012 public:
0013   EcalXtalGroupId() : id_(0) {}
0014   EcalXtalGroupId(const unsigned int& id) : id_(id) {}
0015 
0016   bool operator>(const EcalXtalGroupId& rhs) const { return (id_ > rhs.id()); }
0017   bool operator>=(const EcalXtalGroupId& rhs) const { return (id_ >= rhs.id()); }
0018   bool operator==(const EcalXtalGroupId& rhs) const { return (id_ == rhs.id()); }
0019   bool operator<(const EcalXtalGroupId& rhs) const { return (id_ < rhs.id()); }
0020   bool operator<=(const EcalXtalGroupId& rhs) const { return (id_ <= rhs.id()); }
0021 
0022   unsigned int id() const { return id_; }
0023 
0024 private:
0025   unsigned int id_;
0026 
0027   COND_SERIALIZABLE;
0028 };
0029 #endif