OpenIntervals

From Mu2eWiki
Jump to navigation Jump to search

Introduction

As explained more in ConditionsData, the standard conditions database has "closed intervals". When a calibration is assigned to run range, the range must have a beginning and an end. If an executable attempts to retrieve calibrations outside the known intervals, the job throws an error. This style require close maintenance, but allows precise control and reproducibility of conditions.

The "open intervals" style reduces the reproducibility but is simpler to maintain. In this style, calibrations are typically assigned an open run range. The interval starts from a given run when the calibration was created, but there is no end to the interval. Requests for calibrations for future runs will be matched to last open interval. At some point in the future a new calibration is created, a new open interval is added, and this calibration takes over as the valid content for future runs. The order that calibrations are stored to the database is important because the later entry (containing the requested run) overrides the earlier entry. If a patch is required, it is added with a start and end declaring the patch period. Since this is the last entry, it takes precedence for the patch period.

Examples