Skip to content

EventIDBase: enable comparison via Run/LBN

Charles Leggett requested to merge leggett/Gaudi:dev/EventIDBase_LBN into master

Enable comparisons of EventIDBase that have just Run/LBN info. Adds SortByRunLumi(), isRunLumi() and setRL() methods. States are no longer unique - can be RunLumi, and LumiEvent (and thus RunEvent), as long as the various data fields are set.

Comparison operator is simplified. Either compare via timestamp, if both objects have it defined, or via Run/LBN/Event in that order using a std::tie. This assumes that both objects have the same set of fields defined, and that a LBN cannot span more than one run.

Merge request reports