Skip to content

Commit 28e1f2e

Browse files
hahassan7shahor02
authored andcommitted
[EMCAL-650] Split payload per SRU link
1 parent 21a954d commit 28e1f2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Detectors/EMCAL/simulation/src/RawWriter.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ bool RawWriter::processTrigger(const o2::emcal::TriggerRecord& trg)
112112

113113
// Create and fill DMA pages for each channel
114114
std::cout << "encode data" << std::endl;
115-
std::vector<char> payload;
116115
for (auto srucont : mSRUdata) {
117116

117+
std::vector<char> payload; // this must be initialized per SRU, becuase pages are per SRU, therefore the payload was not reset.
118+
118119
for (const auto& [tower, channel] : srucont.mChannels) {
119120
// Find out hardware address of the channel
120121
auto hwaddress = mMappingHandler->getMappingForDDL(srucont.mSRUid).getHardwareAddress(channel.mRow, channel.mCol, ChannelType_t::HIGH_GAIN); // @TODO distinguish between high- and low-gain cells

0 commit comments

Comments
 (0)