35 std::unique_ptr<HGChebRecHitCollection>
rechits_;
46 std::unique_ptr<hgcal::RecHitTools>
tools_;
60 : uncalibRecHitCPUToken_{consumes<HGCUncalibratedRecHitCollection>(
62 recHitGPUToken_{produces<cms::cuda::Product<HGCRecHitGPUProduct>>()} {
63 cdata_.keV2DIGI_ = ps.getParameter<
double>(
"HGCHEB_keV2DIGI");
64 cdata_.noise_MIP_ = ps.getParameter<
edm::ParameterSet>(
"HGCHEB_noise_MIP").getParameter<double>(
"noise_MIP");
65 vdata_.weights_ = ps.getParameter<std::vector<double>>(
"weights");
66 cdata_.uncalib2GeV_ = 1
e-6 / cdata_.keV2DIGI_;
67 cdata_.layerOffset_ = 28;
68 assert_sizes_constants_(vdata_);
71 convert_constant_data_(kcdata_);
73 tools_ = std::make_unique<hgcal::RecHitTools>();
81 std::string str3 =
" to hold the configuration data.";
95 rechits_ = std::make_unique<HGCRecHitCollection>();
T getParameter(std::string const &) const
HEBRecHitGPU(const edm::ParameterSet &ps)
HGCConstantVectorData vdata_
std::string assert_error_message_(std::string, const size_t &)
Log< level::Error, false > LogError
void convert_collection_data_to_soa_(const uint32_t &, const HGChebUncalibratedRecHitCollection &)
static std::string to_string(const XMLCh *ch)
edm::EDPutTokenT< cms::cuda::Product< HGCRecHitGPUProduct > > recHitGPUToken_
HGChebUncalibRecHitConstantData cdata_
HGCUncalibRecHitDevice d_uncalib_
HGCRecHitGPUProduct prod_
void convert_constant_data_(KernelConstantData< HGChebUncalibRecHitConstantData > *)
void run_kernels(const KernelConstantData< HGCeeUncalibRecHitConstantData > *, const cudaStream_t &)
std::unique_ptr< HGChebRecHitCollection > rechits_
#define DEFINE_FWK_MODULE(type)
std::unique_ptr< hgcal::RecHitTools > tools_
HGCUncalibRecHitHost< HGChebUncalibratedRecHitCollection > h_uncalib_
std::vector< DeviationSensor2D * > vd
double weights_[heb_weights]
static constexpr size_t heb_weights
HGCUncalibRecHitSoA get() const
edm::EDGetTokenT< HGChebUncalibratedRecHitCollection > uncalibRecHitCPUToken_
HGCConstantVectorData vdata_
void produce(edm::Event &, const edm::EventSetup &) override
KernelConstantData< HGChebUncalibRecHitConstantData > * kcdata_
void assert_sizes_constants_(const HGCConstantVectorData &)
std::vector< double > fCPerMIP_
std::vector< double > weights_