File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -427,10 +427,10 @@ struct centralityStudy {
427427
428428 if (doTimeStudies && collision.has_multBC ()) {
429429 auto multbc = collision.template multBC_as <aod::MultBCs>();
430- uint64_t timestamp_ms = multbc.timestamp ();
431- o2::parameters::GRPECSObject* grpo = ccdb->getForTimeStamp <o2::parameters::GRPECSObject>(" GLO/Config/GRPECS" , timestamp_ms );
432- uint64_t timestamp_sor_ms = grpo->getTimeStart ();
433- float hoursAfterStartOfRun = static_cast <float >(timestamp_ms - timestamp_sor_ms ) / 3600000.0 ;
430+ uint64_t bcTimestamp = multbc.timestamp ();
431+ o2::parameters::GRPECSObject* grpo = ccdb->getForTimeStamp <o2::parameters::GRPECSObject>(" GLO/Config/GRPECS" , bcTimestamp );
432+ uint64_t startOfRunTimestamp = grpo->getTimeStart ();
433+ float hoursAfterStartOfRun = static_cast <float >(bcTimestamp - startOfRunTimestamp ) / 3600000.0 ;
434434 histos.fill (HIST (" hFT0AvsTime" ), hoursAfterStartOfRun, collision.multFT0A ());
435435 histos.fill (HIST (" hFT0CvsTime" ), hoursAfterStartOfRun, collision.multFT0C ());
436436 histos.fill (HIST (" hFT0MvsTime" ), hoursAfterStartOfRun, collision.multFT0M ());
You can’t perform that action at this time.
0 commit comments