93 edm::InputTag(
"ecalUncalibRecHitProducerGPU",
"EcalUncalibRecHitsEB"));
95 edm::InputTag(
"ecalUncalibRecHitProducerGPU",
"EcalUncalibRecHitsEE"));
100 desc.
add<
bool>(
"killDeadChannels",
true);
102 desc.
add<
double>(
"EBLaserMIN", 0.01);
103 desc.
add<
double>(
"EELaserMIN", 0.01);
104 desc.
add<
double>(
"EBLaserMAX", 30.0);
105 desc.
add<
double>(
"EELaserMAX", 30.0);
107 desc.
add<uint32_t>(
"maxNumberHitsEB", 61200);
108 desc.
add<uint32_t>(
"maxNumberHitsEE", 14648);
173 auto const& ebUncalibRecHits = ctx.get(ebUncalibRecHitsProduct);
174 auto const& eeUncalibRecHits = ctx.get(eeUncalibRecHitsProduct);
178 neb_ = ebUncalibRecHits.size;
179 nee_ = eeUncalibRecHits.size;
187 <<
"max number of channels exceeded. See options 'maxNumberHitsEB and maxNumberHitsEE' ";
190 int nchannelsEB = ebUncalibRecHits.size;
221 IntercalibConstantsProduct,
222 ChannelStatusProduct,
223 LaserAPDPNRatiosProduct,
224 LaserAPDPNRatiosRefProduct,
226 LinearCorrectionsProduct,
std::vector< uint32_t > expanded_Sizes_v_DB_reco_flags_
bool recoverEEIsolatedChannels
const int * ChannelStatusToBeExcluded
edm::EDGetTokenT< InputProduct > uncalibRecHitsInEBToken_
edm::ESHandle< EcalRecHitParametersGPU > recHitParametersHandle_
RecHit<::calo::common::DevStoragePolicy > recHitsEB
ecal::rechit::EventOutputDataGPU eventOutputDataGPU_
#define DEFINE_FWK_MODULE(type)
RecHit<::calo::common::DevStoragePolicy > recHitsEE
void produce(edm::Event &, edm::EventSetup const &) override
edm::ESGetToken< EcalRecHitParametersGPU, JobConfigurationGPURecord > tokenRecHitParameters_
edm::ESHandle< EcalIntercalibConstantsGPU > IntercalibConstantsHandle_
void allocate(ConfigurationParameters const &configParameters, cudaStream_t cudaStream)
edm::ESGetToken< EcalIntercalibConstantsGPU, EcalIntercalibConstantsRcd > tokenIntercalibConstants_
EcalRecHitProducerGPU(edm::ParameterSet const &ps)
edm::EDPutTokenT< OutputProduct > recHitsTokenEB_
Log< level::Error, false > LogError
edm::EDPutTokenT< OutputProduct > recHitsTokenEE_
bool getData(T &iHolder) const
edm::ESGetToken< EcalLaserAlphasGPU, EcalLaserAlphasRcd > tokenLaserAlphas_
const uint32_t * expanded_flagbit_v_DB_reco_flags
edm::EDGetTokenT< InputProduct > uncalibRecHitsInEEToken_
~EcalRecHitProducerGPU() override
edm::ESGetToken< EcalLinearCorrectionsGPU, EcalLinearCorrectionsRcd > tokenLinearCorrections_
std::vector< uint32_t > expanded_flagbit_v_DB_reco_flags_
static void fillDescriptions(edm::ConfigurationDescriptions &)
uint32_t ChannelStatusToBeExcludedSize
const uint32_t * expanded_Sizes_v_DB_reco_flags
ParameterDescriptionBase * add(U const &iLabel, T const &value)
unsigned long long TimeValue_t
bool recoverEBIsolatedChannels
uint32_t expanded_v_DB_reco_flagsSize
edm::ESGetToken< EcalRechitADCToGeVConstantGPU, EcalADCToGeVConstantRcd > tokenADCToGeVConstant_
void create_ecal_rehit(EventInputDataGPU const &eventInputGPU, EventOutputDataGPU &eventOutputGPU, ConditionsProducts const &conditions, ConfigurationParameters const &configParameters, uint32_t const nChannelsBarrel, edm::TimeValue_t const event_time, cudaStream_t cudaStream)
T getParameter(std::string const &) const
edm::ESGetToken< EcalLaserAPDPNRatiosRefGPU, EcalLaserAPDPNRatiosRefRcd > tokenLaserAPDPNRatiosRef_
ecal::rechit::ConfigurationParameters configParameters_
std::vector< int > expanded_v_DB_reco_flags_
edm::ESGetToken< EcalLaserAPDPNRatiosGPU, EcalLaserAPDPNRatiosRcd > tokenLaserAPDPNRatios_
edm::ESGetToken< EcalRechitChannelStatusGPU, EcalChannelStatusRcd > tokenChannelStatus_
#define cudaCheck(ARG,...)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
cms::cuda::ContextState cudaState_
const int * expanded_v_DB_reco_flags
void acquire(edm::Event const &, edm::EventSetup const &, edm::WaitingTaskWithArenaHolder) override