35 const auto& dweights = ps.
getParameter < std::vector<double> > (
"layerWeights");
36 for (
auto weight : dweights)
44 const auto& rcorr = ps.
getParameter < std::vector<double> > (
"thicknessCorrection");
47 for (
auto corr : rcorr)
100 float sigmaNoiseGeV = 0.f;
101 unsigned int layer =
tools_->getLayerWithOffset(detid);
103 float cce_correction = 1.0;
137 const double new_E = myrechit.
energy() * (thickness == -1 ? 1.0 :
rcorr_[thickness])/cce_correction;
140 myrechit.setEnergy(new_E);
141 myrechit.setSignalOverSigmaNoise(new_E/sigmaNoiseGeV);
T getParameter(std::string const &) const
std::vector< float > weights_
std::vector< double > hgcEE_cce_
std::array< const HGCalDDDConstants *, 3 > ddds_
std::vector< double > hgcHEF_fCPerMIP_
std::vector< double > hgcEE_fCPerMIP_
void push_back(T const &t)
std::vector< double > hgcEE_noise_fC_
double hgchebUncalib2GeV_
uint32_t rawId() const
get the raw id
std::vector< double > hgcHEF_cce_
~HGCalRecHitWorkerSimple() override
std::vector< double > hgcHEF_noise_fC_
std::vector< double > rcorr_
const HGCalTopology & topology() const
void set(const edm::EventSetup &es) override
int wafer() const
get the wafer #
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::unique_ptr< hgcal::RecHitTools > tools_
const HGCalDDDConstants & dddConstants() const
double hgchefUncalib2GeV_
HGCalRecHitWorkerSimple(const edm::ParameterSet &)
bool run(const edm::Event &evt, const HGCUncalibratedRecHit &uncalibRH, HGCRecHitCollection &result) override
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::unique_ptr< HGCalRecHitSimpleAlgo > rechitMaker_