34 const auto& dweights = ps.
getParameter<std::vector<double> >(
"layerWeights");
35 for(
auto weight : dweights ) {
41 const auto& rcorr = ps.
getParameter<std::vector<double> >(
"thicknessCorrection");
44 for(
auto corr : rcorr ) {
54 ddds_[0] = &(hgceeGeoHandle->topology().dddConstants());
61 ddds_[1] = &(hgchefGeoHandle->topology().dddConstants());
74 uint32_t recoFlag = 0;
92 <<
"Rechit with detid = " << detid.
rawId() <<
" is not HGC!";
105 const double new_E = myrechit.energy()*(thk == -1 ? 1.0 :
rcorr_[thk]);
106 myrechit.setEnergy(new_E);
T getParameter(std::string const &) const
bool run(const edm::Event &evt, const HGCUncalibratedRecHit &uncalibRH, HGCRecHitCollection &result)
std::array< const HGCalDDDConstants *, 3 > ddds_
void push_back(T const &t)
double hgchebUncalib2GeV_
uint32_t rawId() const
get the raw id
virtual ~HGCalRecHitWorkerSimple()
int wafer() const
get the wafer #
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void set(const edm::EventSetup &es)
double hgchefUncalib2GeV_
HGCalRecHitWorkerSimple(const edm::ParameterSet &)
std::vector< double > HGCHEF_fCPerMIP_
std::vector< float > rcorr_
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< double > HGCEE_fCPerMIP_
std::unique_ptr< HGCalRecHitSimpleAlgo > rechitMaker_