Skip to content

Commit d325902

Browse files
committed
Dont require 16B words for RORC detectors in RawFileWriter
1 parent dfe9e30 commit d325902

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Detectors/Raw/src/RawFileWriter.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ RawFileWriter::LinkData& RawFileWriter::registerLink(uint16_t fee, uint16_t cru,
159159
void RawFileWriter::addData(uint16_t feeid, uint16_t cru, uint8_t lnk, uint8_t endpoint, const IR& ir, const gsl::span<char> data, bool preformatted, uint32_t trigger)
160160
{
161161
// add payload to relevant links
162-
if (data.size() % RDHUtils::GBTWord) {
162+
if (isCRUDetector() && (data.size() % RDHUtils::GBTWord)) {
163163
LOG(ERROR) << "provided payload size " << data.size() << " is not multiple of GBT word size";
164164
throw std::runtime_error("payload size is not mutiple of GBT word size");
165165
}

0 commit comments

Comments
 (0)