Skip to content

Commit d5eab3c

Browse files
committed
[rdh] Update Data Format for RDH v6
1 parent 2760dcd commit d5eab3c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/DataFormat.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,24 @@ uint32_t getOffset(const char* data)
5757
return Utilities::getBits(getWord(data, 2), 0, 15); //bits #[64-79] from RDH word 0
5858
}
5959

60+
uint32_t getOrbit(const char* data)
61+
{
62+
return Utilities::getBits(getWord(data, 5), 0, 31); //bits #[64-95] from RDH word 1
63+
}
64+
6065
uint32_t getTriggerType(const char* data)
6166
{
62-
return Utilities::getBits(getWord(data, 9), 0, 31); //bits #[32-63] from RDH word 2
67+
return Utilities::getBits(getWord(data, 8), 0, 31); //bits #[0-31] from RDH word 3
6368
}
6469

6570
uint32_t getPagesCounter(const char* data)
6671
{
67-
return Utilities::getBits(getWord(data, 13), 8, 23); //bits #[40-55] from RDH word 3
72+
return Utilities::getBits(getWord(data, 9), 0, 15); //bits #[40-55] from RDH word 3
73+
}
74+
75+
uint32_t getBunchCrossing(const char* data)
76+
{
77+
return Utilities::getBits(getWord(data, 4), 0, 31);
6878
}
6979

7080
/// Get header size in bytes

0 commit comments

Comments
 (0)