Skip to content

Commit 7263f79

Browse files
matthias-kleinerwiechula
authored andcommitted
TPC: Adding check for empty IDCs
1 parent 90267bb commit 7263f79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Detectors/TPC/workflow/include/TPCWorkflow/TPCFourierTransformAggregatorSpec.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ class TPCFourierTransformAggregatorSpec : public o2::framework::Task
257257
void makeTPCScaler(DataAllocator& output, const bool eos)
258258
{
259259
LOGP(info, "Making TPC scalers");
260+
if (mTPCScalerCont.idcs.empty()) {
261+
LOGP(warning, "No IDCs received for TPC scaler creation");
262+
return;
263+
}
264+
260265
// check if IDC scalers can be created - check length of continous received IDCs
261266
std::vector<std::pair<long, long>> times;
262267
times.reserve(mTPCScalerCont.idcs.size());

0 commit comments

Comments
 (0)