Skip to content
Snippets Groups Projects
Commit ca429f1f authored by Giovanna Lazzari Miotto's avatar Giovanna Lazzari Miotto :mushroom:
Browse files

ref: Sweep lumi indices to lumisection metadata

parent 4446e843
No related branches found
No related tags found
1 merge request!107Draft: ref: output: Rewrite sink functionality
Pipeline #7850980 passed
......@@ -52,7 +52,10 @@ struct LumisectionMetadata {
: max_index(max_index_per_ls) {}
void UpdateIndex(uint32_t global_index) {
assert(lumisection == (global_index / (max_index + 1) + 1));
std::cout << "Lumisection = " << lumisection << ", index = " << index_in_lumisection
<< std::endl;
std::cout << "New LS = " << (global_index / (max_index + 1) + 1) << ", global index = " << global_index << std::endl;
assert(lumisection == 0 || lumisection == (global_index / (max_index + 1) + 1));
lumisection = global_index / (max_index + 1) + 1;
index_in_lumisection = global_index % (max_index + 1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment