Skip to content

Commit

Permalink
fix assignment of PVValHelper::phase in PrimaryVertexValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Jul 6, 2023
1 parent f3335e8 commit e7e80da
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 e7e80da

Please sign in to comment.