12 using namespace particleFlowRecHitProducer;
17 :
ESProducer(iConfig), cleaningThreshold_(iConfig.getParameter<double>(
"cleaningThreshold")) {
18 auto cc = setWhatProduced(
this);
19 thresholdsToken_ =
cc.consumes();
24 desc.add<
double>(
"cleaningThreshold", 2);
32 product->view().energyThresholds()[denseId] =
thresholds.barrel(denseId);
35 product->view().cleaningThreshold() = cleaningThreshold_;
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static constexpr uint32_t kSize
std::unique_ptr< reco::PFRecHitECALParamsHostCollection > produce(const EcalPFRecHitThresholdsRcd &iRecord)
PFRecHitECALParamsESProducer(edm::ParameterSet const &iConfig)
uint32_t cc[maxCellsPerHit]
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
static constexpr uint32_t kSize
const double cleaningThreshold_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > thresholdsToken_
#define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE(type)
static constexpr int kSize