38 const auto& dweights = ps.
getParameter<std::vector<double> >(
"layerWeights");
39 for (
auto weight : dweights) {
42 const auto& weightnose = ps.
getParameter<std::vector<double> >(
"layerNoseWeights");
43 for (
auto const&
weight : weightnose)
50 const auto& rcorr = ps.
getParameter<std::vector<double> >(
"thicknessCorrection");
53 for (
auto corr : rcorr) {
56 const auto& rcorrnose = ps.
getParameter<std::vector<double> >(
"thicknessNoseCorrection");
59 for (
auto corr : rcorrnose) {
116 float sigmaNoiseGeV = 0.f;
117 unsigned int layer =
tools_->getLayerWithOffset(detid);
118 float cce_correction = 1.0;
121 switch (detid.
det()) {
180 throw cms::Exception(
"NonHGCRecHit") <<
"Rechit with detid = " << detid.
rawId() <<
" is not HGC!";
186 double new_E = myrechit.
energy();
193 myrechit.setEnergy(new_E);
194 myrechit.setSignalOverSigmaNoise(new_E / sigmaNoiseGeV);
constexpr float energy() const
T getParameter(std::string const &) const
std::vector< float > weights_
double hgchfnoseUncalib2GeV_
std::vector< double > hgcEE_cce_
int type() const
get the type
std::vector< float > weightsNose_
std::vector< double > hgcHEF_fCPerMIP_
std::vector< double > hgcEE_fCPerMIP_
constexpr uint32_t rawId() const
get the raw id
void push_back(T const &t)
std::vector< double > hgcEE_noise_fC_
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_
int type() const
get the type
std::vector< double > rcorr_
const HGCalTopology & topology() const
void set(const edm::EventSetup &es) override
constexpr 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
double hgcHFNose_keV2DIGI_
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::unique_ptr< HGCalRecHitSimpleAlgo > rechitMaker_
std::vector< double > rcorrNose_
std::array< const HGCalDDDConstants *, 4 > ddds_
constexpr Detector det() const
get the detector field from this detid
std::vector< double > hgcHFNose_noise_fC_