34 template <
typename ProductType,
typename... ARGS>
100 desc.add<
bool>(
"produceDummyIntegrityCollections",
false);
109 digisInEEToken_{consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"digisInLabelEE"))},
112 digisOutEBToken_{produces<EBDigiCollection>(ps.getParameter<
std::string>(
"digisOutLabelEB"))},
113 digisOutEEToken_{produces<EEDigiCollection>(ps.getParameter<
std::string>(
"digisOutLabelEE"))},
116 produceDummyIntegrityCollections_{ps.getParameter<
bool>(
"produceDummyIntegrityCollections")},
119 ebSrFlagToken_{dummyProduces<EBSrFlagCollection>()},
120 eeSrFlagToken_{dummyProduces<EESrFlagCollection>()},
123 ecalRawDataToken_{dummyProduces<EcalRawDataCollection>()},
126 ebIntegrityGainErrorsToken_{dummyProduces<EBDetIdCollection>(
"EcalIntegrityGainErrors")},
127 ebIntegrityGainSwitchErrorsToken_{dummyProduces<EBDetIdCollection>(
"EcalIntegrityGainSwitchErrors")},
128 ebIntegrityChIdErrorsToken_{dummyProduces<EBDetIdCollection>(
"EcalIntegrityChIdErrors")},
131 eeIntegrityGainErrorsToken_{dummyProduces<EEDetIdCollection>(
"EcalIntegrityGainErrors")},
132 eeIntegrityGainSwitchErrorsToken_{dummyProduces<EEDetIdCollection>(
"EcalIntegrityGainSwitchErrors")},
133 eeIntegrityChIdErrorsToken_{dummyProduces<EEDetIdCollection>(
"EcalIntegrityChIdErrors")},
136 integrityTTIdErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityTTIdErrors")},
137 integrityZSXtalIdErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityZSXtalIdErrors")},
138 integrityBlockSizeErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityBlockSizeErrors")},
141 pnDiodeDigisToken_{dummyProduces<EcalPnDiodeDigiCollection>()},
144 ecalTriggerPrimitivesToken_{dummyProduces<EcalTrigPrimDigiCollection>(
"EcalTriggerPrimitives")},
145 ecalPseudoStripInputsToken_{dummyProduces<EcalPSInputDigiCollection>(
"EcalPseudoStripInputs")},
148 ecalIntegrityMemTtIdErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityMemTtIdErrors")},
149 ecalIntegrityMemBlockSizeErrorsToken_{
150 dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityMemBlockSizeErrors")},
151 ecalIntegrityMemChIdErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityMemChIdErrors")},
152 ecalIntegrityMemGainErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityMemGainErrors")}
164 auto const& ebdigis = ctx.get(ebdigisProduct);
165 auto const& eedigis = ctx.get(eedigisProduct);
175 dataebtmp.data(), ebdigis.data.get(),
dataebtmp.size() *
sizeof(uint16_t), cudaMemcpyDeviceToHost, ctx.stream()));
177 dataeetmp.data(), eedigis.data.get(),
dataeetmp.size() *
sizeof(uint16_t), cudaMemcpyDeviceToHost, ctx.stream()));
179 idsebtmp.data(), ebdigis.ids.get(),
idsebtmp.size() *
sizeof(uint32_t), cudaMemcpyDeviceToHost, ctx.stream()));
181 idseetmp.data(), eedigis.ids.get(),
idseetmp.size() *
sizeof(uint32_t), cudaMemcpyDeviceToHost, ctx.stream()));
186 auto digisEB = std::make_unique<EBDigiCollection>();
187 auto digisEE = std::make_unique<EEDigiCollection>();
194 auto* dataEB =
const_cast<uint16_t*
>(digisEB->data().data());
195 auto* dataEE =
const_cast<uint16_t*
>(digisEE->data().data());
196 auto* idsEB =
const_cast<uint32_t*
>(digisEB->ids().data());
197 auto* idsEE =
const_cast<uint32_t*
>(digisEE->ids().data());
edm::EDPutTokenT< EcalPSInputDigiCollection > ecalPseudoStripInputsToken_
std::vector< uint16_t, cms::cuda::HostAllocator< uint16_t > > dataeetmp
T getParameter(std::string const &) const
edm::EDPutTokenT< ProductType > dummyProduces(ARGS &&... args)
edm::EDGetTokenT< InputProduct > digisInEEToken_
edm::EDPutTokenT< EcalElectronicsIdCollection > ecalIntegrityMemTtIdErrorsToken_
edm::EDPutTokenT< EEDetIdCollection > eeIntegrityGainSwitchErrorsToken_
edm::EDPutTokenT< EBDetIdCollection > ebIntegrityGainErrorsToken_
edm::EDPutTokenT< EcalElectronicsIdCollection > ecalIntegrityMemBlockSizeErrorsToken_
std::vector< uint16_t, cms::cuda::HostAllocator< uint16_t > > dataebtmp
edm::EDPutTokenT< EEDetIdCollection > eeIntegrityGainErrorsToken_
edm::EDGetTokenT< InputProduct > digisInEBToken_
edm::EDPutTokenT< EcalElectronicsIdCollection > integrityZSXtalIdErrorsToken_
edm::EDPutTokenT< EEDigiCollection > digisOutEEToken_
edm::EDPutTokenT< EBDetIdCollection > ebIntegrityChIdErrorsToken_
bool produceDummyIntegrityCollections_
edm::EDPutTokenT< EBDigiCollection > digisOutEBToken_
#define DEFINE_FWK_MODULE(type)
edm::EDPutTokenT< EcalElectronicsIdCollection > ecalIntegrityMemGainErrorsToken_
edm::EDPutTokenT< EESrFlagCollection > eeSrFlagToken_
std::vector< uint32_t, cms::cuda::HostAllocator< uint32_t > > idseetmp
void acquire(edm::Event const &, edm::EventSetup const &, edm::WaitingTaskWithArenaHolder) override
edm::EDPutTokenT< EcalPnDiodeDigiCollection > pnDiodeDigisToken_
edm::EDPutTokenT< EBDetIdCollection > ebIntegrityGainSwitchErrorsToken_
edm::EDPutTokenT< EcalElectronicsIdCollection > ecalIntegrityMemChIdErrorsToken_
edm::EDPutTokenT< EcalElectronicsIdCollection > integrityTTIdErrorsToken_
edm::EDPutTokenT< EcalTrigPrimDigiCollection > ecalTriggerPrimitivesToken_
~EcalCPUDigisProducer() override=default
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::EDPutTokenT< EEDetIdCollection > eeIntegrityChIdErrorsToken_
void produce(edm::Event &, edm::EventSetup const &) override
static constexpr int MAXSAMPLES
#define cudaCheck(ARG,...)
EcalCPUDigisProducer(edm::ParameterSet const &ps)
edm::EDPutTokenT< EcalElectronicsIdCollection > integrityBlockSizeErrorsToken_
edm::EDPutTokenT< EBSrFlagCollection > ebSrFlagToken_
edm::EDPutTokenT< EcalRawDataCollection > ecalRawDataToken_
std::vector< uint32_t, cms::cuda::HostAllocator< uint32_t > > idsebtmp