Skip to content

Commit

Permalink
Add RDHv7 to the list of known versions
Browse files Browse the repository at this point in the history
  • Loading branch information
martenole committed Apr 11, 2023
1 parent 7861fd2 commit 06614ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/ReadoutDataModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ using RDHv3Reader = RDHReaderImpl<o2::header::RAWDataHeaderV4>; // V4 and V3 are
using RDHv4Reader = RDHReaderImpl<o2::header::RAWDataHeaderV4>; // V4 and V3 are equivalent?
using RDHv5Reader = RDHReaderImpl<o2::header::RAWDataHeaderV5>;
using RDHv6Reader = RDHReaderImpl<o2::header::RAWDataHeaderV6>;
using RDHv7Reader = RDHReaderImpl<o2::header::RAWDataHeaderV7>;

class RDHReader {
// NOTE: This must be set in the Init() phase. Logical program error otherwise.
Expand Down Expand Up @@ -219,8 +220,11 @@ class RDHReader {
case 6:
sRDHReader = std::make_unique<RDHv6Reader>();
break;
case 7:
sRDHReader = std::make_unique<RDHv7Reader>();
break;
default:
EDDLOG("Unknown RDH version! version={} Supported versions are RDHv3, RDHv4, RDHv5, and RDHv6", pVer);
EDDLOG("Unknown RDH version! version={} Supported versions are RDHv3, RDHv4, RDHv5, RDHv6, and RDHv7", pVer);
throw std::runtime_error("Unknown RDH version");
break;
}
Expand Down

0 comments on commit 06614ef

Please sign in to comment.