26 return (*it).energy();
46 : EgammaCandidateCollection_(
48 EgammaGsfTrackCollection_(
60 egammaPtCut(iConfig.getParameter<double>(
"egammaPtCut")),
61 egammaEtaCut(iConfig.getParameter<double>(
"egammaEtaCut")),
64 saveRecHitTiming(iConfig.getParameter<
bool>(
"saveRecHitTiming")),
65 rechitMatrixSize(iConfig.getParameter<
int>(
"rechitMatrixSize")),
69 produces<Run3ScoutingElectronCollection>();
70 produces<Run3ScoutingPhotonCollection>();
79 auto outElectrons = std::make_unique<Run3ScoutingElectronCollection>();
80 auto outPhotons = std::make_unique<Run3ScoutingPhotonCollection>();
188 for (
auto& candidate : *EgammaCandidateCollection) {
206 float sMin = moments.
sMin;
207 float sMaj = moments.
sMaj;
209 unsigned int seedId = (*SCseed).seed();
213 int detSize = mDetIds.size();
214 std::vector<float> mEnergies(detSize, 0.);
215 std::vector<float> mTimes(detSize, 0.);
217 for (
int i = 0;
i < detSize;
i++) {
226 if (candidate.superCluster()->energy() != 0.)
227 HoE = (*HoverEMap)[candidateRef] / candidate.superCluster()->energy();
232 for (
auto&
track : *EgammaGsfTrackCollection) {
237 if (scRefFromTrk == scRef) {
244 outPhotons->emplace_back(candidate.pt(),
248 (*SigmaIEtaIEtaMap)[candidateRef],
250 (*EcalPFClusterIsoMap)[candidateRef],
251 (*HcalPFClusterIsoMap)[candidateRef],
253 (*R9Map)[candidateRef],
260 outElectrons->emplace_back(candidate.pt(),
266 (*DetaMap)[candidateRef],
267 (*DphiMap)[candidateRef],
268 (*SigmaIEtaIEtaMap)[candidateRef],
270 (*OneOEMinusOneOPMap)[candidateRef],
271 (*MissingHitsMap)[candidateRef],
273 (*EcalPFClusterIsoMap)[candidateRef],
274 (*HcalPFClusterIsoMap)[candidateRef],
275 (*EleGsfTrackIsoMap)[candidateRef],
276 (*R9Map)[candidateRef],
305 desc.
add<
double>(
"egammaPtCut", 4.0);
306 desc.
add<
double>(
"egammaEtaCut", 2.5);
307 desc.
add<
double>(
"egammaHoverECut", 1.0);
308 desc.
add<
bool>(
"saveRecHitTiming",
false);
309 desc.
add<
int>(
"mantissaPrecision", 10)->setComment(
"default float16, change to 23 for float32");
310 desc.
add<
int>(
"rechitMatrixSize", 10);
313 descriptions.
add(
"hltScoutingEgammaProducer", desc);