diff --git a/Modules/TOF/src/TrendingCalibLHCphase.cxx b/Modules/TOF/src/TrendingCalibLHCphase.cxx index 0397a3e3e6..bc14c8b344 100644 --- a/Modules/TOF/src/TrendingCalibLHCphase.cxx +++ b/Modules/TOF/src/TrendingCalibLHCphase.cxx @@ -92,7 +92,7 @@ void TrendingCalibLHCphase::finalize(Trigger t, framework::ServiceRegistryRef) void TrendingCalibLHCphase::trendValues(const Trigger& t, repository::DatabaseInterface& ccdb) { - mTime = t.timestamp / 1000; + mTime = t.activity.mValidity.getMax() / 1000; mMetaData.runNumber = t.activity.mId; mPhase = 0.; @@ -215,4 +215,4 @@ void TrendingCalibLHCphase::generatePlots() ILOG(Error, Devel) << "Could not get the htemp histogram of the plot '" << plot.name << "'." << ENDM; } } -} \ No newline at end of file +}