36 produces<edm::Association<std::vector<pat::GenericParticle>>>();
37 produces<edm::ValueMap<int>>(
"fsrIndex");
42 desc.
add<
edm::InputTag>(
"photons")->setComment(
"FSR photon collection to associate with muons");
43 desc.
add<
edm::InputTag>(
"muons")->setComment(
"collection of muons to associate with FSR photons");
65 std::vector<int> muonMapping(
muons->size(), -1);
68 for (
auto iter_pho =
photons->begin(); iter_pho !=
photons->end(); iter_pho++) {
69 if (iter_pho->hasUserCand(
"associatedMuon") and
75 auto muon2photon = std::make_unique<edm::Association<std::vector<pat::GenericParticle>>>(
photons);
77 muon2photonFiller.insert(
muons, muonMapping.begin(), muonMapping.end());
78 muon2photonFiller.fill();
83 fillerBareIdx.
insert(
muons, muonMapping.begin(), muonMapping.end());