From 0654d953d2d11616049153529b594fa8ac991810 Mon Sep 17 00:00:00 2001 From: Francesca Ercolessi Date: Sat, 25 Oct 2025 10:50:11 +0200 Subject: [PATCH] [TOF] Change time extraction --- Modules/TOF/src/TrendingCalibDiagnostics.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/TOF/src/TrendingCalibDiagnostics.cxx b/Modules/TOF/src/TrendingCalibDiagnostics.cxx index 9181222966..1c9df08cae 100644 --- a/Modules/TOF/src/TrendingCalibDiagnostics.cxx +++ b/Modules/TOF/src/TrendingCalibDiagnostics.cxx @@ -92,7 +92,7 @@ void TrendingCalibDiagnostics::finalize(Trigger t, framework::ServiceRegistryRef void TrendingCalibDiagnostics::trendValues(const Trigger& t, repository::DatabaseInterface& ccdb) { - mTime = t.timestamp / 1000; + mTime = t.activity.mValidity.getMax() / 1000; mMetaData.runNumber = t.activity.mId; mCrateEff = 0.; mTRMEff = 0.; @@ -245,4 +245,4 @@ void TrendingCalibDiagnostics::generatePlots() ILOG(Error, Devel) << "Could not get the htemp histogram of the plot '" << plot.name << "'." << ENDM; } } -} \ No newline at end of file +}