77 desc.add<
bool>(
"produceDummyIntegrityCollections",
false);
86 digisInEEToken_{consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"digisInLabelEE"))},
88 digisOutEBToken_{produces<EBDigiCollection>(ps.getParameter<
std::string>(
"digisOutLabelEB"))},
89 digisOutEEToken_{produces<EEDigiCollection>(ps.getParameter<
std::string>(
"digisOutLabelEE"))},
91 produceDummyIntegrityCollections_{ps.getParameter<
bool>(
"produceDummyIntegrityCollections")},
93 ebSrFlagToken_{produceDummyIntegrityCollections_ ? produces<EBSrFlagCollection>()
95 eeSrFlagToken_{produceDummyIntegrityCollections_ ? produces<EESrFlagCollection>()
98 ebIntegrityGainErrorsToken_{produceDummyIntegrityCollections_
99 ? produces<EBDetIdCollection>(
"EcalIntegrityGainErrors")
101 ebIntegrityGainSwitchErrorsToken_{produceDummyIntegrityCollections_
102 ? produces<EBDetIdCollection>(
"EcalIntegrityGainSwitchErrors")
104 ebIntegrityChIdErrorsToken_{produceDummyIntegrityCollections_
105 ? produces<EBDetIdCollection>(
"EcalIntegrityChIdErrors")
108 eeIntegrityGainErrorsToken_{produceDummyIntegrityCollections_
109 ? produces<EEDetIdCollection>(
"EcalIntegrityGainErrors")
111 eeIntegrityGainSwitchErrorsToken_{produceDummyIntegrityCollections_
112 ? produces<EEDetIdCollection>(
"EcalIntegrityGainSwitchErrors")
114 eeIntegrityChIdErrorsToken_{produceDummyIntegrityCollections_
115 ? produces<EEDetIdCollection>(
"EcalIntegrityChIdErrors")
118 integrityTTIdErrorsToken_{produceDummyIntegrityCollections_
119 ? produces<EcalElectronicsIdCollection>(
"EcalIntegrityTTIdErrors")
121 integrityBlockSizeErrorsToken_{produceDummyIntegrityCollections_
122 ? produces<EcalElectronicsIdCollection>(
"EcalIntegrityBlockSizeErrors")
134 auto const& ebdigis = ctx.get(ebdigisProduct);
135 auto const& eedigis = ctx.get(eedigisProduct);
145 dataebtmp.data(), ebdigis.data.get(),
dataebtmp.size() *
sizeof(uint16_t), cudaMemcpyDeviceToHost, ctx.stream()));
147 dataeetmp.data(), eedigis.data.get(),
dataeetmp.size() *
sizeof(uint16_t), cudaMemcpyDeviceToHost, ctx.stream()));
149 idsebtmp.data(), ebdigis.ids.get(),
idsebtmp.size() *
sizeof(uint32_t), cudaMemcpyDeviceToHost, ctx.stream()));
151 idseetmp.data(), eedigis.ids.get(),
idseetmp.size() *
sizeof(uint32_t), cudaMemcpyDeviceToHost, ctx.stream()));
156 auto digisEB = std::make_unique<EBDigiCollection>();
157 auto digisEE = std::make_unique<EEDigiCollection>();
164 auto* dataEB = const_cast<uint16_t*>(digisEB->data().data());
165 auto* dataEE = const_cast<uint16_t*>(digisEE->data().data());
166 auto* idsEB = const_cast<uint32_t*>(digisEB->ids().data());
167 auto* idsEE = const_cast<uint32_t*>(digisEE->ids().data());