76 desc.add<
double>(
"EBtimeFitLimits_Lower", 0.2);
77 desc.add<
double>(
"EBtimeFitLimits_Upper", 1.4);
78 desc.add<
double>(
"EEtimeFitLimits_Lower", 0.2);
79 desc.add<
double>(
"EEtimeFitLimits_Upper", 1.4);
80 desc.add<
double>(
"EBtimeConstantTerm", .6);
81 desc.add<
double>(
"EEtimeConstantTerm", 1.0);
82 desc.add<
double>(
"EBtimeNconst", 28.5);
83 desc.add<
double>(
"EEtimeNconst", 31.8);
84 desc.add<
double>(
"outOfTimeThresholdGain12pEB", 5);
85 desc.add<
double>(
"outOfTimeThresholdGain12mEB", 5);
86 desc.add<
double>(
"outOfTimeThresholdGain61pEB", 5);
87 desc.add<
double>(
"outOfTimeThresholdGain61mEB", 5);
88 desc.add<
double>(
"outOfTimeThresholdGain12pEE", 1000);
89 desc.add<
double>(
"outOfTimeThresholdGain12mEE", 1000);
90 desc.add<
double>(
"outOfTimeThresholdGain61pEE", 1000);
91 desc.add<
double>(
"outOfTimeThresholdGain61mEE", 1000);
92 desc.add<
double>(
"amplitudeThresholdEB", 10);
93 desc.add<
double>(
"amplitudeThresholdEE", 10);
94 desc.addUntracked<std::vector<uint32_t>>(
"kernelMinimizeThreads", {32, 1, 1});
95 desc.add<
bool>(
"shouldRunTimingComputation",
true);
101 digisTokenEE_{consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"digisLabelEE"))},
102 recHitsTokenEB_{produces<OutputProduct>(ps.getParameter<
std::string>(
"recHitsLabelEB"))},
103 recHitsTokenEE_{produces<OutputProduct>(ps.getParameter<
std::string>(
"recHitsLabelEE"))},
104 pedestalsToken_{esConsumes<EcalPedestalsGPU, EcalPedestalsRcd>()},
105 gainRatiosToken_{esConsumes<EcalGainRatiosGPU, EcalGainRatiosRcd>()},
106 pulseShapesToken_{esConsumes<EcalPulseShapesGPU, EcalPulseShapesRcd>()},
107 pulseCovariancesToken_{esConsumes<EcalPulseCovariancesGPU, EcalPulseCovariancesRcd>()},
108 samplesCorrelationToken_{esConsumes<EcalSamplesCorrelationGPU, EcalSamplesCorrelationRcd>()},
109 timeBiasCorrectionsToken_{esConsumes<EcalTimeBiasCorrectionsGPU, EcalTimeBiasCorrectionsRcd>()},
110 timeCalibConstantsToken_{esConsumes<EcalTimeCalibConstantsGPU, EcalTimeCalibConstantsRcd>(
112 sampleMaskToken_{esConsumes<EcalSampleMask, EcalSampleMaskRcd>()},
113 timeOffsetConstantToken_{esConsumes<EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd>(
115 multifitParametersToken_{esConsumes<EcalMultifitParametersGPU, JobConfigurationGPURecord>()} {
116 std::pair<double, double> EBtimeFitLimits, EEtimeFitLimits;
117 EBtimeFitLimits.first = ps.getParameter<
double>(
"EBtimeFitLimits_Lower");
118 EBtimeFitLimits.second = ps.getParameter<
double>(
"EBtimeFitLimits_Upper");
119 EEtimeFitLimits.first = ps.getParameter<
double>(
"EEtimeFitLimits_Lower");
120 EEtimeFitLimits.second = ps.getParameter<
double>(
"EEtimeFitLimits_Upper");
124 auto EBtimeNconst = ps.getParameter<
double>(
"EBtimeNconst");
125 auto EEtimeNconst = ps.getParameter<
double>(
"EEtimeNconst");
127 auto outOfTimeThreshG12pEB = ps.getParameter<
double>(
"outOfTimeThresholdGain12pEB");
128 auto outOfTimeThreshG12mEB = ps.getParameter<
double>(
"outOfTimeThresholdGain12mEB");
129 auto outOfTimeThreshG61pEB = ps.getParameter<
double>(
"outOfTimeThresholdGain61pEB");
130 auto outOfTimeThreshG61mEB = ps.getParameter<
double>(
"outOfTimeThresholdGain61mEB");
131 auto outOfTimeThreshG12pEE = ps.getParameter<
double>(
"outOfTimeThresholdGain12pEE");
132 auto outOfTimeThreshG12mEE = ps.getParameter<
double>(
"outOfTimeThresholdGain12mEE");
133 auto outOfTimeThreshG61pEE = ps.getParameter<
double>(
"outOfTimeThresholdGain61pEE");
134 auto outOfTimeThreshG61mEE = ps.getParameter<
double>(
"outOfTimeThresholdGain61mEE");
135 auto amplitudeThreshEB = ps.getParameter<
double>(
"amplitudeThresholdEB");
136 auto amplitudeThreshEE = ps.getParameter<
double>(
"amplitudeThresholdEE");
139 configParameters_.shouldRunTimingComputation = ps.getParameter<
bool>(
"shouldRunTimingComputation");
142 auto threadsMinimize = ps.getUntrackedParameter<std::vector<uint32_t>>(
"kernelMinimizeThreads");
143 configParameters_.kernelMinimizeThreads[0] = threadsMinimize[0];
144 configParameters_.kernelMinimizeThreads[1] = threadsMinimize[1];
145 configParameters_.kernelMinimizeThreads[2] = threadsMinimize[2];
154 configParameters_.timeFitLimitsFirstEB = EBtimeFitLimits.first;
155 configParameters_.timeFitLimitsSecondEB = EBtimeFitLimits.second;
156 configParameters_.timeFitLimitsFirstEE = EEtimeFitLimits.first;
157 configParameters_.timeFitLimitsSecondEE = EEtimeFitLimits.second;
168 configParameters_.amplitudeThreshEB = amplitudeThreshEB;
169 configParameters_.amplitudeThreshEE = amplitudeThreshEE;
172 configParameters_.outOfTimeThreshG12pEB = outOfTimeThreshG12pEB;
173 configParameters_.outOfTimeThreshG12pEE = outOfTimeThreshG12pEE;
174 configParameters_.outOfTimeThreshG61pEB = outOfTimeThreshG61pEB;
175 configParameters_.outOfTimeThreshG61pEE = outOfTimeThreshG61pEE;
176 configParameters_.outOfTimeThreshG12mEB = outOfTimeThreshG12mEB;
177 configParameters_.outOfTimeThreshG12mEE = outOfTimeThreshG12mEE;
178 configParameters_.outOfTimeThreshG61mEB = outOfTimeThreshG61mEB;
179 configParameters_.outOfTimeThreshG61mEE = outOfTimeThreshG61mEE;
197 auto const& ebDigis = ctx.
get(ebDigisProduct);
198 auto const&
eeDigis = ctx.get(eeDigisProduct);
200 const uint32_t neb = ebDigis.size;
201 const uint32_t nee =
eeDigis.size;
217 auto const& timeCalibConstants = timeCalibConstantsData.getProduct(ctx.stream());
218 auto const& multifitParameters = multifitParametersData.getProduct(ctx.stream());
237 timeOffsetConstantData,
238 timeCalibConstantsData.getOffset(),
const edm::ESGetToken< EcalGainRatiosGPU, EcalGainRatiosRcd > gainRatiosToken_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
const edm::ESGetToken< EcalPulseCovariancesGPU, EcalPulseCovariancesRcd > pulseCovariancesToken_
const edm::EDGetTokenT< InputProduct > digisTokenEE_
const edm::ESGetToken< EcalPedestalsGPU, EcalPedestalsRcd > pedestalsToken_
const edm::EDPutTokenT< OutputProduct > recHitsTokenEE_
void allocate(ConfigurationParameters const &configParameters, uint32_t sizeEB, uint32_t sizeEE, cudaStream_t cudaStream)
const edm::ESGetToken< EcalPulseShapesGPU, EcalPulseShapesRcd > pulseShapesToken_
UncalibratedRecHit<::calo::common::DevStoragePolicy > recHitsEB
const edm::ESGetToken< EcalTimeBiasCorrectionsGPU, EcalTimeBiasCorrectionsRcd > timeBiasCorrectionsToken_
const edm::ESGetToken< EcalSampleMask, EcalSampleMaskRcd > sampleMaskToken_
uint32_t timeFitParametersSizeEB
const type * timeFitParametersEE
#define DEFINE_FWK_MODULE(type)
const type * timeFitParametersEB
const type * amplitudeFitParametersEB
uint32_t timeFitParametersSizeEE
void entryPoint(EventInputDataGPU const &, EventOutputDataGPU &, EventDataForScratchGPU &, ConditionsProducts const &, ConfigurationParameters const &, cudaStream_t)
UncalibratedRecHit<::calo::common::DevStoragePolicy > recHitsEE
const edm::ESGetToken< EcalTimeCalibConstantsGPU, EcalTimeCalibConstantsRcd > timeCalibConstantsToken_
const edm::EDPutTokenT< OutputProduct > recHitsTokenEB_
const type * amplitudeFitParametersEE
void produce(edm::Event &, edm::EventSetup const &) override
void allocate(ConfigurationParameters const &configParameters, uint32_t sizeEB, uint32_t sizeEE, cudaStream_t cudaStream)
static void fillDescriptions(edm::ConfigurationDescriptions &)
const edm::EDGetTokenT< InputProduct > digisTokenEB_
EcalUncalibRecHitProducerGPU(edm::ParameterSet const &ps)
const edm::ESGetToken< EcalSamplesCorrelationGPU, EcalSamplesCorrelationRcd > samplesCorrelationToken_
~EcalUncalibRecHitProducerGPU() override
const T & get(const Product< T > &data)
const edm::ESGetToken< EcalMultifitParametersGPU, JobConfigurationGPURecord > multifitParametersToken_
const edm::ESGetToken< EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd > timeOffsetConstantToken_
ecal::multifit::ConfigurationParameters configParameters_