|
|
Go to the documentation of this file.
14 constexpr
float keV2GeV = 1
e-6;
39 const auto& dweights = ps.
getParameter<std::vector<double> >(
"layerWeights");
40 for (
auto weight : dweights) {
43 const auto& weightnose = ps.
getParameter<std::vector<double> >(
"layerNoseWeights");
44 for (
auto const&
weight : weightnose)
52 const auto& rcorr = ps.
getParameter<std::vector<double> >(
"thicknessCorrection");
55 for (
auto corr : rcorr) {
62 const auto& rcorrnose = ps.
getParameter<std::vector<double> >(
"thicknessNoseCorrection");
65 for (
auto corr : rcorrnose) {
128 float sigmaNoiseGeV = 0.f;
129 unsigned int layer =
tools_->getLayerWithOffset(detid);
130 float cce_correction = 1.0;
133 switch (detid.
det()) {
192 throw cms::Exception(
"NonHGCRecHit") <<
"Rechit with detid = " << detid.
rawId() <<
" is not HGC!";
198 double new_E = myrechit.
energy();
202 else if (idtype ==
hgcfh) {
209 myrechit.setEnergy(new_E);
210 float SoN = new_E / sigmaNoiseGeV;
211 myrechit.setSignalOverSigmaNoise(SoN);
214 myrechit.setTimeError(-1.);
217 myrechit.setTimeError(timeError);
220 result.push_back(myrechit);
double hgcHFNose_keV2DIGI_
std::vector< double > rcorrNose_
std::vector< double > hgcHEF_fCPerMIP_
std::vector< double > hgcHFNose_noise_fC_
const HGCalDDDConstants & dddConstants() const
constexpr float energy() const
std::vector< float > weightsNose_
std::vector< float > weights_
double hgchfnoseUncalib2GeV_
constexpr Detector det() const
get the detector field from this detid
int deltasi_index_regemfac_
std::vector< double > hgcHEF_cce_
std::vector< double > hgcEE_fCPerMIP_
std::vector< double > hgcHFNose_fCPerMIP_
std::vector< double > hgcHEF_noise_fC_
double hgchebUncalib2GeV_
std::vector< double > rcorr_
std::vector< double > hgcHFNose_cce_
void set(const edm::EventSetup &es) override
hgcalsimclustertime::ComputeClusterTime timeEstimatorSi_
~HGCalRecHitWorkerSimple() override
#define DEFINE_EDM_PLUGIN(factory, type, name)
const HGCalTopology & topology() const
std::vector< double > hgcEE_noise_fC_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
int type() const
get the type
HGCalRecHitWorkerSimple(const edm::ParameterSet &)
double hgchefUncalib2GeV_
bool run(const edm::Event &evt, const HGCUncalibratedRecHit &uncalibRH, HGCRecHitCollection &result) override
std::unique_ptr< hgcal::RecHitTools > tools_
T getParameter(std::string const &) const
constexpr uint32_t rawId() const
get the raw id
std::unique_ptr< HGCalRecHitSimpleAlgo > rechitMaker_
int type() const
get the type
float getTimeError(std::string type, float xVal)
std::array< const HGCalDDDConstants *, 4 > ddds_
std::vector< double > hgcEE_cce_