19 electronsMapName_(_config.getParameter<std::
string>(
"ValueMapElectrons")),
20 photonsMapName_(_config.getParameter<std::
string>(
"ValueMapPhotons"))
50 std::vector<Footprint> electronFootprints;
52 for (
unsigned iE(0); iE != newElectronsHandle->size(); ++iE) {
53 electronFootprints.emplace_back();
54 auto& footprint(electronFootprints.back());
57 auto& oldEleRef(electronMap[ref]);
58 auto& oldFootprint(electronFootprintMap[oldEleRef]);
60 for (
auto& pfref : oldFootprint)
61 footprint.emplace_back(newCandidatesHandle, pfref.key());
66 eleFPMapFiller.
insert(newElectronsHandle, electronFootprints.begin(), electronFootprints.end());
67 eleFPMapFiller.
fill();
70 std::vector<Footprint> photonFootprints;
72 for (
unsigned iE(0); iE != newPhotonsHandle->size(); ++iE) {
73 photonFootprints.emplace_back();
74 auto& footprint(photonFootprints.back());
77 auto& oldPhoRef(photonMap[ref]);
78 auto& oldFootprint(photonFootprintMap[oldPhoRef]);
80 for (
auto& pfref : oldFootprint)
81 footprint.emplace_back(newCandidatesHandle, pfref.key());
86 phoFPMapFiller.
insert(newPhotonsHandle, photonFootprints.begin(), photonFootprints.end());
87 phoFPMapFiller.
fill();
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.