|
|
Go to the documentation of this file.
15 rechitMaker_ = std::make_unique<HGCalRecHitSimpleAlgo>();
16 tools_ = std::make_unique<hgcal::RecHitTools>();
17 constexpr
float keV2GeV = 1
e-6;
42 const auto& dweights = ps.
getParameter<std::vector<double> >(
"layerWeights");
43 for (
auto weight : dweights) {
46 const auto& weightnose = ps.
getParameter<std::vector<double> >(
"layerNoseWeights");
47 for (
auto const&
weight : weightnose)
55 const auto& rcorr = ps.
getParameter<std::vector<double> >(
"thicknessCorrection");
58 for (
auto corr : rcorr) {
66 const auto& rcorrnose = ps.
getParameter<std::vector<double> >(
"thicknessNoseCorrection");
69 for (
auto corr : rcorrnose) {
134 float sigmaNoiseGeV = 0.f;
135 unsigned int layer =
tools_->getLayerWithOffset(detid);
136 float cce_correction = 1.0;
139 switch (detid.
det()) {
198 throw cms::Exception(
"NonHGCRecHit") <<
"Rechit with detid = " << detid.
rawId() <<
" is not HGC!";
204 double new_E = myrechit.
energy();
208 else if (idtype ==
hgcfh) {
215 myrechit.setEnergy(new_E);
216 float SoN = new_E / sigmaNoiseGeV;
217 myrechit.setSignalOverSigmaNoise(SoN);
220 myrechit.setTimeError(-1.);
223 myrechit.setTimeError(timeError);
226 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_
constexpr uint32_t rawId() const
get the raw id
std::unique_ptr< HGCalRecHitSimpleAlgo > rechitMaker_
int type() const
get the type
T getParameter(std::string const &) const
float getTimeError(std::string type, float xVal)
std::array< const HGCalDDDConstants *, 4 > ddds_
std::vector< double > hgcEE_cce_