From 50a4e6ddfa0038f18595aaa12df494699547396b Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Wed, 9 Oct 2024 11:50:24 +0200 Subject: [PATCH] Change the order of the loops --- k4FWCore/components/UniqueIDGenSvc.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/k4FWCore/components/UniqueIDGenSvc.cpp b/k4FWCore/components/UniqueIDGenSvc.cpp index cd390e31..cd55f0ab 100644 --- a/k4FWCore/components/UniqueIDGenSvc.cpp +++ b/k4FWCore/components/UniqueIDGenSvc.cpp @@ -35,17 +35,17 @@ size_t UniqueIDGenSvc::getUniqueID(uint32_t evt_num, uint32_t run_num, const std std::bitset combined_bits; - for (size_t i = 0; i < bits64; i++) { - combined_bits[i + bits32 + bits32 + bitsSizeT] = seed_bits[i]; + for (size_t i = 0; i < bitsSizeT; i++) { + combined_bits[i] = name_bits[i]; } for (size_t i = 0; i < bits32; i++) { - combined_bits[i + bits32 + bitsSizeT] = event_num_bits[i]; + combined_bits[i + bitsSizeT] = run_num_bits[i]; } for (size_t i = 0; i < bits32; i++) { - combined_bits[i + bitsSizeT] = run_num_bits[i]; + combined_bits[i + bits32 + bitsSizeT] = event_num_bits[i]; } - for (size_t i = 0; i < bitsSizeT; i++) { - combined_bits[i] = name_bits[i]; + for (size_t i = 0; i < bits64; i++) { + combined_bits[i + bits32 + bits32 + bitsSizeT] = seed_bits[i]; } auto hash = std::hash>{}(combined_bits);