Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protect against and diagnose OrbitReset issues #7622

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Protect against and diagnose OrbitReset issues #7622

merged 2 commits into from
Sep 10, 2024

Conversation

mpuccio
Copy link
Collaborator

@mpuccio mpuccio commented Sep 9, 2024

This change adds the caching of the start-of-run and end-of-run timestamps
in addition to the orbit-reset timestamp. It also validates that the
calculated timestamp is within the run duration before adding it to the
timestamp table. This ensures that only valid timestamps are used,
improving the reliability of the data.

This change adds the caching of the start-of-run and end-of-run timestamps
in addition to the orbit-reset timestamp. It also validates that the
calculated timestamp is within the run duration before adding it to the
timestamp table. This ensures that only valid timestamps are used,
improving the reliability of the data.
The changes introduce a new configurable option `fatalOnInvalidTimestamp` that allows the user to control the behavior when the timestamp information is not available in the CCDB. When set to `true`, the task will generate a fatal error, otherwise it will just log a warning. This gives the user more control over how to handle invalid timestamps.

Additionally, the commit clarifies the meaning of the SOR/EOR timestamps, indicating that they can represent the start/end of the run, or the start/end of the sub-timeframe, depending on the run type.
@mpuccio
Copy link
Collaborator Author

mpuccio commented Sep 9, 2024

Hi @chiarazampolli : I would still keep the same behaviour to avoid issues with the analysers, so I put a configurable that regulates the "fatalisation" on invalid BCs. As Ruben saw in the AO2Ds for the other run, we might have a few spurious BCs, but if they are not referred by other tables there is no point in issuing a fatal here. The users of the timestamp should be aware and avoid relying blindly on this information, as it might be corrupted (see the fix to the event selection in #7618 )

Copy link
Contributor

@jgrosseo jgrosseo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me this is fine.

@ddobrigk Any comments from your side?

@jgrosseo jgrosseo merged commit 95969a3 into master Sep 10, 2024
11 checks passed
@jgrosseo jgrosseo deleted the timestamp branch September 10, 2024 20:51
fchinu pushed a commit to fchinu/O2Physics that referenced this pull request Sep 18, 2024
* Protect against and diagnose OrbitReset issues

This change adds the caching of the start-of-run and end-of-run timestamps
in addition to the orbit-reset timestamp. It also validates that the
calculated timestamp is within the run duration before adding it to the
timestamp table. This ensures that only valid timestamps are used,
improving the reliability of the data.

* Add configurable option to make invalid timestamps fatal

The changes introduce a new configurable option `fatalOnInvalidTimestamp` that allows the user to control the behavior when the timestamp information is not available in the CCDB. When set to `true`, the task will generate a fatal error, otherwise it will just log a warning. This gives the user more control over how to handle invalid timestamps.

Additionally, the commit clarifies the meaning of the SOR/EOR timestamps, indicating that they can represent the start/end of the run, or the start/end of the sub-timeframe, depending on the run type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants