Skip to content
Snippets Groups Projects
Commit 97e456c0 authored by RoccoA97's avatar RoccoA97
Browse files

Fixing a bug in eta2 assignment for muon processor (introduced during...

Fixing a bug in eta2 assignment for muon processor (introduced during debugging of BX assignment by new aligner in FW)
parent 7b69a732
No related branches found
No related tags found
1 merge request!98Reduce wait time for writing the EoR file
......@@ -25,12 +25,14 @@ int MuonOrbitProcessor::ProcessBlock(MemRegion &readable_block, WriteMemRegion &
const auto pt1 = uint32_t{(bl->mu1f[i] >> shifts::pt) & masks::pt};
const auto pt2 = uint32_t{(bl->mu2f[i] >> shifts::pt) & masks::pt};
// mu.extra is a copy of bl->bx
// mu.extra is a copy of bl->bx with a change to the first bit.
if (((pt1 > 0) || (doZS == 0))) {
bx_data_1.Add({bl->mu1f[i], bl->mu1s[i], bl->bx[i]});
// set bit0 to "0" for first muon
bx_data_1.Add({bl->mu1f[i], bl->mu1s[i], bl->bx[i] &= ~0x1});
}
if (((pt2 > 0) || (doZS == 0))) {
bx_data_2.Add({bl->mu2f[i], bl->mu2s[i], bl->bx[i]});
// set bit0 to "1" for second muon
bx_data_2.Add({bl->mu2f[i], bl->mu2s[i], bl->bx[i] |= 0x1});
}
}
......
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