23 : EgammaCandidateCollection_(
25 EgammaGsfTrackCollection_(
36 egammaPtCut(iConfig.getParameter<double>(
"egammaPtCut")),
37 egammaEtaCut(iConfig.getParameter<double>(
"egammaEtaCut")),
40 produces<ScoutingElectronCollection>();
41 produces<ScoutingPhotonCollection>();
143 for (
auto& candidate : *EgammaCandidateCollection) {
162 for (
auto&
track : *EgammaGsfTrackCollection) {
167 if (scRefFromTrk == scRef) {
174 outPhotons->emplace_back(candidate.pt(),
178 (*SigmaIEtaIEtaMap)[candidateRef],
179 (*HoverEMap)[candidateRef],
180 (*EcalPFClusterIsoMap)[candidateRef],
181 (*HcalPFClusterIsoMap)[candidateRef]);
183 outElectrons->emplace_back(candidate.pt(),
189 (*DetaMap)[candidateRef],
190 (*DphiMap)[candidateRef],
191 (*SigmaIEtaIEtaMap)[candidateRef],
192 (*HoverEMap)[candidateRef],
193 (*OneOEMinusOneOPMap)[candidateRef],
194 (*MissingHitsMap)[candidateRef],
196 (*EcalPFClusterIsoMap)[candidateRef],
197 (*HcalPFClusterIsoMap)[candidateRef],
198 (*EleGsfTrackIsoMap)[candidateRef]);
221 desc.
add<
double>(
"egammaPtCut", 4.0);
222 desc.
add<
double>(
"egammaEtaCut", 2.5);
223 desc.
add<
double>(
"egammaHoverECut", 1.0);
224 descriptions.
add(
"hltScoutingEgammaProducer", desc);