#include <EcalUncalibRecHitWorkerMultiFit.h>
Public Member Functions | |
EcalUncalibRecHitWorkerMultiFit () | |
EcalUncalibRecHitWorkerMultiFit (const edm::ParameterSet &, edm::ConsumesCollector &c) | |
edm::ParameterSetDescription | getAlgoDescription () override |
~EcalUncalibRecHitWorkerMultiFit () override | |
Public Member Functions inherited from EcalUncalibRecHitWorkerBaseClass | |
EcalUncalibRecHitWorkerBaseClass () | |
EcalUncalibRecHitWorkerBaseClass (const edm::ParameterSet &) | |
EcalUncalibRecHitWorkerBaseClass (const edm::ParameterSet &, edm::ConsumesCollector &c) | |
virtual | ~EcalUncalibRecHitWorkerBaseClass () |
Private Types | |
enum | TimeAlgo { noMethod, ratioMethod, weightsMethod, crossCorrelationMethod } |
Private Member Functions | |
const SampleMatrixGainArray & | noisecor (bool barrel) const |
const SampleMatrix & | noisecor (bool barrel, int gain) const |
void | run (const edm::Event &evt, const EcalDigiCollection &digis, EcalUncalibratedRecHitCollection &result) override |
void | set (const edm::Event &evt) override |
void | set (const edm::EventSetup &es) override |
double | timeCorrection (float ampli, const std::vector< float > &litudeBins, const std::vector< float > &shiftBins) |
Definition at line 52 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Enumerator | |
---|---|
noMethod | |
ratioMethod | |
weightsMethod | |
crossCorrelationMethod |
Definition at line 98 of file EcalUncalibRecHitWorkerMultiFit.h.
EcalUncalibRecHitWorkerMultiFit::EcalUncalibRecHitWorkerMultiFit | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector & | c | ||
) |
Definition at line 13 of file EcalUncalibRecHitWorkerMultiFit.cc.
References activeBX, HLT_FULL_cff::activeBXs, addPedestalUncertaintyEB_, addPedestalUncertaintyEE_, ampErrorCalculation_, amplitudeThreshEB_, amplitudeThreshEE_, bunchSpacing_, bunchSpacingManual_, c, chi2ThreshEB_, chi2ThreshEE_, computeCC_, crossCorrelationMethod, doPrefitEB_, doPrefitEE_, dynamicPedestalsEB_, dynamicPedestalsEE_, EBamplitudeFitParameters_, ebPulseShape_, ebSpikeThresh_, EBtimeConstantTerm_, EBtimeFitLimits_, EBtimeFitParameters_, EBtimeNconst_, EEamplitudeFitParameters_, eePulseShape_, EEtimeConstantTerm_, EEtimeFitLimits_, EEtimeFitParameters_, EEtimeNconst_, gainsToken_, gainSwitchUseMaxSampleEB_, gainSwitchUseMaxSampleEE_, edm::ParameterSet::getParameter(), grpsToken_, HLT_FULL_cff::InputTag, itimeToken_, kPoorRecoFlagEB_, kPoorRecoFlagEE_, 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_, AlCaHLTBitMon_QueryRunRegistry::string, timealgo_, timeCorrBiasToken_, useLumiInfoRunHeader_, weightsMethod, and wgtsToken_.
|
inline |
Definition at line 55 of file EcalUncalibRecHitWorkerMultiFit.h.
|
inlineoverride |
Definition at line 56 of file EcalUncalibRecHitWorkerMultiFit.h.
|
overridevirtual |
Implements EcalUncalibRecHitWorkerBaseClass.
Definition at line 508 of file EcalUncalibRecHitWorkerMultiFit.cc.
References edm::ParameterSetDescription::addNode(), and edm::ParameterSetDescription::addOptionalNode().
|
inlineprivate |
Definition at line 81 of file EcalUncalibRecHitWorkerMultiFit.h.
References Reference_intrackfit_cff::barrel, and noisecors_.
|
inlineprivate |
Definition at line 80 of file EcalUncalibRecHitWorkerMultiFit.h.
References Reference_intrackfit_cff::barrel, PedestalClient_cfi::gain, and noisecors_.
Referenced by run().
|
overrideprivatevirtual |
Implements EcalUncalibRecHitWorkerBaseClass.
Definition at line 240 of file EcalUncalibRecHitWorkerMultiFit.cc.
References activeBX, addPedestalUncertaintyEB_, addPedestalUncertaintyEE_, CustomPhysics_cfi::amplitude, amplitudeThreshEB_, amplitudeThreshEE_, Reference_intrackfit_cff::barrel, edm::DataFrameContainer::begin(), 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, funct::pow(), prefitMaxChiSqEB_, prefitMaxChiSqEE_, edm::ESHandle< T >::product(), pulsecovariances, pulseshapes, ratioMethod, ratioMethod_barrel_, ratioMethod_endcap_, mps_fire::result, simplePhotonAnalyzer_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, EcalUncalibRecHitTimeWeightsAlgo< C >::time(), timealgo_, timeCorrBias_, timeCorrection(), weights, weightsMethod, weightsMethod_barrel_, weightsMethod_endcap_, and wgts.
|
overrideprivatevirtual |
Reimplemented from EcalUncalibRecHitWorkerBaseClass.
Definition at line 161 of file EcalUncalibRecHitWorkerMultiFit.cc.
References activeBX, bunchSpacing_, bunchSpacingManual_, edm::Event::getByToken(), BXVector< T >::resize(), and useLumiInfoRunHeader_.
|
overrideprivatevirtual |
Implements EcalUncalibRecHitWorkerBaseClass.
Definition at line 114 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_.
|
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 193 of file EcalUncalibRecHitWorkerMultiFit.cc.
References newFWLiteAna::bin, and createfilelist::int.
Referenced by run().
|
private |
Definition at line 85 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), run(), and set().
|
private |
Definition at line 121 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 122 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 86 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 148 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 149 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 91 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 90 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 165 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 166 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 169 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 109 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 110 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 113 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 114 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 128 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 159 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 150 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 136 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 130 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 126 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 138 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 129 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 160 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 137 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 131 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 127 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 139 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 69 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 70 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 117 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 118 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 102 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 103 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 155 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 156 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 163 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 164 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit().
|
private |
Definition at line 115 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 116 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 88 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 72 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 84 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by noisecor(), and set().
|
private |
Definition at line 71 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by set().
|
private |
Definition at line 157 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 158 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 141 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 145 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 140 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 144 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 143 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 147 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 142 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 146 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 67 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 68 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 111 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 112 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 76 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 75 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 73 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 74 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 133 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by run().
|
private |
Definition at line 134 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by run().
|
private |
Definition at line 94 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 95 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 119 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 120 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 123 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
Definition at line 99 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and run().
|
private |
Definition at line 152 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 153 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 87 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().
|
private |
Definition at line 106 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by run().
|
private |
Definition at line 107 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by run().
|
private |
Definition at line 108 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by run().
|
private |
Definition at line 104 of file EcalUncalibRecHitWorkerMultiFit.h.
|
private |
Definition at line 105 of file EcalUncalibRecHitWorkerMultiFit.h.
Referenced by EcalUncalibRecHitWorkerMultiFit(), and set().