Public Member Functions | |
EcalUncalibRecHitWorkerMultiFit (const edm::ParameterSet &, edm::ConsumesCollector &c) | |
EcalUncalibRecHitWorkerMultiFit () | |
edm::ParameterSetDescription | getAlgoDescription () override |
Public Member Functions inherited from EcalUncalibRecHitWorkerBaseClass | |
EcalUncalibRecHitWorkerBaseClass (const edm::ParameterSet &, edm::ConsumesCollector &c) | |
EcalUncalibRecHitWorkerBaseClass (const edm::ParameterSet &) | |
EcalUncalibRecHitWorkerBaseClass () | |
virtual | ~EcalUncalibRecHitWorkerBaseClass () |
Private Types | |
enum | TimeAlgo { noMethod, ratioMethod, weightsMethod, crossCorrelationMethod } |
Private Member Functions | |
const SampleMatrix & | noisecor (bool barrel, int gain) const |
const SampleMatrixGainArray & | noisecor (bool barrel) const |
void | run (const edm::Event &evt, const EcalDigiCollection &digis, EcalUncalibratedRecHitCollection &result) override |
void | set (const edm::EventSetup &es) override |
void | set (const edm::Event &evt) override |
double | timeCorrection (float ampli, const std::vector< float > &litudeBins, const std::vector< float > &shiftBins) |
Definition at line 50 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Enumerator | |
---|---|
noMethod | |
ratioMethod | |
weightsMethod | |
crossCorrelationMethod |
Definition at line 95 of file EcalUncalibRecHitWorkerMultiFit.cc.
EcalUncalibRecHitWorkerMultiFit::EcalUncalibRecHitWorkerMultiFit | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector & | c | ||
) |
Definition at line 174 of file EcalUncalibRecHitWorkerMultiFit.cc.
References activeBX, HLT_2023v12_cff::activeBXs, addPedestalUncertaintyEB_, addPedestalUncertaintyEE_, ampErrorCalculation_, amplitudeThreshEB_, amplitudeThreshEE_, bunchSpacing_, bunchSpacingManual_, HltBtagPostValidation_cff::c, CCminTimeToBeLateMax_, CCminTimeToBeLateMin_, CCtargetTimePrecision_, CCtargetTimePrecisionForDelayedPulses_, CCTimeShiftWrtRations_, ecalcctiming::clockToNS, computeCC_, crossCorrelationMethod, doPrefitEB_, doPrefitEE_, dynamicPedestalsEB_, dynamicPedestalsEE_, EBamplitudeFitParameters_, EBtimeConstantTerm_, EBtimeFitLimits_, EBtimeFitParameters_, EBtimeNconst_, EEamplitudeFitParameters_, EEtimeConstantTerm_, EEtimeFitLimits_, EEtimeFitParameters_, EEtimeNconst_, gainsToken_, gainSwitchUseMaxSampleEB_, gainSwitchUseMaxSampleEE_, edm::ParameterSet::getParameter(), grpsToken_, ProducerED_cfi::InputTag, itimeToken_, mitigateBadSamplesEB_, mitigateBadSamplesEE_, noiseConvariancesToken_, offtimeToken_, outOfTimeThreshG12mEB_, outOfTimeThreshG12mEE_, outOfTimeThreshG12pEB_, outOfTimeThreshG12pEE_, outOfTimeThreshG61mEB_, outOfTimeThreshG61mEE_, outOfTimeThreshG61pEB_, outOfTimeThreshG61pEE_, pedsToken_, prefitMaxChiSqEB_, prefitMaxChiSqEE_, pulseConvariancesToken_, pulseShapesToken_, ratioMethod, BXVector< T >::resize(), sampleMaskToken_, selectiveBadSampleCriteriaEB_, selectiveBadSampleCriteriaEE_, simplifiedNoiseModelForGainSwitch_, beamSpotPI::startTime, AlCaHLTBitMon_QueryRunRegistry::string, timealgo_, timeCorrBiasToken_, useLumiInfoRunHeader_, weightsMethod, and wgtsToken_.
|
inline |
Definition at line 53 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
overridevirtual |
Implements EcalUncalibRecHitWorkerBaseClass.
Definition at line 730 of file EcalUncalibRecHitWorkerMultiFit.cc.
References edm::ParameterSetDescription::addNode().
|
inlineprivate |
Definition at line 77 of file EcalUncalibRecHitWorkerMultiFit.cc.
References Reference_intrackfit_cff::barrel, PedestalClient_cfi::gain, and noisecors_.
Referenced by run().
|
inlineprivate |
Definition at line 78 of file EcalUncalibRecHitWorkerMultiFit.cc.
References Reference_intrackfit_cff::barrel, and noisecors_.
|
overrideprivatevirtual |
Implements EcalUncalibRecHitWorkerBaseClass.
Definition at line 396 of file EcalUncalibRecHitWorkerMultiFit.cc.
References funct::abs(), activeBX, addPedestalUncertaintyEB_, addPedestalUncertaintyEE_, CustomPhysics_cfi::amplitude, amplitudeThreshEB_, amplitudeThreshEE_, Reference_intrackfit_cff::barrel, edm::DataFrameContainer::begin(), CCtargetTimePrecision_, CCtargetTimePrecisionForDelayedPulses_, CCTimeShiftWrtRations_, ecalcctiming::clockToNS, EcalUncalibRecHitRatioMethodAlgo< C >::computeAmplitude(), computeCC_, EcalUncalibRecHitRatioMethodAlgo< C >::computeTime(), crossCorrelationMethod, doPrefitEB_, doPrefitEE_, dynamicPedestalsEB_, dynamicPedestalsEE_, EBamplitudeFitParameters_, EBtimeConstantTerm_, EcalTimeBiasCorrections::EBTimeCorrAmplitudeBins, EcalTimeBiasCorrections::EBTimeCorrShiftBins, EBtimeFitLimits_, EBtimeFitParameters_, EBtimeNconst_, EcalBarrel, EcalEndcap, EEamplitudeFitParameters_, EEtimeConstantTerm_, EcalTimeBiasCorrections::EETimeCorrAmplitudeBins, EcalTimeBiasCorrections::EETimeCorrShiftBins, EEtimeFitLimits_, EEtimeFitParameters_, EEtimeNconst_, edm::DataFrameContainer::empty(), edm::DataFrameContainer::end(), EcalUncalibRecHitRatioMethodAlgo< C >::fixMGPAslew(), EcalMGPAGainRatio::gain12Over6(), EcalMGPAGainRatio::gain6Over1(), ecalLiteDTU::gainId(), gains, gainSwitchUseMaxSampleEB_, gainSwitchUseMaxSampleEE_, EcalUncalibRecHitRatioMethodAlgo< C >::getCalculatedRecHit(), EcalTimeOffsetConstant::getEBValue(), EcalTimeOffsetConstant::getEEValue(), EcalTBWeights::getMap(), EcalWeightSet::getWeightsAfterGainSwitch(), EcalWeightSet::getWeightsBeforeGainSwitch(), grps, ecalpyutils::hashedIndex(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), mps_fire::i, EcalXtalGroupId::id(), EcalUncalibRecHitRatioMethodAlgo< C >::init(), itime, dqmiolumiharvest::j, EcalUncalibratedRecHit::kHasSwitchToGain1, EcalUncalibratedRecHit::kHasSwitchToGain6, EcalUncalibratedRecHit::kOutOfTime, EcalUncalibratedRecHit::kSaturated, EcalUncalibRecHitMultiFitAlgo::makeRecHit(), EcalDataFrame::MAXSAMPLES, mitigateBadSamplesEB_, mitigateBadSamplesEE_, multiFitMethod_, noisecor(), offtime, outOfTimeThreshG12mEB_, outOfTimeThreshG12mEE_, outOfTimeThreshG12pEB_, outOfTimeThreshG12pEE_, outOfTimeThreshG61mEB_, outOfTimeThreshG61mEE_, outOfTimeThreshG61pEB_, outOfTimeThreshG61pEE_, EcalCondDBWriter_cfi::pedestal, peds, conifer::pow(), prefitMaxChiSqEB_, prefitMaxChiSqEE_, edm::ESHandle< T >::product(), pulsecovariances, pulseshapes, ratioMethod, ratioMethod_barrel_, ratioMethod_endcap_, mps_fire::result, ecalGpuTask_cfi::sample, sampleMaskHand_, selectiveBadSampleCriteriaEB_, selectiveBadSampleCriteriaEE_, EcalUncalibRecHitMultiFitAlgo::setAddPedestalUncertainty(), EcalUncalibRecHitMultiFitAlgo::setDoPrefit(), EcalUncalibRecHitMultiFitAlgo::setDynamicPedestals(), EcalUncalibRecHitMultiFitAlgo::setGainSwitchUseMaxSample(), EcalUncalibRecHitMultiFitAlgo::setMitigateBadSamples(), EcalUncalibRecHitMultiFitAlgo::setPrefitMaxChiSq(), EcalUncalibRecHitMultiFitAlgo::setSelectiveBadSampleCriteria(), EcalUncalibRecHitMultiFitAlgo::setSimplifiedNoiseModelForGainSwitch(), simplifiedNoiseModelForGainSwitch_, BXVector< T >::size(), edm::DataFrameContainer::size(), mathSSE::sqrt(), EcalPulseShape::TEMPLATESAMPLES, remoteMonitoring_LASER_era2018_cfg::threshold, EcalUncalibRecHitTimeWeightsAlgo< C >::time(), timealgo_, timeCorrBias_, timeCorrection(), weights, weightsMethod, weightsMethod_barrel_, weightsMethod_endcap_, and wgts.
|
overrideprivatevirtual |
Implements EcalUncalibRecHitWorkerBaseClass.
Definition at line 270 of file EcalUncalibRecHitWorkerMultiFit.cc.
References funct::abs(), ampErrorCalculation_, EcalUncalibRecHitMultiFitAlgo::disableErrorCalculation(), EcalSamplesCorrelation::EBG12SamplesCorrelation, EcalSamplesCorrelation::EBG1SamplesCorrelation, EcalSamplesCorrelation::EBG6SamplesCorrelation, EcalSamplesCorrelation::EEG12SamplesCorrelation, EcalSamplesCorrelation::EEG1SamplesCorrelation, EcalSamplesCorrelation::EEG6SamplesCorrelation, gains, gainsToken_, edm::EventSetup::getHandle(), grps, grpsToken_, mps_fire::i, itime, itimeToken_, dqmiolumiharvest::j, multiFitMethod_, noiseConvariancesToken_, noisecors_, noisecovariances, offtime, offtimeToken_, peds, pedsToken_, pulseConvariancesToken_, pulsecovariances, pulseshapes, pulseShapesToken_, sampleMaskHand_, sampleMaskToken_, timeCorrBias_, timeCorrBiasToken_, wgts, and wgtsToken_.
|
overrideprivatevirtual |
Reimplemented from EcalUncalibRecHitWorkerBaseClass.
Definition at line 317 of file EcalUncalibRecHitWorkerMultiFit.cc.
References activeBX, bunchSpacing_, bunchSpacingManual_, edm::Event::getByToken(), BXVector< T >::resize(), and useLumiInfoRunHeader_.
|
private |
Amplitude-dependent time corrections; EE and EB have separate corrections: EXtimeCorrAmplitudes (ADC) and EXtimeCorrShifts (ns) need to have the same number of elements Bins must be ordered in amplitude. First-last bins take care of under-overflows.
The algorithm is the same for EE and EB, only the correction vectors are different.
Definition at line 349 of file EcalUncalibRecHitWorkerMultiFit.cc.
References newFWLiteAna::bin, and createfilelist::int.
Referenced by run().
|
private |
Definition at line 82 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), run(), and set().
|
private |
Definition at line 118 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 119 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 83 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 145 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 146 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 88 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 87 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 168 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 167 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 170 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 171 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 169 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 162 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 163 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 166 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 106 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 107 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 110 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 111 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 125 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 156 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 147 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 133 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 127 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 123 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 135 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 126 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 157 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 134 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 128 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 124 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 136 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 66 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 67 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 114 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 115 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 99 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 100 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 152 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 153 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 160 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 161 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 112 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 113 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 85 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 69 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 81 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by noisecor(), and set().
|
private |
Definition at line 68 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by set().
|
private |
Definition at line 154 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 155 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 138 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 142 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 137 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 141 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 140 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 144 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 139 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 143 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 64 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 65 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 108 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 109 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 73 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 72 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 70 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 71 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 130 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by run().
|
private |
Definition at line 131 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by run().
|
private |
Definition at line 91 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 92 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 116 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 117 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 120 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
Definition at line 96 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 149 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 150 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 84 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 103 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by run().
|
private |
Definition at line 104 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by run().
|
private |
Definition at line 105 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by run().
|
private |
Definition at line 101 of file EcalUncalibRecHitWorkerMultiFit.cc.
|
private |
Definition at line 102 of file EcalUncalibRecHitWorkerMultiFit.cc.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().