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 
8 
10 
12  if(ref.id() != productId_)
13  throw cms::Exception("InvalidReference") << "SiPixelClusterShapeCache caches values for SiPixelClusters with ProductID " << productId_ << ", got SiPixelClusterRef with ID " << ref.id();
14  if(ref.index() >= data_.size())
15  throw cms::Exception("InvalidReference") << "SiPixelClusterShapeCache caches values for SiPixelClusters with ProductID " << productId_ << " that has " << data_.size() << " clusters, got SiPixelClusterRef with index " << ref.index();
16 }
void checkRef(const ClusterRef &cluster) const
key_type index() const
Definition: Ref.h:269
ProductID id() const
Accessor for product ID.
Definition: Ref.h:256