189 std::cout <<
"<BoostedTauSeedsProducer::produce (moduleLabel = " <<
moduleLabel_ <<
")>:" << std::endl;
205 auto selectedSubjets = std::make_unique<reco::PFJetCollection>();
208 auto selectedSubjetPFCandidateAssociationForIsolation =
209 std::make_unique<JetToPFCandidateAssociation>(&evt.
productGetter());
213 JetToConstitMap constitmap(subjets->
size());
216 const auto& thesubjets = *subjets;
217 for (
unsigned i = 0;
i < thesubjets.size(); ++
i) {
218 for (
unsigned j = 0;
j < thesubjets[
i].numberOfDaughters(); ++
j) {
219 constitmap[
i].emplace(thesubjets[
i].daughterPtr(
j).
key());
226 assert(subjet1 && subjet2);
228 std::cout <<
"processing jet #" <<
idx <<
":" << std::endl;
229 std::cout <<
" subjet1: Pt = " << subjet1->
pt() <<
", eta = " << subjet1->
eta() <<
", phi = " << subjet1->
phi()
230 <<
", mass = " << subjet1->
mass() <<
" (#constituents = " << subjet1->
nConstituents()
231 <<
", area = " << subjet1->
jetArea() <<
")" << std::endl;
232 std::cout <<
" subjet2: Pt = " << subjet2->
pt() <<
", eta = " << subjet2->
eta() <<
", phi = " << subjet2->
phi()
233 <<
", mass = " << subjet2->
mass() <<
" (#constituents = " << subjet2->
nConstituents()
234 <<
", area = " << subjet2->
jetArea() <<
")" << std::endl;
242 getJetConstituents(*subjet1, subjetConstituents1);
244 getJetConstituents(*subjet2, subjetConstituents2);
246 printJetConstituents(
"subjetConstituents1", subjetConstituents1);
247 printJetConstituents(
"subjetConstituents2", subjetConstituents2);
250 selectedSubjets->push_back(convertToPFJet(*subjet1, subjetConstituents1));
252 selectedSubjets->push_back(convertToPFJet(*subjet2, subjetConstituents2));
256 std::vector<reco::PFCandidateRef> pfCandidatesNotInSubjet1 =
257 getPFCandidates_exclJetConstituents(*subjet1,
pfCandidates, constitmap[2 *
idx + 1],
false);
258 std::vector<reco::PFCandidateRef> pfCandidatesNotInSubjet2 =
259 getPFCandidates_exclJetConstituents(*subjet2,
pfCandidates, constitmap[2 *
idx],
false);
261 std::cout <<
"#pfCandidatesNotInSubjet1 = " << pfCandidatesNotInSubjet1.size() << std::endl;
262 std::cout <<
"#pfCandidatesNotInSubjet2 = " << pfCandidatesNotInSubjet2.size() << std::endl;
267 for (
auto const& pfCandidate : pfCandidatesNotInSubjet1) {
268 selectedSubjetPFCandidateAssociationForIsolation->insert(subjetRef1, pfCandidate);
270 for (
auto const& pfCandidate : pfCandidatesNotInSubjet2) {
271 selectedSubjetPFCandidateAssociationForIsolation->insert(subjetRef2, pfCandidate);
276 evt.
put(
std::move(selectedSubjetPFCandidateAssociationForIsolation),
"pfCandAssocMapForIsolation");