Go to the documentation of this file.
36 std::unique_ptr<HGChebRecHitCollection>
rechits_;
47 std::unique_ptr<hgcal::RecHitTools>
tools_;
61 : uncalibRecHitCPUToken_{consumes<HGCUncalibratedRecHitCollection>(
63 recHitGPUToken_{produces<cms::cuda::Product<HGCRecHitGPUProduct>>()} {
64 cdata_.keV2DIGI_ = ps.getParameter<
double>(
"HGCHEB_keV2DIGI");
65 cdata_.noise_MIP_ = ps.getParameter<
edm::ParameterSet>(
"HGCHEB_noise_MIP").getParameter<double>(
"noise_MIP");
66 vdata_.weights_ = ps.getParameter<std::vector<double>>(
"weights");
67 cdata_.uncalib2GeV_ = 1
e-6 / cdata_.keV2DIGI_;
68 cdata_.layerOffset_ = 28;
69 assert_sizes_constants_(vdata_);
72 convert_constant_data_(kcdata_);
74 tools_ = std::make_unique<hgcal::RecHitTools>();
82 std::string str3 =
" to hold the configuration data.";
83 return str1 +
var + str2 + std::to_string(
s) + str3;
98 rechits_ = std::make_unique<HGCRecHitCollection>();
HGCUncalibRecHitHost< HGChebUncalibratedRecHitCollection > h_uncalib_
void produce(edm::Event &, const edm::EventSetup &) override
void convert_collection_data_to_soa_(const uint32_t &, const HGChebUncalibratedRecHitCollection &)
std::string assert_error_message_(std::string, const size_t &)
HGCConstantVectorData vdata_
std::unique_ptr< hgcal::RecHitTools > tools_
std::vector< DeviationSensor2D * > vd
std::unique_ptr< HGChebRecHitCollection > rechits_
edm::EDGetTokenT< HGChebUncalibratedRecHitCollection > uncalibRecHitCPUToken_
double weights_[heb_weights]
#define DEFINE_FWK_MODULE(type)
KernelConstantData< HGChebUncalibRecHitConstantData > * kcdata_
std::vector< double > fCPerMIP_
HGCConstantVectorData vdata_
HGChebUncalibRecHitConstantData cdata_
void assert_sizes_constants_(const HGCConstantVectorData &)
HEBRecHitGPU(const edm::ParameterSet &ps)
void beginRun(edm::Run const &, edm::EventSetup const &) override
Log< level::Error, false > LogError
void run_kernels(const KernelConstantData< HGCeeUncalibRecHitConstantData > *, const cudaStream_t &)
HGCUncalibRecHitSoA get() const
T getParameter(std::string const &) const
void convert_constant_data_(KernelConstantData< HGChebUncalibRecHitConstantData > *)
edm::EDPutTokenT< cms::cuda::Product< HGCRecHitGPUProduct > > recHitGPUToken_
std::vector< double > weights_
HGCUncalibRecHitDevice d_uncalib_
static constexpr size_t heb_weights
HGCRecHitGPUProduct prod_