Skip to content

Commit e3deb22

Browse files
mcoquet642Maurice Coquet
andauthored
[PWGDQ] Adding protection to dqEfficiency_withAssoc for empty TF (#13393)
Co-authored-by: Maurice Coquet <mcoquet@alicecerno2.cern.ch>
1 parent 8cb7673 commit e3deb22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,10 @@ struct AnalysisSameEventPairing {
17251725
template <bool TTwoProngFitter, int TPairType, uint32_t TEventFillMap, uint32_t TTrackFillMap, typename TEvents, typename TTrackAssocs, typename TTracks>
17261726
void runSameEventPairing(TEvents const& events, Preslice<TTrackAssocs>& preslice, TTrackAssocs const& assocs, TTracks const& /*tracks*/, ReducedMCEvents const& /*mcEvents*/, ReducedMCTracks const& /*mcTracks*/)
17271727
{
1728+
if (events.size() == 0) {
1729+
LOG(warning) << "No events in this TF, going to the next one ...";
1730+
return;
1731+
}
17281732
if (fCurrentRun != events.begin().runNumber()) {
17291733
initParamsFromCCDB(events.begin().timestamp(), TTwoProngFitter);
17301734
fCurrentRun = events.begin().runNumber();

0 commit comments

Comments
 (0)