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) {
170 charge =
track.charge();
173 if (charge == -999) {
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);
helper::MatcherGetRef< C >::ref_type getRef(const Handle< C > &c, size_t k)
const edm::EDGetTokenT< RecoEcalCandMap > SigmaIEtaIEtaMap_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< reco::GsfTrackCollection > EgammaGsfTrackCollection_
const edm::EDGetTokenT< RecoEcalCandMap > EleGsfTrackIsoMap_
const edm::EDGetTokenT< RecoEcalCandMap > HoverEMap_
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > EgammaCandidateCollection_
const edm::EDGetTokenT< RecoEcalCandMap > DetaMap_
#define DEFINE_FWK_MODULE(type)
const double egammaHoverECut
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
const double egammaEtaCut
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool isNull() const
Checks for null.
std::vector< ScoutingElectron > ScoutingElectronCollection
void produce(edm::StreamID sid, edm::Event &iEvent, edm::EventSetup const &setup) const final
const edm::EDGetTokenT< RecoEcalCandMap > OneOEMinusOneOPMap_
const edm::EDGetTokenT< RecoEcalCandMap > MissingHitsMap_
const edm::EDGetTokenT< RecoEcalCandMap > DphiMap_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
~HLTScoutingEgammaProducer() override
const edm::EDGetTokenT< RecoEcalCandMap > HcalPFClusterIsoMap_
std::vector< ScoutingPhoton > ScoutingPhotonCollection
const edm::EDGetTokenT< RecoEcalCandMap > EcalPFClusterIsoMap_
HLTScoutingEgammaProducer(const edm::ParameterSet &)