CMS 3D CMS Logo

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