24 (iConfig.getParameter<edm::
InputTag>(
"EgammaCandidates"))),
26 (iConfig.getParameter<edm::
InputTag>(
"EgammaGsfTracks"))),
28 "SigmaIEtaIEtaMap"))),
35 "OneOEMinusOneOPMap"))),
37 "EcalPFClusterIsoMap"))),
39 "EleGsfTrackIsoMap"))),
41 "HcalPFClusterIsoMap"))),
42 egammaPtCut(iConfig.getParameter<double>(
"egammaPtCut")),
43 egammaEtaCut(iConfig.getParameter<double>(
"egammaEtaCut")),
44 egammaHoverECut(iConfig.getParameter<double>(
"egammaHoverECut"))
47 produces<ScoutingElectronCollection>();
48 produces<ScoutingPhotonCollection>();
65 EgammaCandidateCollection)){
74 EgammaGsfTrackCollection)){
154 for (
auto &candidate : *EgammaCandidateCollection) {
173 for (
auto &track: *EgammaGsfTrackCollection) {
178 if (scRefFromTrk == scRef) {
181 charge = track.charge();
184 if (charge == -999) {
185 outPhotons->emplace_back(candidate.pt(), candidate.eta(), candidate.phi(),
186 candidate.mass(), (*SigmaIEtaIEtaMap)[candidateRef],
187 (*HoverEMap)[candidateRef],
188 (*EcalPFClusterIsoMap)[candidateRef],
189 (*HcalPFClusterIsoMap)[candidateRef]);
191 outElectrons->emplace_back(candidate.pt(), candidate.eta(), candidate.phi(),
192 candidate.mass(), d0, dz, (*DetaMap)[candidateRef],
193 (*DphiMap)[candidateRef], (*SigmaIEtaIEtaMap)[candidateRef],
194 (*HoverEMap)[candidateRef],
195 (*OneOEMinusOneOPMap)[candidateRef],
196 (*MissingHitsMap)[candidateRef],
charge,
197 (*EcalPFClusterIsoMap)[candidateRef],
198 (*HcalPFClusterIsoMap)[candidateRef],
199 (*EleGsfTrackIsoMap)[candidateRef]);
214 "hltEgammaClusterShape:sigmaIEtaIEta5x5"));
220 "hltEgammaGsfTrackVars:OneOESuperMinusOneOP"));
224 desc.
add<
double>(
"egammaPtCut", 4.0);
225 desc.
add<
double>(
"egammaEtaCut", 2.5);
226 desc.
add<
double>(
"egammaHoverECut", 1.0);
227 descriptions.
add(
"hltScoutingEgammaProducer", desc);
helper::MatcherGetRef< C >::ref_type getRef(const Handle< C > &c, size_t k)
const edm::EDGetTokenT< RecoEcalCandMap > SigmaIEtaIEtaMap_
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_
virtual void produce(edm::StreamID sid, edm::Event &iEvent, edm::EventSetup const &setup) const overridefinal
const edm::EDGetTokenT< RecoEcalCandMap > DetaMap_
~HLTScoutingEgammaProducer()
const double egammaHoverECut
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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
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
const edm::EDGetTokenT< RecoEcalCandMap > HcalPFClusterIsoMap_
std::vector< ScoutingPhoton > ScoutingPhotonCollection
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
const edm::EDGetTokenT< RecoEcalCandMap > EcalPFClusterIsoMap_
HLTScoutingEgammaProducer(const edm::ParameterSet &)