Skip to content

Commit

Permalink
add a comment for using getByLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
SanghyunKo committed Mar 7, 2022
1 parent 8bd220e commit eaec248
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Validation/EventGenerator/plugins/LheWeightValidation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ LheWeightValidation::LheWeightValidation(const edm::ParameterSet& iPSet)
void LheWeightValidation::bookHistograms(DQMStore::IBooker& iBook, edm::Run const& iRun, edm::EventSetup const&) {
// check LHE product exists
edm::Handle<LHERunInfoProduct> lheInfo;
// getByToken throws an exception unless we're in the endRun (see https://github.com/cms-sw/cmssw/pull/18499)
iRun.getByLabel(lheLabel_, lheInfo);

if (!lheInfo.isValid())
Expand Down

0 comments on commit eaec248

Please sign in to comment.