4#ifndef CALOEVENT_CALOCELLCLUSTERWEIGHTS_H
5#define CALOEVENT_CALOCELLCLUSTERWEIGHTS_H
29 typedef std::tuple<bool,weight_t>
value_t;
71 bool check(
size_t hash)
const;
93 void set(
size_t hash,
double value);
112 void clear(
size_t hash);
136 static std::string
key(
const std::string&
pref);
macros to associate a CLID to a type
bool check(size_t hash) const
Safe checking if cell is used by any cluster.
CaloCellClusterWeights()
Default constructor.
static std::string key(const std::string &pref)
Construct a SG key for this object.
std::tuple< bool, weight_t > value_t
Type of payload.
void reset()
Reset the store.
store_t::const_iterator const_iterator
Iterator type for const access.
store_t::iterator iterator
Iterator type.
bool fastCheck(size_t hash) const
Fast checking if cell is used by any cluster.
std::vector< double > weight_t
Type of weight.
size_t reserve() const
Reserved memory.
weight_t m_defaultValue
Default (empty) entry.
const_iterator begin() const
Constant access iterator pointing to beginning of the store.
const_iterator end() const
Constant iterator indicating the end of the store.
virtual ~CaloCellClusterWeights()
Destructor.
size_t size() const
Store size.
const store_t & store() const
Read-only access to underlying store.
const weight_t & at(size_t hash) const
Accessing value using function and hash.
store_t m_hashTable
Store implementation.
void clear()
Clear the store.
std::vector< value_t > store_t
Store type.
void set(size_t hash, double value)
const weight_t & operator[](size_t hash) const
Data object for each calorimeter readout cell.