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

fix: bmtf: Change filled orbit size


Tweaked BMTF's GetOrbitSizeInBytes() to reserve 8 bytes for each
existing stub, plus 3 words for each filled BX.

Fixes issue #64.

Co-authored-by: default avatarGiovanna Lazzari Miotto <giovanna.lazzari.miotto@cern.ch>
Co-authored-by: default avatarRocco Ardino <rocco.ardino@cern.ch>
parent 1e53a126
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,8 @@ class BmtfOrbitProcessor : public OrbitProcessor {
}
inline uint32_t GetOrbitSizeInBytes(const FillOrbitMetadata &meta) const override {
return GetPacketSize() * meta.filled_bxs;
// Each BX requires 3 words (12 bytes); each stub takes 8 bytes
return 12 * meta.filled_bxs + 8 * meta.counts;
}
};
......
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