11#ifndef ALICEO2_BCRANGE_H
12#define ALICEO2_BCRANGE_H
73 return a.first < b.first;
79 template <
typename BCs>
88 uint64_t nNotCompBCs = 0;
89 uint64_t ilast = 1, inext;
93 nNotCompBCs += (inext - ilast);
95 nNotCompBCs += (inext - ilast - 1);
99 auto bclast = bcs.rawIteratorAt(bcs.size());
100 nNotCompBCs += (bclast.globalIndex() - ilast);
101 LOGF(
debug,
"Number of BCs not in range of compatible BCs: %i", nNotCompBCs);
116 std::vector<limits> tmpList;
117 uint64_t ifirst = 0, ilast = 0;
127 ifirst = iter->first;
128 ilast = iter->second;
132 if (iter->first > (ilast + 1)) {
134 tmpList.push_back(
limits(ifirst, ilast));
135 ifirst = iter->first;
136 ilast = iter->second;
138 if (iter->second > ilast) {
139 ilast = iter->second;
143 tmpList.push_back(
limits(ifirst, ilast));
152 template <
typename BCs>
153 void compact(BCs bcs, Double_t fillFac,
bool toForce =
false)
162 auto nBCs = bcs.size();
166 auto nToAdd = (uint64_t)(nNotCompBCs * fillFac);
170 uint64_t ifirst = (nBCs - nToAdd) / 2;
171 uint64_t ilast = ifirst + nToAdd - 1;
189 for (
auto ii = 0; ii < nr; ii++) {
211 return (index >= a.first) && (index <= a.second);
GLboolean GLboolean GLboolean b
GLuint GLsizei const GLchar * label
GLboolean GLboolean GLboolean GLboolean a
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...