45 throw cms::Exception(
"OnDemandNotAllowed")<<
"Use of the `onDemand` feature of SiPixelClusterShapeCacheProducer is no longer supported";
47 produces<SiPixelClusterShapeCache>();
55 desc.
add<
bool>(
"onDemand",
false)->setComment(
"The on demand feature is no longer supported");
56 descriptions.
add(
"siPixelClusterShapeCache", desc);
67 output->resize(input->data().size());
73 for(
const auto& detSet: *input) {
74 const GeomDetUnit *genericDet = geom->idToDetUnit(detSet.detId());
79 for(; iCluster != endCluster; ++iCluster) {
81 if(not output->isFilled(clusterRef)) {
84 output->insert(clusterRef,data);
88 output->shrink_to_fit();
T getParameter(std::string const &) const
edm::Ref< typename HandleT::element_type, typename HandleT::element_type::value_type::value_type > makeRefTo(const HandleT &iHandle, typename HandleT::element_type::value_type::const_iterator itIter)
SiPixelClusterShapeCacheProducer(const edm::ParameterSet &iConfig)
const edm::EDGetTokenT< InputCollection > token_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void determineShape(const PixelGeomDetUnit &pixelDet, const SiPixelRecHit &recHit, ClusterData &data)
data_type const * const_iterator
~SiPixelClusterShapeCacheProducer()
static std::string const input
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
char data[epos_bytes_allocation]