mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-17 03:56:47 +02:00
Make block start and stop pulse_id more readable
This commit is contained in:
@@ -107,10 +107,11 @@ ImageMetadataBlock* ImageAssembler::get_metadata_buffer(const uint64_t bunch_id)
|
||||
auto meta_offset = get_metadata_offset(slot_id, 0);
|
||||
const auto meta_offset_step = 1;
|
||||
|
||||
meta_buffer_[slot_id].block_start_pulse_id =
|
||||
bunch_id * BUFFER_BLOCK_SIZE;
|
||||
meta_buffer_[slot_id].block_stop_pulse_id =
|
||||
meta_buffer_->block_start_pulse_id + BUFFER_BLOCK_SIZE - 1;
|
||||
uint64_t start_pulse_id = bunch_id * BUFFER_BLOCK_SIZE;
|
||||
meta_buffer_[slot_id].block_start_pulse_id = start_pulse_id;
|
||||
|
||||
uint64_t stop_pulse_id = start_pulse_id + BUFFER_BLOCK_SIZE - 1;
|
||||
meta_buffer_[slot_id].block_stop_pulse_id = stop_pulse_id;
|
||||
|
||||
for (size_t i_pulse=0; i_pulse < BUFFER_BLOCK_SIZE; i_pulse++) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user