File indexing completed on 2024-04-06 12:02:12
0001 #ifndef CondFormats_HcalObjects_AbsHcalAlgoData_h_
0002 #define CondFormats_HcalObjects_AbsHcalAlgoData_h_
0003
0004 #include <typeinfo>
0005
0006
0007
0008
0009
0010 class AbsHcalAlgoData {
0011 public:
0012 inline virtual ~AbsHcalAlgoData() {}
0013
0014
0015
0016
0017 inline bool operator==(const AbsHcalAlgoData& r) const { return (typeid(*this) == typeid(r)) && this->isEqual(r); }
0018 inline bool operator!=(const AbsHcalAlgoData& r) const { return !(*this == r); }
0019
0020 protected:
0021
0022
0023 virtual bool isEqual(const AbsHcalAlgoData&) const = 0;
0024 };
0025
0026 #endif