Skip to content

Commit 24a891e

Browse files
committed
Treat RDHv3 and RDH4
ITS is still using RDH with mentioning v3 but with the format corresponding to v4. So, we enforce the RDHv3 to be treated as RDHv4
1 parent 41d4d6d commit 24a891e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Detectors/Raw/src/HBFUtils.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ bool HBFUtils::checkRDH(const void* rdhP, bool verbose)
126126
int version = (reinterpret_cast<const char*>(rdhP))[0];
127127
bool ok = true;
128128
switch (version) {
129+
case 3:
129130
case 4:
130131
ok = checkRDH(*reinterpret_cast<const o2::header::RAWDataHeaderV4*>(rdhP), verbose);
131132
break;
@@ -178,7 +179,7 @@ bool HBFUtils::checkRDH(const o2::header::RAWDataHeaderV4& rdh, bool verbose)
178179
{
179180
// check if rdh conforms with RDH4 fields
180181
bool ok = true;
181-
if (rdh.version != 4) {
182+
if (rdh.version != 4 && rdh.version != 3) {
182183
if (verbose) {
183184
LOG(ERROR) << "RDH version 4 is expected instead of " << int(rdh.version);
184185
}

0 commit comments

Comments
 (0)