|
|
Go to the documentation of this file.
36 std::unique_ptr<HGCeeRecHitCollection>
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>(
"HGCEE_keV2DIGI");
64 cdata_.xmin_ = ps.getParameter<
double>(
"minValSiPar");
65 cdata_.xmax_ = ps.getParameter<
double>(
"maxValSiPar");
66 cdata_.aterm_ = ps.getParameter<
double>(
"noiseSiPar");
67 cdata_.cterm_ = ps.getParameter<
double>(
"constSiPar");
68 vdata_.fCPerMIP_ = ps.getParameter<std::vector<double>>(
"HGCEE_fCPerMIP");
69 vdata_.cce_ = ps.getParameter<
edm::ParameterSet>(
"HGCEE_cce").getParameter<std::vector<double>>(
"values");
70 vdata_.noise_fC_ = ps.getParameter<
edm::ParameterSet>(
"HGCEE_noise_fC").getParameter<std::vector<double>>(
"values");
71 vdata_.rcorr_ = ps.getParameter<std::vector<double>>(
"rcorr");
72 vdata_.weights_ = ps.getParameter<std::vector<double>>(
"weights");
73 cdata_.uncalib2GeV_ = 1
e-6 / cdata_.keV2DIGI_;
74 assert_sizes_constants_(vdata_);
77 convert_constant_data_(kcdata_);
79 tools_ = std::make_unique<hgcal::RecHitTools>();
87 std::string str3 =
" to hold the configuration data, but is of size ";
88 return str1 +
var + str2 + std::to_string(s1) + str3 + std::to_string(
s2);
116 rechits_ = std::make_unique<HGCRecHitCollection>();
std::unique_ptr< HGCeeRecHitCollection > rechits_
HGCRecHitGPUProduct prod_
static constexpr size_t ee_cce
HGCConstantVectorData vdata_
double weights_[ee_weights]
edm::EDGetTokenT< HGCeeUncalibratedRecHitCollection > uncalibRecHitCPUToken_
void convert_collection_data_to_soa_(const uint32_t &, const HGCeeUncalibratedRecHitCollection &)
std::vector< DeviationSensor2D * > vd
static constexpr size_t ee_noise_fC
edm::EDPutTokenT< cms::cuda::Product< HGCRecHitGPUProduct > > recHitGPUToken_
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
KernelConstantData< HGCeeUncalibRecHitConstantData > * kcdata_
std::vector< double > fCPerMIP_
void beginRun(edm::Run const &, edm::EventSetup const &) override
static constexpr size_t ee_rcorr
std::unique_ptr< hgcal::RecHitTools > tools_
HGCeeUncalibRecHitConstantData cdata_
EERecHitGPU(const edm::ParameterSet &ps)
std::vector< double > rcorr_
Log< level::Error, false > LogError
for(int i=first, nt=offsets[nh];i< nt;i+=gridDim.x *blockDim.x)
double fCPerMIP_[ee_fCPerMIP]
std::vector< double > cce_
void run_kernels(const KernelConstantData< HGCeeUncalibRecHitConstantData > *, const cudaStream_t &)
HGCUncalibRecHitSoA get() const
void assert_sizes_constants_(const HGCConstantVectorData &)
HGCConstantVectorData vdata_
static constexpr size_t ee_weights
T getParameter(std::string const &) const
void convert_constant_data_(KernelConstantData< HGCeeUncalibRecHitConstantData > *)
HGCUncalibRecHitHost< HGCeeUncalibratedRecHitCollection > h_uncalib_
static constexpr size_t ee_fCPerMIP
double noise_fC_[ee_noise_fC]
std::vector< double > weights_
std::vector< double > noise_fC_
std::string assert_error_message_(std::string, const size_t &, const size_t &)
HGCUncalibRecHitDevice d_uncalib_