/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/SiPixelCluster/src/SiPixelClusterShapeCache.cc
17 строк
837 B
Cms Build
Clang-Format
11 июн 2019, 11:29
11 июн 2019, 11:29
146bc98
Код
Авторство
О чём код?
#include "DataFormats/SiPixelCluster/interface/SiPixelClusterShapeCache.h" #include "FWCore/Utilities/interface/Exception.h" SiPixelClusterShapeData::~SiPixelClusterShapeData() {} SiPixelClusterShapeCache::~SiPixelClusterShapeCache() {} void SiPixelClusterShapeCache::checkRef(const ClusterRef& ref) const { if (ref.id() != productId_) throw cms::Exception("InvalidReference") << "SiPixelClusterShapeCache caches values for SiPixelClusters with ProductID " << productId_ << ", got SiPixelClusterRef with ID " << ref.id(); if (ref.index() >= data_.size()) throw cms::Exception("InvalidReference") << "SiPixelClusterShapeCache caches values for SiPixelClusters with ProductID " << productId_ << " that has " << data_.size() << " clusters, got SiPixelClusterRef with index " << ref.index(); }