1 #ifndef LayerHitMapCache_H
2 #define LayerHitMapCache_H
25 if ( it->first ==
key)
return it->second;
41 typedef typename std::vector< KeyValuePair >::const_iterator
ConstItr;
63 LogDebug(
"LayerHitMapCache")<<
" I got"<< lhm->all().second-lhm->all().first<<
" hits in the cache for: "<<layer->
detLayer();
67 LogDebug(
"LayerHitMapCache")<<
" I got"<< lhm->all().second-lhm->all().first<<
" hits FROM THE cache for: "<<layer->
detLayer();
virtual Hits hits(const edm::Event &ev, const edm::EventSetup &es, const ctfseeding::SeedingLayer *layer) const =0
get hits from layer compatible with region constraints
SimpleCache(const SimpleCache &)
const DetLayer * detLayer() const
std::vector< KeyValuePair > theContainer
const DetLayer * LayerRegionKey
std::pair< KeyType, const ValueType * > KeyValuePair
SimpleCache(int initSize)
const ValueType * get(const KeyType &key)
virtual void clear()
emptify cache, delete values associated to Key
const RecHitsSortedInPhi & operator()(const ctfseeding::SeedingLayer *layer, const TrackingRegion ®ion, const edm::Event &iEvent, const edm::EventSetup &iSetup)
SimpleCache< LayerRegionKey, RecHitsSortedInPhi > Cache
LayerHitMapCache(const LayerHitMapCache &)
std::vector< KeyValuePair >::const_iterator ConstItr
void add(const KeyType &key, const ValueType *value)
add object to cache. It is caller responsibility to check that object is not yet there.
tuple size
Write out results.
LayerHitMapCache(int initSize=50)