Skip to content

Commit

Permalink
bug fix: move intialization genJetMatch token outside loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluj committed Aug 26, 2024
1 parent f6e0fc4 commit 364fe07
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 364fe07

Please sign in to comment.