#include <SiPixelClusterShapeCache.h>
Definition at line 39 of file SiPixelClusterShapeCache.h.
SiPixelClusterShapeCache::SiPixelClusterShapeCache |
( |
| ) |
|
|
inline |
SiPixelClusterShapeCache::SiPixelClusterShapeCache |
( |
const edm::HandleBase & |
handle | ) |
|
|
inlineexplicit |
SiPixelClusterShapeCache::SiPixelClusterShapeCache |
( |
const edm::ProductID & |
id | ) |
|
|
inlineexplicit |
SiPixelClusterShapeCache::~SiPixelClusterShapeCache |
( |
| ) |
|
void SiPixelClusterShapeCache::checkRef |
( |
const ClusterRef & |
cluster | ) |
const |
|
private |
Definition at line 11 of file SiPixelClusterShapeCache.cc.
References data_, edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::index(), and productId_.
Referenced by get(), insert(), and isFilled().
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();
std::vector< Field > data_
edm::ProductID productId_
Definition at line 101 of file SiPixelClusterShapeCache.h.
References assert(), checkRef(), SiPixelClusterShapeCache::Field::complete, data_, end, f, SiPixelClusterShapeCache::Field::filled, getter_, SiPixelClusterShapeCache::Field::has, SiPixelClusterShapeCache::Field::offset, SiPixelClusterShapeCache::Field::size, sizeData_, and SiPixelClusterShapeCache::Field::straight.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), ClusterShapeHitFilter::getSizes(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
103 Field
f =
data_[cluster.index()];
106 getter_->fill(cluster, pixDet, *
this);
107 f =
data_[cluster.index()];
111 auto end = beg+f.size;
std::shared_ptr< LazyGetter > getter_
std::vector< std::pair< int, int > > sizeData_
void checkRef(const ClusterRef &cluster) const
std::vector< Field > data_
template<typename T >
void SiPixelClusterShapeCache::insert |
( |
const ClusterRef & |
cluster, |
|
|
const T & |
data |
|
) |
| |
|
inline |
bool SiPixelClusterShapeCache::isFilled |
( |
const ClusterRef & |
cluster | ) |
const |
|
inline |
void SiPixelClusterShapeCache::resize |
( |
size_t |
size | ) |
|
|
inline |
void SiPixelClusterShapeCache::shrink_to_fit |
( |
| ) |
|
|
inline |
std::vector<Field> SiPixelClusterShapeCache::data_ |
|
private |
std::shared_ptr<LazyGetter> SiPixelClusterShapeCache::getter_ |
|
private |
std::vector<std::pair<int, int> > SiPixelClusterShapeCache::sizeData_ |
|
private |