Go to the documentation of this file. 1 #ifndef LayerHitMapCache_H
2 #define LayerHitMapCache_H
88 layer, std::make_unique<RecHitsSortedInPhi>(
region.hits(iSetup, layer),
region.origin(), layer.
detLayer()));
91 LogDebug(
"LayerHitMapCache") <<
" I got" << lhm->
all().second - lhm->
all().first
92 <<
" hits in the cache for: " << layer.
detLayer();
95 LogDebug(
"LayerHitMapCache") <<
" I got" << lhm->
all().second - lhm->
all().first
96 <<
" hits FROM THE cache for: " << layer.
detLayer();
const DetLayer * detLayer() const
std::vector< mayown_ptr< ValueType > > theContainer
void extend(const LayerHitMapCache &other)
RecHitsSortedInPhi * add(const SeedingLayerSetsHits::SeedingLayer &layer, std::unique_ptr< RecHitsSortedInPhi > hits)
void clear()
emptify cache, delete values associated to Key
SimpleCache(unsigned int initSize)
SimpleCache & operator=(const SimpleCache &)=delete
void add(KeyType key, ValueType *value)
add object to cache. It is caller responsibility to check that object is not yet there.
LayerHitMapCache(unsigned int initSize=50)
void extend(const SimpleCache &other)
const ValueType * get(KeyType key) const
LayerHitMapCache & operator=(LayerHitMapCache &&)=default
const RecHitsSortedInPhi & operator()(const SeedingLayerSetsHits::SeedingLayer &layer, const TrackingRegion ®ion, const edm::EventSetup &iSetup)