CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelClusterShapeCache.cc
Go to the documentation of this file.
3 
5 
7 
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();
13 }
void checkRef(const ClusterRef &cluster) const
key_type index() const
Definition: Ref.h:267
ProductID id() const
Accessor for product ID.
Definition: Ref.h:258