33 if (rofs.empty() || timing.mROFLength == 0) {
38 const int64_t end = rofs.back().getBCData().differenceInBC(
origin) +
offset + timing.mROFLength + timing.mROFAddTimeErr;
39 if (begin >=
end ||
end > std::numeric_limits<o2::its::TimeStampType>::max()) {
52 if (collision.isDummy() || window.lower() >= window.upper() || duration == 0) {
55 const auto begin = collision.differenceInBC(
origin);
56 const auto end = begin + duration;
57 if (
end <= window.lower() || begin >= window.upper() ||
end <= 0) {
61 const auto clippedBegin = std::max(
int64_t{0}, begin);
62 if (
end > std::numeric_limits<o2::its::TimeStampType>::max()) {
65 return o2::its::TimeEstBC{
static_cast<uint32_t
>(clippedBegin),
static_cast<uint32_t
>(
end - clippedBegin)};