Go to the documentation of this file.
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"))
58 :
edm::EDPutTokenT<OProductType>{}},
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) {
85 using vector_type =
typename std::remove_reference<decltype(
dest)>
::type;
86 using src_data_type =
typename std::remove_pointer<decltype(
src)>
::type;
102 auto recHitsLegacy = std::make_unique<HBHERecHitCollection>();
StoragePolicy::template StorageSelector< float >::type timeM0
std::enable_if< std::is_same< U, ::calo::common::tags::Vec >::value, void >::type resize(size_t size)
void produce(edm::Event &, edm::EventSetup const &) override
HcalCPURecHitsProducer(edm::ParameterSet const &ps)
const edm::EDPutTokenT< HBHERecHitCollection > recHitsLegacyTokenOut_
const bool produceLegacy_
#define DEFINE_FWK_MODULE(type)
void acquire(edm::Event const &, edm::EventSetup const &, edm::WaitingTaskWithArenaHolder) override
~HcalCPURecHitsProducer() override=default
const edm::EDGetTokenT< IProductType > recHitsM0TokenIn_
const edm::EDPutTokenT< OProductType > recHitsM0TokenOut_
Container::value_type value_type
StoragePolicy::template StorageSelector< float >::type chi2
static void fillDescriptions(edm::ConfigurationDescriptions &)
#define cudaCheck(ARG,...)
T getParameter(std::string const &) const
StoragePolicy::template StorageSelector< float >::type energyM0
StoragePolicy::template StorageSelector< uint32_t >::type did
StoragePolicy::template StorageSelector< float >::type energy
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)