diff --git a/Appl/CEP/CS1/CS1_DelayCompensation/src/WH_DelayCompensation.cc b/Appl/CEP/CS1/CS1_DelayCompensation/src/WH_DelayCompensation.cc index 281111d455c426e76fae26c179e57879e5d490c1..95503eccdb1072901d0650b3dc75886d04a94fe3 100644 --- a/Appl/CEP/CS1/CS1_DelayCompensation/src/WH_DelayCompensation.cc +++ b/Appl/CEP/CS1/CS1_DelayCompensation/src/WH_DelayCompensation.cc @@ -90,7 +90,6 @@ namespace LOFAR void WH_DelayCompensation::preprocess() { LOG_TRACE_LIFETIME(TRACE_LEVEL_FLOW, ""); - itsLoopCount = 0; // Create the AMC converter. @@ -110,15 +109,15 @@ namespace LOFAR void WH_DelayCompensation::process() { - // Start by incrementing the loop count - itsLoopCount++; - - LOG_TRACE_LIFETIME_STR(TRACE_LEVEL_FLOW, "count = " << itsLoopCount); // Calculate the delays for the epoch after the end of the current time // interval. Put the results in itsDelaysAtBegin and itsDelaysAfterEnd. calculateDelays(); - + + // Incrementing the loop count + LOG_TRACE_LIFETIME_STR(TRACE_LEVEL_FLOW, "count = " << itsLoopCount); + itsLoopCount++; + // The delays -- split into a coarse (sample) delay and a fine // (subsample) delay -- need to be put into a DelayInfo struct. vector<DH_Delay::DelayInfo> delayInfo(itsNrDelays); @@ -163,7 +162,6 @@ namespace LOFAR void WH_DelayCompensation::postprocess() { LOG_TRACE_LIFETIME(TRACE_LEVEL_FLOW, ""); - // Delete the AMC converter ASSERT(itsConverter); delete itsConverter;