10 startEventID_(0U, 0U,
EventID::maxEventNumber()),
11 endEventID_(0U, 0U,
EventID::maxEventNumber()) {}
20 startEventID_(startRun, startLumi, startEvent != 0 ? startEvent :
EventID::maxEventNumber()),
21 endEventID_(endRun, endLumi, endEvent != 0 ? endEvent :
EventID::maxEventNumber()) {
22 assert((startLumi == 0) == (endLumi == 0));
75 bool mergeSpecial(EventRange&
lh, EventRange& rh) {
77 if ((lh.startLumi() == 0) != (rh.startLumi() == 0)) {
81 EventID
begin =
min(lh.startEventID(), rh.startEventID());
82 EventID
end =
max(lh.endEventID(), rh.endEventID());
83 rh = lh = EventRange(begin, end);
89 bool sortByStartEventIDSpecial(EventRange
const& lh, EventRange
const& rh) {
91 if ((lh.startLumi() == 0) != (rh.startLumi() == 0)) {
92 return lh.startLumi() == 0;
94 return lh.startEventID() < rh.startEventID();
99 if (eventRange.size() <= 1U)
101 sort_all(eventRange, sortByStartEventIDSpecial);
102 for (std::vector<EventRange>::iterator
i = eventRange.begin() + 1,
e = eventRange.end();
i !=
e; ++
i) {
103 std::vector<EventRange>::iterator iprev =
i - 1;
104 if (mergeSpecial(*iprev, *
i)) {
105 i = eventRange.erase(iprev);
106 e = eventRange.end();
EventNumber_t event() const
bool contains(EventRange const &lh, EventID const &rh)
unsigned long long EventNumber_t
RunNumber_t startRun() const
unsigned int LuminosityBlockNumber_t
bool distinct(EventRange const &lh, EventRange const &rh)
RunNumber_t endRun() const
EventID startEventID() const
bool lessThanSpecial(EventRange const &lh, EventRange const &rh)
EventNumber_t endEvent() const
EventID endEventID() const
EventID const & min(EventID const &lh, EventID const &rh)
void sort_all(RandomAccessSequence &s)
wrappers for std::sort
LuminosityBlockNumber_t endLumi() const
bool contains_(EventRange const &lh, EventID const &rh)
EventNumber_t startEvent() const
bool overlaps(EventRange const &lh, EventRange const &rh)
LuminosityBlockNumber_t startLumi() const
std::vector< EventRange > & sortAndRemoveOverlaps(std::vector< EventRange > &eventRange)
bool lessThan(EventRange const &lh, EventRange const &rh)
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
EventID const & max(EventID const &lh, EventID const &rh)