@@ -136,7 +136,7 @@ class TPCDistributeIDCSpec : public o2::framework::Task
136136 // check which buffer to use for current incoming data
137137 const bool currentBuffer = (tf > mTFEnd [mBuffer ]) ? !mBuffer : mBuffer ;
138138 if (mTFStart [currentBuffer] > tf) {
139- LOGP (info , " all CRUs for current TF {} already received . Skipping this TF" , tf);
139+ LOGP (warning , " Current TF {} is older than start of currentBuffer {} . Skipping this TF" , tf, mTFStart [currentBuffer] );
140140 return ;
141141 }
142142
@@ -154,6 +154,7 @@ class TPCDistributeIDCSpec : public o2::framework::Task
154154 }
155155
156156 if (mProcessedCRU [currentBuffer][relTF] == mCRUs .size ()) {
157+ LOGP (warning, " All CRUs for current TF {} (relTF {}) already received. Skipping this TF" , tf, relTF);
157158 return ;
158159 }
159160
@@ -181,6 +182,7 @@ class TPCDistributeIDCSpec : public o2::framework::Task
181182 }
182183
183184 if (mProcessedCRUs [currentBuffer][relTF][cru]) {
185+ LOGP (warning, " CRU {} for current TF {} (relTF {}) already processed. Skipping ..." , cru, tf, relTF);
184186 continue ;
185187 } else {
186188 // count total number of processed CRUs for given TF
@@ -291,19 +293,19 @@ class TPCDistributeIDCSpec : public o2::framework::Task
291293 void checkIntervalsForMissingData (o2::framework::ProcessingContext& pc, const bool currentBuffer, const long relTF, const unsigned int currentOutLane, const uint32_t tf)
292294 {
293295 if (!(mProcessedTotalData ++ % mCheckEveryNData )) {
294- LOGP (info , " Checking for dropped packages..." );
296+ LOGP (detail , " Checking for dropped packages..." );
295297
296298 // if last buffer has smaller time range check the whole last buffer
297299 if ((mTFStart [currentBuffer] > mTFStart [!currentBuffer]) && (relTF > mNTFsDataDrop )) {
298- LOGP (warning, " checking last buffer from {} to {}" , mStartNTFsDataDrop [!currentBuffer], mProcessedCRU [!currentBuffer].size ());
300+ LOGP (warning, " Checking last buffer from relTF {} to {}" , mStartNTFsDataDrop [!currentBuffer], mProcessedCRU [!currentBuffer].size ());
299301 const unsigned int lastLane = (currentOutLane == 0 ) ? (mOutLanes - 1 ) : (currentOutLane - 1 );
300302 checkMissingData (pc, !currentBuffer, mStartNTFsDataDrop [!currentBuffer], mProcessedCRU [!currentBuffer].size (), lastLane);
301- LOGP (info , " All empty TFs for TF {} for current buffer filled with dummy and sent. Clearing buffer" , tf );
303+ LOGP (warning , " All empty TFs of last buffer [{}, {}] filled with dummy and sent, triggered by data from TF {} (relTF {}) . Clearing buffer" , mTFStart [!currentBuffer], mTFEnd [!currentBuffer], tf, relTF );
302304 finishInterval (pc, lastLane, !currentBuffer, tf);
303305 }
304306
305307 const int tfEndCheck = std::clamp (static_cast <int >(relTF) - mNTFsDataDrop , 0 , static_cast <int >(mProcessedCRU [currentBuffer].size ()));
306- LOGP (info , " checking current buffer from {} to {}" , mStartNTFsDataDrop [currentBuffer], tfEndCheck);
308+ LOGP (detail , " Checking current buffer from relTF {} to {}" , mStartNTFsDataDrop [currentBuffer], tfEndCheck);
307309 checkMissingData (pc, currentBuffer, mStartNTFsDataDrop [currentBuffer], tfEndCheck, currentOutLane);
308310 mStartNTFsDataDrop [currentBuffer] = tfEndCheck;
309311 }
@@ -313,7 +315,7 @@ class TPCDistributeIDCSpec : public o2::framework::Task
313315 {
314316 for (int iTF = startTF; iTF < endTF; ++iTF) {
315317 if (mProcessedCRU [currentBuffer][iTF] != mCRUs .size ()) {
316- LOGP (warning, " CRUs for lane {} rel. TF: {} curr TF {} are missing! Processed {} CRUs out of {}" , outLane, iTF, mTFStart [currentBuffer] + iTF, mProcessedCRU [currentBuffer][iTF], mCRUs .size ());
318+ LOGP (warning, " CRUs for lane {} rel. TF: {} curr TF {} are missing! Processed {} CRUs out of {}" , outLane, iTF, mTFStart [currentBuffer] + static_cast < long >( iTF) * mNTFsBuffer + mNTFsBuffer - 1 , mProcessedCRU [currentBuffer][iTF], mCRUs .size ());
317319 ++mProcessedTFs [currentBuffer];
318320 mProcessedCRU [currentBuffer][iTF] = mCRUs .size ();
319321
@@ -341,7 +343,7 @@ class TPCDistributeIDCSpec : public o2::framework::Task
341343 }
342344 }
343345
344- LOGP (info, " All TFs {} for current buffer received . Clearing buffer" , tf);
346+ LOGP (info, " All TFs for buffer [{}, {}] received at data from TF {} . Clearing buffer" , mTFStart [buffer], mTFEnd [buffer] , tf);
345347 clearBuffer (buffer);
346348 mStartNTFsDataDrop [buffer] = 0 ;
347349 mSendOutputStartInfo [buffer] = true ;
0 commit comments