Skip to content

Commit 1ae9691

Browse files
TPC: Adding check for empty IDCs
1 parent 8662a04 commit 1ae9691

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
@@ -253,6 +253,11 @@ class TPCFourierTransformAggregatorSpec : public o2::framework::Task
253253
void makeTPCScaler(DataAllocator& output, const bool eos)
254254
{
255255
LOGP(info, "Making TPC scalers");
256+
if (mTPCScalerCont.idcs.empty()) {
257+
LOGP(warning, "No IDCs received for TPC scaler creation");
258+
return;
259+
}
260+
256261
// check if IDC scalers can be created - check length of continous received IDCs
257262
std::vector<std::pair<long, long>> times;
258263
times.reserve(mTPCScalerCont.idcs.size());

0 commit comments

Comments
 (0)