1 #ifndef LayerHitMapCache_H 2 #define LayerHitMapCache_H 89 LogDebug(
"LayerHitMapCache") <<
" I got" << lhm->
all().second - lhm->
all().first
90 <<
" hits in the cache for: " <<
layer.detLayer();
93 LogDebug(
"LayerHitMapCache") <<
" I got" << lhm->
all().second - lhm->
all().first
94 <<
" hits FROM THE cache for: " <<
layer.detLayer();
void extend(const SimpleCache &other)
SimpleCache & operator=(const SimpleCache &)=delete
LayerHitMapCache(unsigned int initSize=50)
std::vector< mayown_ptr< ValueType > > theContainer
LayerHitMapCache & operator=(LayerHitMapCache &&)=default
constexpr std::array< uint8_t, layerIndexSize > layer
void add(KeyType key, ValueType *value)
add object to cache. It is caller responsibility to check that object is not yet there.
const RecHitsSortedInPhi & operator()(const SeedingLayerSetsHits::SeedingLayer &layer, const TrackingRegion ®ion)
void clear()
emptify cache, delete values associated to Key
RecHitsSortedInPhi * add(const SeedingLayerSetsHits::SeedingLayer &layer, std::unique_ptr< RecHitsSortedInPhi > hits)
void extend(const LayerHitMapCache &other)
SimpleCache(unsigned int initSize)
const ValueType * get(KeyType key) const