34 template <
typename ProductType,
typename... ARGS>
91 desc.add<
bool>(
"produceDummyIntegrityCollections",
false);
100 digisInEEToken_{consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"digisInLabelEE"))},
103 digisOutEBToken_{produces<EBDigiCollection>(ps.getParameter<
std::string>(
"digisOutLabelEB"))},
104 digisOutEEToken_{produces<EEDigiCollection>(ps.getParameter<
std::string>(
"digisOutLabelEE"))},
107 produceDummyIntegrityCollections_{ps.getParameter<
bool>(
"produceDummyIntegrityCollections")},
110 ebSrFlagToken_{dummyProduces<EBSrFlagCollection>()},
111 eeSrFlagToken_{dummyProduces<EESrFlagCollection>()},
114 ebIntegrityGainErrorsToken_{dummyProduces<EBDetIdCollection>(
"EcalIntegrityGainErrors")},
115 ebIntegrityGainSwitchErrorsToken_{dummyProduces<EBDetIdCollection>(
"EcalIntegrityGainSwitchErrors")},
116 ebIntegrityChIdErrorsToken_{dummyProduces<EBDetIdCollection>(
"EcalIntegrityChIdErrors")},
119 eeIntegrityGainErrorsToken_{dummyProduces<EEDetIdCollection>(
"EcalIntegrityGainErrors")},
120 eeIntegrityGainSwitchErrorsToken_{dummyProduces<EEDetIdCollection>(
"EcalIntegrityGainSwitchErrors")},
121 eeIntegrityChIdErrorsToken_{dummyProduces<EEDetIdCollection>(
"EcalIntegrityChIdErrors")},
124 integrityTTIdErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityTTIdErrors")},
125 integrityZSXtalIdErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityZSXtalIdErrors")},
126 integrityBlockSizeErrorsToken_{dummyProduces<EcalElectronicsIdCollection>(
"EcalIntegrityBlockSizeErrors")},
129 pnDiodeDigisToken_{dummyProduces<EcalPnDiodeDigiCollection>()},
132 ecalTriggerPrimitivesToken_{dummyProduces<EcalTrigPrimDigiCollection>(
"EcalTriggerPrimitives")},
133 ecalPseudoStripInputsToken_{dummyProduces<EcalPSInputDigiCollection>(
"EcalPseudoStripInputs")}
144 auto const& ebdigis = ctx.get(ebdigisProduct);
145 auto const& eedigis = ctx.get(eedigisProduct);
155 dataebtmp.data(), ebdigis.data.get(),
dataebtmp.size() *
sizeof(uint16_t), cudaMemcpyDeviceToHost, ctx.stream()));
157 dataeetmp.data(), eedigis.data.get(),
dataeetmp.size() *
sizeof(uint16_t), cudaMemcpyDeviceToHost, ctx.stream()));
159 idsebtmp.data(), ebdigis.ids.get(),
idsebtmp.size() *
sizeof(uint32_t), cudaMemcpyDeviceToHost, ctx.stream()));
161 idseetmp.data(), eedigis.ids.get(),
idseetmp.size() *
sizeof(uint32_t), cudaMemcpyDeviceToHost, ctx.stream()));
166 auto digisEB = std::make_unique<EBDigiCollection>();
167 auto digisEE = std::make_unique<EEDigiCollection>();
174 auto* dataEB = const_cast<uint16_t*>(digisEB->data().data());
175 auto* dataEE = const_cast<uint16_t*>(digisEE->data().data());
176 auto* idsEB = const_cast<uint32_t*>(digisEB->ids().data());
177 auto* idsEE = const_cast<uint32_t*>(digisEE->ids().data());