From 70171f65c94f19f7fc94eb86f39586838deb4d7a Mon Sep 17 00:00:00 2001 From: wiechula Date: Thu, 19 Oct 2023 11:31:09 +0200 Subject: [PATCH] only throw if there is data, but not all received --- Modules/TPC/src/Utility.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/TPC/src/Utility.cxx b/Modules/TPC/src/Utility.cxx index fccbc1736e..13a77a7c1b 100644 --- a/Modules/TPC/src/Utility.cxx +++ b/Modules/TPC/src/Utility.cxx @@ -108,6 +108,7 @@ std::unique_ptr clusterHandler(o2::f } unsigned long recvMask = 0; + bool hasData = false; for (auto const& ref : o2::framework::InputRecordWalker(inputs, filter)) { auto const* sectorHeader = o2::framework::DataRefUtils::getHeader(ref); if (sectorHeader == nullptr) { @@ -122,8 +123,9 @@ std::unique_ptr clusterHandler(o2::f } recvMask |= (sectorHeader->sectorBits & tpcSectorMask); retVal->internal.inputrefs[sector].data = ref; + hasData = true; } - if (recvMask != tpcSectorMask) { + if (hasData && (recvMask != tpcSectorMask)) { throw std::runtime_error("Incomplete set of clusters/digits received"); }