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);
66 auto output = std::make_unique<SiPixelClusterShapeCache>(
input);
73 for(
const auto& detSet: *input) {
79 for(; iCluster != endCluster; ++iCluster) {
81 if(not
output->isFilled(clusterRef)) {
84 output->insert(clusterRef,data);
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)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
SiPixelClusterShapeCacheProducer(const edm::ParameterSet &iConfig)
const edm::EDGetTokenT< InputCollection > token_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void determineShape(const PixelGeomDetUnit &pixelDet, const SiPixelRecHit &recHit, ClusterData &data)
data_type const * const_iterator
static std::string const input
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
#define DEFINE_FWK_MODULE(type)
data_type const * data(size_t cell) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
char data[epos_bytes_allocation]
~SiPixelClusterShapeCacheProducer() override