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 +}