Skip to content

Commit

Permalink
Merge pull request #30065 from mbluj/CMSSW_11_1_X-boostedTauSeedFix
Browse files Browse the repository at this point in the history
Fix bug affecting boosted tau isolation (11_1_X)
  • Loading branch information
cmsbuild committed Jun 3, 2020
2 parents a435e1a + 67ebc57 commit 88b60b3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions RecoJets/JetProducers/plugins/BoostedTauSeedsProducer.cc
Expand Up @@ -157,10 +157,7 @@ namespace {
const reco::Jet& jet,
const edm::Handle<reco::PFCandidateCollection>& pfCandidates,
const JetToConstitMap::value_type& constitmap,
const reco::Jet::Constituents& jetConstituents,
double /*dRmatch*/,
bool invert) {
//const double dRmatch2 = dRmatch*dRmatch; // comment out for now in case someone needs a dR-based search again
auto const& collection_cand = (*pfCandidates);
std::vector<reco::PFCandidateRef> pfCandidates_exclJetConstituents;
size_t numPFCandidates = pfCandidates->size();
Expand Down Expand Up @@ -256,10 +253,10 @@ void BoostedTauSeedsProducer::produce(edm::Event& evt, const edm::EventSetup& es
edm::Ref<reco::PFJetCollection> subjetRef2(selectedSubjetRefProd, selectedSubjets->size() - 1);

// find all PFCandidates that are not constituents of the **other** subjet
std::vector<reco::PFCandidateRef> pfCandidatesNotInSubjet1 = getPFCandidates_exclJetConstituents(
*subjet1, pfCandidates, constitmap[2 * idx], subjetConstituents2, 1.e-4, false);
std::vector<reco::PFCandidateRef> pfCandidatesNotInSubjet2 = getPFCandidates_exclJetConstituents(
*subjet2, pfCandidates, constitmap[2 * idx + 1], subjetConstituents1, 1.e-4, false);
std::vector<reco::PFCandidateRef> pfCandidatesNotInSubjet1 =
getPFCandidates_exclJetConstituents(*subjet1, pfCandidates, constitmap[2 * idx + 1], false);
std::vector<reco::PFCandidateRef> pfCandidatesNotInSubjet2 =
getPFCandidates_exclJetConstituents(*subjet2, pfCandidates, constitmap[2 * idx], false);
if (verbosity_ >= 1) {
std::cout << "#pfCandidatesNotInSubjet1 = " << pfCandidatesNotInSubjet1.size() << std::endl;
std::cout << "#pfCandidatesNotInSubjet2 = " << pfCandidatesNotInSubjet2.size() << std::endl;
Expand Down

0 comments on commit 88b60b3

Please sign in to comment.