1 #ifndef HGCAL_CONDOBJECTS_HGCALCONDOBJECTCONTAINER_H
2 #define HGCAL_CONDOBJECTS_HGCALCONDOBJECTCONTAINER_H 1
5 #include "DataFormats/DetId/interface/DetId.h"
11 static const size_t INVALID = (size_t) - 1;
12 virtual size_t rangeFor(uint64_t scheme)
const = 0;
13 virtual size_t denseIndexFor(uint32_t rawDetId, uint64_t scheme)
const = 0;
40 m_numbering_code = code;
48 return m_numbering_code;
58 uint64_t m_numbering_code;
68 template <
class Payload>
82 const Item*
get(DetId id)
const
89 return m_payload.size();
91 const Item&
get(
size_t i)
const
95 void set(DetId
id,
const Payload& value)
100 m_payload[i].value = value;
104 std::vector<Item> m_payload;
static const size_t INVALID
HGCalCondObjectContainer(const HGCalCondObjectNumberingScheme *scheme, uint64_t ischeme)
size_t indexOf(DetId id) const
HGCalCondObjectContainerBase()
HGCalCondObjectContainerBase(const HGCalCondObjectNumberingScheme *scheme, uint64_t ischeme)
virtual size_t denseIndexFor(DetId rawDetId, uint64_t scheme) const
virtual size_t rangeFor(uint64_t scheme) const =0
void setNumberingScheme(const HGCalCondObjectNumberingScheme *scheme)
uint64_t schemeCode() const
bool exists(DetId id) const
const HGCalCondObjectNumberingScheme * getNumberingScheme() const
HGCalCondObjectContainer()
void set(DetId id, const Payload &value)
void setNumberingScheme(const HGCalCondObjectNumberingScheme *scheme, uint64_t code)
virtual size_t denseIndexFor(uint32_t rawDetId, uint64_t scheme) const =0