47 desc.add<
bool>(
"produceSoA",
true);
48 desc.add<
bool>(
"produceLegacy",
true);
55 produceLegacy_{ps.getParameter<
bool>(
"produceLegacy")},
56 recHitsM0TokenIn_{consumes<IProductType>(ps.getParameter<
edm::InputTag>(
"recHitsM0LabelIn"))},
57 recHitsM0TokenOut_{produceSoA_ ? produces<OProductType>(ps.getParameter<
std::string>(
"recHitsM0LabelOut"))
59 recHitsLegacyTokenOut_{produceLegacy_
60 ? produces<HBHERecHitCollection>(ps.getParameter<
std::string>(
"recHitsLegacyLabelOut"))
70 auto const&
recHits = ctx.get(recHitsProduct);
75 #ifdef HCAL_MAHI_CPUDEBUG 84 auto lambdaToTransfer = [&ctx](
auto&
dest,
auto*
src) {
102 auto recHitsLegacy = std::make_unique<HBHERecHitCollection>();
const edm::EDPutTokenT< OProductType > recHitsM0TokenOut_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
void acquire(edm::Event const &, edm::EventSetup const &, edm::WaitingTaskWithArenaHolder) override
T getParameter(std::string const &) const
StoragePolicy::template StorageSelector< float >::type chi2
StoragePolicy::template StorageSelector< uint32_t >::type did
const edm::EDGetTokenT< IProductType > recHitsM0TokenIn_
static void fillDescriptions(edm::ConfigurationDescriptions &)
StoragePolicy::template StorageSelector< float >::type energy
hcal::RecHitDeviceCollection OProductType
Container::value_type value_type
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, edm::EventSetup const &) override
const edm::EDPutTokenT< HBHERecHitCollection > recHitsLegacyTokenOut_
HcalCPURecHitsProducer(edm::ParameterSet const &ps)
std::enable_if< std::is_same< U, ::calo::common::tags::Vec >::value, void >::type resize(size_t size)
const bool produceLegacy_
#define cudaCheck(ARG,...)
~HcalCPURecHitsProducer() override=default
StoragePolicy::template StorageSelector< float >::type timeM0
StoragePolicy::template StorageSelector< float >::type energyM0