20 rechitMaker_ = std::make_unique<HGCalRecHitSimpleAlgo>();
21 tools_ = std::make_unique<hgcal::RecHitTools>();
48 const auto& dweights = ps.
getParameter<std::vector<double> >(
"layerWeights");
49 for (
auto weight : dweights) {
52 const auto& weightnose = ps.
getParameter<std::vector<double> >(
"layerNoseWeights");
53 for (
auto const&
weight : weightnose)
72 const auto& rcorrnose = ps.
getParameter<std::vector<double> >(
"thicknessNoseCorrection");
75 for (
auto corr : rcorrnose) {
127 for (
const auto& uncalibRH : uncalibRHColl) {
137 float sigmaNoiseGeV = 0.f;
139 float cce_correction = 1.0f;
142 switch (
detid.det()) {
155 switch (
detid.subdetId()) {
202 throw cms::Exception(
"NonHGCRecHit") <<
"Rechit with detid = " <<
detid.rawId() <<
" is not HGC!";
208 double new_E = myrechit.
energy();
212 else if (idtype ==
hgcfh) {
219 myrechit.setEnergy(new_E);
220 float SoN = new_E / sigmaNoiseGeV;
221 myrechit.setSignalOverSigmaNoise(SoN);
224 myrechit.setTimeError(-1.);
227 myrechit.setTimeError(timeError);
230 result.push_back(myrechit);
void run(const edm::Event &evt, const HGCUncalibratedRecHitCollection &uncalibRH, HGCRecHitCollection &result) override
T getParameter(std::string const &) const
std::vector< float > weights_
std::vector< HGCRecHit > HGCRecHitCollection
double hgchfnoseUncalib2GeV_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
std::vector< double > hgcEE_cce_
std::vector< float > weightsNose_
std::vector< double > hgcHEF_fCPerMIP_
std::vector< double > hgcEE_fCPerMIP_
HGCalRecHitWorkerSimple(const edm::ParameterSet &, edm::ConsumesCollector iC)
int deltasi_index_regemfac_
hgcalsimclustertime::ComputeClusterTime timeEstimatorSi_
std::vector< double > hgcEE_noise_fC_
constexpr float energy() const
double hgchebUncalib2GeV_
std::vector< double > hgcHFNose_cce_
std::vector< double > hgcHEF_cce_
~HGCalRecHitWorkerSimple() override
std::vector< double > hgcHFNose_fCPerMIP_
std::vector< double > hgcHEF_noise_fC_
std::vector< double > rcorr_
void set(const edm::EventSetup &es) override
int type() const
get the type
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const HGCalTopology & topology() const
std::unique_ptr< hgcal::RecHitTools > tools_
double hgchefUncalib2GeV_
float getTimeError(std::string type, float xVal)
double hgcHFNose_keV2DIGI_
#define DEFINE_EDM_PLUGIN(factory, type, name)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > ee_geometry_token_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hfnose_geometry_token_
constexpr int32_t type() const
get the type
std::unique_ptr< HGCalRecHitSimpleAlgo > rechitMaker_
const HGCalDDDConstants & dddConstants() const
std::vector< double > rcorrNose_
std::array< const HGCalDDDConstants *, 4 > ddds_
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hef_geometry_token_
std::vector< double > hgcHFNose_noise_fC_