35 desc.add<
double>(
"tRise", 0.2);
36 desc.add<
double>(
"tFall", 2.);
37 desc.add<std::vector<double>>(
"ampWeights",
54 desc.add<std::vector<double>>(
"timeWeights",
78 : tRise_(ps.getParameter<double>(
"tRise")),
79 tFall_(ps.getParameter<double>(
"tFall")),
80 ampWeights_(ps.getParameter<
std::
vector<double>>(
"ampWeights")),
81 timeWeights_(ps.getParameter<
std::
vector<double>>(
"timeWeights")),
83 ebUncalibRecHitCollectionToken_(
91 auto ebUncalibRechits = std::make_unique<EBUncalibratedRecHitCollection>();
93 for (
auto itdg = pdigis->
begin(); itdg != pdigis->
end(); ++itdg) {
100 std::vector<float> timetrace;
101 std::vector<float> adctrace;
115 adctrace.push_back(thisSample.
adc() * gratio);
121 if (thisSample.
gainId() == 1)
124 timetrace.push_back(
sample);
137 ebUncalibRechits->push_back(rhit);
const std::vector< double > ampWeights_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool get(ProductID const &oid, Handle< PROD > &result) const
int adc() const
get the ADC sample (12 bits)
void setJitterError(float jitterErr)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< EBDigiCollectionPh2 > ebDigiCollectionToken_
EcalUncalibRecHitPhase2WeightsProducer(const edm::ParameterSet &ps)
#define DEFINE_FWK_MODULE(type)
static constexpr const float * gains
void setAmplitudeError(float amplitudeerror)
const_iterator end() const
int gainId() const
get the gainId (2 bits)
const_iterator begin() const
The iterator returned can not safely be used across threads.
const std::vector< double > timeWeights_
void setFlagBit(Flags flag)
const edm::EDPutTokenT< EBUncalibratedRecHitCollection > ebUncalibRecHitCollectionToken_
void produce(edm::Event &evt, const edm::EventSetup &es) override