diff --git a/algo/global/Reco.cxx b/algo/global/Reco.cxx index 432daa35035abdb8e525cf7f81fde80bb6c0a996..9ded3dc0be289c858db1255d9c83cc3a8bebe999 100644 --- a/algo/global/Reco.cxx +++ b/algo/global/Reco.cxx @@ -170,6 +170,9 @@ void Reco::QueueUnpackerMetrics(const fles::Timeslice& ts, const UnpackMonitorDa return d.size() > 0 ? static_cast<double>(sizeBytes(d)) / x : 0.0; }; + size_t tsDelta = ts.index() - prevTsId; + prevTsId = ts.index(); + auto& stsDigis = digis.fData.fSts.fDigis; auto& muchDigis = digis.fData.fMuch.fDigis; auto& tofDigis = digis.fData.fTof.fDigis; @@ -185,6 +188,7 @@ void Reco::QueueUnpackerMetrics(const fles::Timeslice& ts, const UnpackMonitorDa GetMonitor().QueueMetric("cbmreco", {{"hostname", fles::system::current_hostname()}, {"child", Opts().ChildId()}}, { + {"tsIdDelta", tsDelta}, {"unpackTimeTotal", monitor.fTimeUnpack}, {"unpackBytesInSts", monitor.fNumBytesInSts}, {"unpackBytesInMuch", monitor.fNumBytesInMuch}, diff --git a/algo/global/Reco.h b/algo/global/Reco.h index ce048fe559b9e55ba4ff6097134fdfb56cec2783..ac41bb2a94e3d5067a1492db3981d566581daa09 100644 --- a/algo/global/Reco.h +++ b/algo/global/Reco.h @@ -41,6 +41,8 @@ namespace cbm::algo ChainContext fContext; xpu::timings fTimesliceTimesAcc; + size_t prevTsId = 0; + // STS UnpackChain fUnpack; sts::HitfinderChain fStsHitFinder;