Skip to content

Commit

Permalink
Merge pull request #42205 from mmusich/fixPVValidation_phase
Browse files Browse the repository at this point in the history
[13.0.X] fix assignment of `PVValHelper::phase` in `PrimaryVertexValidation`
  • Loading branch information
cmsbuild authored Jul 8, 2023
2 parents baf8989 + 361d70e commit 4d1f0fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2613,6 +2613,7 @@ void PrimaryVertexValidation::beginRun(edm::Run const& iRun, edm::EventSetup con

} else if ((pDD->isThere(GeomDetEnumerators::P1PXB)) || (pDD->isThere(GeomDetEnumerators::P1PXEC))) {
// switch on the phase-1
phase_ = PVValHelper::phase1;
if (debug_) {
edm::LogInfo("PrimaryVertexValidation")
<< " pixel phase1 setup, nLadders: " << nLadders_ << " nModules:" << nModZ_;
Expand All @@ -2637,7 +2638,7 @@ void PrimaryVertexValidation::beginRun(edm::Run const& iRun, edm::EventSetup con
etaOfProbe_ = std::min(etaOfProbe_, PVValHelper::max_eta_phase2);
break;
default:
edm::LogWarning("LogicError") << "Unknown detector phase: " << phase_;
throw cms::Exception("LogicError") << "Unknown detector phase: " << phase_;
}

if (h_etaMax->GetEntries() == 0.) {
Expand Down

0 comments on commit 4d1f0fa

Please sign in to comment.