Skip to content

Commit

Permalink
Merge pull request #45815 from mbluj/CMSSW_14_1_X_hybridProdGenMatchFix
Browse files Browse the repository at this point in the history
Bug fix: initialization of genJetMatch token in appropriate place [14_1_X]
  • Loading branch information
cmsbuild authored Aug 31, 2024
2 parents 3914bc8 + 364fe07 commit f128481
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PhysicsTools/PatAlgos/plugins/PATTauHybridProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ PATTauHybridProducer::PATTauHybridProducer(const edm::ParameterSet& cfg)
utagJetScoreNames_.push_back(name);
if (UtagPtCorrName_.find(':') != std::string::npos)
UtagPtCorrName_ = UtagPtCorrName_.substr(UtagPtCorrName_.find(':') + 1);
// GenJet matching
if (addGenJetMatch_) {
genJetMatchToken_ =
consumes<edm::Association<reco::GenJetCollection>>(cfg.getParameter<edm::InputTag>("genJetMatch"));
}
}
// GenJet matching
if (addGenJetMatch_) {
genJetMatchToken_ =
consumes<edm::Association<reco::GenJetCollection>>(cfg.getParameter<edm::InputTag>("genJetMatch"));
}

produces<std::vector<pat::Tau>>();
Expand Down

0 comments on commit f128481

Please sign in to comment.