Skip to content

Commit d574656

Browse files
Add LogWarning in OnlineBeamSpotESProducer::checkSingleBS
1 parent f6e0fc4 commit d574656

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ const BeamSpotOnlineObjects* OnlineBeamSpotESProducer::checkSingleBS(const BeamS
145145
if (diffBStime1 < limitTime && isGoodBS(bs1)) {
146146
return bs1;
147147
} else {
148+
edm::LogWarning("OnlineBeamSpotESProducer") << "Defaulting to fake (fallback to PCL) because the only payload "
149+
"is either too old or does not pass the fit sanity checks";
148150
return nullptr;
149151
}
150152
}
@@ -179,7 +181,7 @@ std::shared_ptr<const BeamSpotObjects> OnlineBeamSpotESProducer::produce(const B
179181
return std::shared_ptr<const BeamSpotObjects>(best, edm::do_nothing_deleter());
180182
}
181183
edm::LogWarning("OnlineBeamSpotESProducer")
182-
<< "None of the Online BeamSpots in the ES is suitable, \n returning a fake one(fallback to PCL).";
184+
<< "None of the Online BeamSpots in the ES is suitable, \n returning a fake one (fallback to PCL).";
183185
return std::shared_ptr<const BeamSpotObjects>(&fakeBS_, edm::do_nothing_deleter());
184186
}
185187

0 commit comments

Comments
 (0)