1 #ifndef LayerHitMapCache_H 2 #define LayerHitMapCache_H 38 assert(
get(
i) ==
nullptr);
78 auto tmp =
add(layer, std::make_unique<RecHitsSortedInPhi>(region.
hits(iSetup,layer), region.
origin(), layer.
detLayer()));
81 LogDebug(
"LayerHitMapCache")<<
" I got"<< lhm->
all().second-lhm->
all().first<<
" hits in the cache for: "<<layer.
detLayer();
85 LogDebug(
"LayerHitMapCache")<<
" I got"<< lhm->
all().second-lhm->
all().first<<
" hits FROM THE cache for: "<<layer.
detLayer();
void extend(const SimpleCache &other)
GlobalPoint const & origin() const
LayerHitMapCache(LayerHitMapCache &&rh)
LayerHitMapCache(unsigned int initSize=50)
SimpleCache(SimpleCache &&rh)
SimpleCache(const SimpleCache &)
std::vector< mayown_ptr< ValueType > > theContainer
const RecHitsSortedInPhi & operator()(const SeedingLayerSetsHits::SeedingLayer &layer, const TrackingRegion ®ion, const edm::EventSetup &iSetup)
void add(KeyType key, ValueType *value)
add object to cache. It is caller responsibility to check that object is not yet there.
void clear()
emptify cache, delete values associated to Key
RecHitsSortedInPhi * add(const SeedingLayerSetsHits::SeedingLayer &layer, std::unique_ptr< RecHitsSortedInPhi > hits)
virtual Hits hits(const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const =0
get hits from layer compatible with region constraints
const DetLayer * detLayer() const
void extend(const LayerHitMapCache &other)
std::vector< std::vector< double > > tmp
const ValueType * get(KeyType key) const
SimpleCache(unsigned int initSize)