53 tauAncToken_(consumes<
edm::ValueMap<
bool>>(iConfig.getParameter<
edm::
InputTag>(
"hasTauAnc"))) {
54 produces<reco::GenJetCollection>(
"merged");
55 produces<edm::ValueMap<bool>>(
"hasTauAnc");
69 std::vector<bool> hasTauAncValues;
80 for (
unsigned int ijet = 0; ijet < jetHandle->size(); ++ijet) {
81 auto jet = jetHandle->at(ijet);
84 hasTauAncValues.push_back((*tauAncHandle)[jetRef]);
87 for (
auto&
part : *partHandle) {
92 merged->push_back(
jet);
93 hasTauAncValues.push_back(
false);
100 filler.insert(newmerged, hasTauAncValues.begin(), hasTauAncValues.end());