9 if(ref.
id() != productId_)
10 throw cms::Exception(
"InvalidReference") <<
"SiPixelClusterShapeCache caches values for SiPixelClusters with ProductID " << productId_ <<
", got SiPixelClusterRef with ID " << ref.
id();
11 if(ref.
index() >= data_.size())
12 throw cms::Exception(
"InvalidReference") <<
"SiPixelClusterShapeCache caches values for SiPixelClusters with ProductID " << productId_ <<
" that has " << data_.size() <<
" clusters, got SiPixelClusterRef with index " << ref.
index();
void checkRef(const ClusterRef &cluster) const
~SiPixelClusterShapeData()
ProductID id() const
Accessor for product ID.
~SiPixelClusterShapeCache()