File indexing completed on 2024-04-06 12:01:57
0001 #ifndef CastorQIEData_h
0002 #define CastorQIEData_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "CondFormats/Serialization/interface/Serializable.h"
0016
0017 #include <vector>
0018 #include <algorithm>
0019
0020 #include "CondFormats/CastorObjects/interface/CastorCondObjectContainer.h"
0021 #include "CondFormats/CastorObjects/interface/CastorQIEShape.h"
0022 #include "CondFormats/CastorObjects/interface/CastorQIECoder.h"
0023 #include "DataFormats/DetId/interface/DetId.h"
0024
0025 class CastorQIEData : public CastorCondObjectContainer<CastorQIECoder> {
0026 private:
0027 static const CastorQIEShape shape_;
0028
0029 public:
0030
0031 CastorQIEData() : CastorCondObjectContainer<CastorQIECoder>() {}
0032
0033
0034
0035 const CastorQIEShape& getShape() const { return shape_; }
0036
0037 const CastorQIECoder* getCoder(DetId fId) const { return getValues(fId); }
0038
0039 bool sorted() const { return true; }
0040
0041
0042 bool addCoder(const CastorQIECoder& fCoder) { return addValues(fCoder); }
0043
0044 void sort() {}
0045
0046 std::string myname() const { return (std::string) "CastorQIEData"; }
0047
0048
0049
0050 COND_SERIALIZABLE;
0051 };
0052
0053 #endif