Skip to content

Commit

Permalink
Fix deprecated enum arithmetics in ElectronConversionRejectionValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Jun 4, 2024
1 parent a9682e8 commit edd0f60
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,16 @@ void ElectronConversionRejectionValidator::bookHistograms(DQMStore::IBooker& ibo

h_convLog10TrailTrackpt_ = ibooker.book1D("convLog10TrailTrackpt", "# of Electrons", ptBin, -2.0, 3.0);

h_convLeadTrackAlgo_ = ibooker.book1D(
"convLeadTrackAlgo", "# of Electrons", reco::TrackBase::algoSize, -0.5, reco::TrackBase::algoSize - 0.5);
h_convTrailTrackAlgo_ = ibooker.book1D(
"convLeadTrackAlgo", "# of Electrons", reco::TrackBase::algoSize, -0.5, reco::TrackBase::algoSize - 0.5);
h_convLeadTrackAlgo_ = ibooker.book1D("convLeadTrackAlgo",
"# of Electrons",
reco::TrackBase::algoSize,
-0.5,
static_cast<double>(reco::TrackBase::algoSize) - 0.5);
h_convTrailTrackAlgo_ = ibooker.book1D("convLeadTrackAlgo",
"# of Electrons",
reco::TrackBase::algoSize,
-0.5,
static_cast<double>(reco::TrackBase::algoSize) - 0.5);
}

void ElectronConversionRejectionValidator::analyze(const edm::Event& e, const edm::EventSetup&) {
Expand Down
7 changes: 5 additions & 2 deletions Validation/RecoEgamma/plugins/PhotonValidator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3126,8 +3126,11 @@ void PhotonValidator::bookHistograms(DQMStore::IBooker& iBooker, edm::Run const&
h_trkProv_[0] = iBooker.book1D("allTrkProv", " Track pair provenance ", 4, 0., 4.);
h_trkProv_[1] = iBooker.book1D("assTrkProv", " Track pair provenance ", 4, 0., 4.);
//
h_trkAlgo_ =
iBooker.book1D("allTrackAlgo", " Track Algo ", reco::TrackBase::algoSize, -0.5, reco::TrackBase::algoSize - 0.5);
h_trkAlgo_ = iBooker.book1D("allTrackAlgo",
" Track Algo ",
reco::TrackBase::algoSize,
-0.5,
static_cast<double>(reco::TrackBase::algoSize) - 0.5);
h_convAlgo_ = iBooker.book1D("allConvAlgo", " Conv Algo ", 5, -0.5, 4.5);
h_convQuality_ = iBooker.book1D("allConvQuality", "Conv quality ", 11, -0.5, 11.);

Expand Down

0 comments on commit edd0f60

Please sign in to comment.