◆ EcalUncalibRecHitPhase2WeightsProducer()
EcalUncalibRecHitPhase2WeightsProducer::EcalUncalibRecHitPhase2WeightsProducer |
( |
const edm::ParameterSet & |
ps | ) |
|
|
explicit |
Definition at line 77 of file EcalUncalibRecHitPhase2WeightsProducer.cc.
const std::vector< double > ampWeights_
T getParameter(std::string const &) const
const edm::EDGetTokenT< EBDigiCollectionPh2 > ebDigiCollectionToken_
const std::vector< double > timeWeights_
const edm::EDPutTokenT< EBUncalibratedRecHitCollection > ebUncalibRecHitCollectionToken_
◆ fillDescriptions()
◆ produce()
Definition at line 86 of file EcalUncalibRecHitPhase2WeightsProducer.cc.
References EcalLiteDTUSample::adc(), ampWeights_, edm::DataFrameContainer::begin(), ebDigiCollectionToken_, ebUncalibRecHitCollectionToken_, edm::DataFrameContainer::end(), diffTwoXMLs::g1, EcalLiteDTUSample::gainId(), ecalPh2::gains, edm::Event::get(), EBDataFrame::id(), EcalUncalibratedRecHit::kHasSwitchToGain1, eostools::move(), PresampleTask_cfi::nSamples, edm::Event::put(), ecalGpuTask_cfi::sample, EcalUncalibratedRecHit::setAmplitudeError(), EcalUncalibratedRecHit::setFlagBit(), EcalUncalibratedRecHit::setJitterError(), EcalDataFrame::size(), FrontierCondition_GT_autoExpress_cfi::t0, and timeWeights_.
91 auto ebUncalibRechits = std::make_unique<EBUncalibratedRecHitCollection>();
93 for (
auto itdg = pdigis->
begin(); itdg != pdigis->
end(); ++itdg) {
96 DetId detId(digi.id());
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);
132 rhit.setAmplitudeError(amp_e);
133 rhit.setJitterError(t0_e);
137 ebUncalibRechits->push_back(rhit);
const std::vector< double > ampWeights_
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)
const edm::EDGetTokenT< EBDigiCollectionPh2 > ebDigiCollectionToken_
static constexpr const float * gains
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_
const edm::EDPutTokenT< EBUncalibratedRecHitCollection > ebUncalibRecHitCollectionToken_
◆ ampWeights_
const std::vector<double> EcalUncalibRecHitPhase2WeightsProducer::ampWeights_ |
|
private |
◆ ebDigiCollectionToken_
◆ ebUncalibRecHitCollectionToken_
◆ tFall_
const float EcalUncalibRecHitPhase2WeightsProducer::tFall_ |
|
private |
◆ timeWeights_
const std::vector<double> EcalUncalibRecHitPhase2WeightsProducer::timeWeights_ |
|
private |
◆ tRise_
const float EcalUncalibRecHitPhase2WeightsProducer::tRise_ |
|
private |