CMS 3D CMS Logo

SiPixelClusterShapeCache.cc
Go to the documentation of this file.
3 
5 
7 
9  if (ref.id() != productId_)
10  throw cms::Exception("InvalidReference")
11  << "SiPixelClusterShapeCache caches values for SiPixelClusters with ProductID " << productId_
12  << ", got SiPixelClusterRef with ID " << ref.id();
13  if (ref.index() >= data_.size())
14  throw cms::Exception("InvalidReference")
15  << "SiPixelClusterShapeCache caches values for SiPixelClusters with ProductID " << productId_ << " that has "
16  << data_.size() << " clusters, got SiPixelClusterRef with index " << ref.index();
17 }
void checkRef(const ClusterRef &cluster) const
key_type index() const
Definition: Ref.h:253
ProductID id() const
Accessor for product ID.
Definition: Ref.h:244