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
0007
0008
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