CMS 3D CMS Logo

EcalXtalGroupId.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_EcalXtalGroupId_H
2 #define CondFormats_EcalObjects_EcalXtalGroupId_H
3 
12 public:
13  EcalXtalGroupId() : id_(0) {}
14  EcalXtalGroupId(const unsigned int& id) : id_(id) {}
15 
16  bool operator>(const EcalXtalGroupId& rhs) const { return (id_ > rhs.id()); }
17  bool operator>=(const EcalXtalGroupId& rhs) const { return (id_ >= rhs.id()); }
18  bool operator==(const EcalXtalGroupId& rhs) const { return (id_ == rhs.id()); }
19  bool operator<(const EcalXtalGroupId& rhs) const { return (id_ < rhs.id()); }
20  bool operator<=(const EcalXtalGroupId& rhs) const { return (id_ <= rhs.id()); }
21 
22  unsigned int id() const { return id_; }
23 
24 private:
25  unsigned int id_;
26 
28 };
29 #endif
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
EcalXtalGroupId::id_
unsigned int id_
Definition: EcalXtalGroupId.h:25
EcalXtalGroupId
Definition: EcalXtalGroupId.h:11
EcalXtalGroupId::operator==
bool operator==(const EcalXtalGroupId &rhs) const
Definition: EcalXtalGroupId.h:18
EcalXtalGroupId::operator<=
bool operator<=(const EcalXtalGroupId &rhs) const
Definition: EcalXtalGroupId.h:20
EcalXtalGroupId::operator<
bool operator<(const EcalXtalGroupId &rhs) const
Definition: EcalXtalGroupId.h:19
EcalXtalGroupId::operator>
bool operator>(const EcalXtalGroupId &rhs) const
Definition: EcalXtalGroupId.h:16
EcalXtalGroupId::EcalXtalGroupId
EcalXtalGroupId()
Definition: EcalXtalGroupId.h:13
Serializable.h
EcalXtalGroupId::EcalXtalGroupId
EcalXtalGroupId(const unsigned int &id)
Definition: EcalXtalGroupId.h:14
EcalXtalGroupId::operator>=
bool operator>=(const EcalXtalGroupId &rhs) const
Definition: EcalXtalGroupId.h:17
EcalXtalGroupId::id
unsigned int id() const
Definition: EcalXtalGroupId.h:22