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