Skip to content

Commit

Permalink
Correct exception messages to match with actual class name
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluj committed Oct 25, 2023
1 parent 3cbc2d7 commit 0cffcda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions RecoTauTag/HLTProducers/src/TauTagFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ class TauTagFilter : public HLTFilter {
tauPtCorr = &event.get(tauPtCorrToken_);

if (taus.size() != tauTags.size())
throw cms::Exception("Inconsistent Data", "PNetTauTagFilter::hltFilter") << "taus.size() != tauTags.size()";
throw cms::Exception("Inconsistent Data", "TauTagFilter::hltFilter") << "taus.size() != tauTags.size()";
if (usePtCorr_ && taus.size() != tauPtCorr->size())
throw cms::Exception("Inconsistent Data", "PNetTauTagFilter::hltFilter") << "taus.size() != tauPtCorr.size()";
throw cms::Exception("Inconsistent Data", "TauTagFilter::hltFilter") << "taus.size() != tauPtCorr.size()";

for (size_t tau_idx = 0; tau_idx < taus.size(); ++tau_idx) {
const auto& tau = taus[tau_idx];
Expand Down Expand Up @@ -133,7 +133,7 @@ class TauTagFilter : public HLTFilter {
} else if (seedType == trigger::TriggerJet) {
extractMomenta<std::vector<reco::PFJetRef>>(seeds, seedType, seed_p4s);
} else
throw cms::Exception("Invalid seed type", "PNetTauTagFilter::hltFilter")
throw cms::Exception("Invalid seed type", "TauTagFilter::extractMomenta")
<< "Unsupported seed type: " << seedType;
}
}
Expand Down
2 changes: 1 addition & 1 deletion RecoTauTag/RecoTau/interface/TauWPThreshold.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ namespace tau {
};
} // namespace tau

#endif
#endif

0 comments on commit 0cffcda

Please sign in to comment.