57 template <
class C1,
class C2,
class C3,
class C4>
61 const C3& refProdMany,
65 template <
class C1,
class C2,
class C3,
class C4>
69 const C3& refProdMany,
97 produces<std::vector<pat::Jet>>(
"jets");
98 produces<std::vector<pat::Muon>>(
"muons");
99 produces<std::vector<pat::Electron>>(
"electrons");
100 produces<std::vector<pat::Tau>>(
"taus");
101 produces<std::vector<pat::Photon>>(
"photons");
116 template <
class C1,
class C2,
class C3,
class C4>
120 const C3& refProdMany,
124 for (
auto&
j : itemsOne) {
127 for (
auto&
m : itemsMany) {
129 m.addUserCand(nameOne,
reco::CandidatePtr(refProdOne.id(), ji, refProdOne.productGetter()));
139 template <
class C1,
class C2,
class C3,
class C4>
143 const C3& refProdMany,
147 for (
auto&
j : itemsOne) {
150 for (
auto&
m : itemsMany) {
152 m.addUserCand(nameOne,
reco::CandidatePtr(refProdOne.id(), ji, refProdOne.productGetter()));
166 auto jets = std::make_unique<std::vector<pat::Jet>>();
167 for (
const auto&
j : *jetsIn)
169 auto jetRefProd =
iEvent.getRefBeforePut<std::vector<pat::Jet>>(
"jets");
173 auto muons = std::make_unique<std::vector<pat::Muon>>();
174 for (
const auto&
m : *muonsIn)
176 auto muRefProd =
iEvent.getRefBeforePut<std::vector<pat::Muon>>(
"muons");
180 auto electrons = std::make_unique<std::vector<pat::Electron>>();
181 for (
const auto&
e : *electronsIn)
183 auto eleRefProd =
iEvent.getRefBeforePut<std::vector<pat::Electron>>(
"electrons");
187 auto taus = std::make_unique<std::vector<pat::Tau>>();
188 for (
const auto&
t : *tausIn)
190 auto tauRefProd =
iEvent.getRefBeforePut<std::vector<pat::Tau>>(
"taus");
194 auto photons = std::make_unique<std::vector<pat::Photon>>();
195 for (
const auto&
p : *photonsIn)
197 auto phRefProd =
iEvent.getRefBeforePut<std::vector<pat::Photon>>(
"photons");