Skip to content

Commit e1dd89d

Browse files
wiechulashahor02
authored andcommitted
add time bin to data header
1 parent 50a1ef5 commit e1dd89d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

DataFormats/Detectors/TPC/include/DataFormatsTPC/ZeroSuppressionLinkBased.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/// \file ZeroSuppressionLinkBased.h
1212
/// \brief definitions to deal with the link based zero suppression format
13-
/// \author Jens Wiechula
13+
/// @author Jens Wiechula, Jens.Wiechula@ikf.uni-frankfurt.de
1414

1515
#ifndef ALICEO2_DATAFORMATSTPC_ZeroSuppressionLinkBased_H
1616
#define ALICEO2_DATAFORMATSTPC_ZeroSuppressionLinkBased_H
@@ -29,7 +29,7 @@ static constexpr uint32_t DataWordSizeBytes = DataWordSizeBits / 8; ///< size of
2929

3030
/// header definition of the zero suppressed link based data format
3131
struct Header {
32-
static constexpr uint32_t MagicWord = 0xFC000000;
32+
static constexpr uint32_t MagicWord = 0xFC;
3333

3434
union {
3535
uint64_t word0 = 0; ///< lower 64 bits
@@ -44,7 +44,8 @@ struct Header {
4444
uint64_t bitMaskHigh : 16; ///< higher bits of the 80 bit bitmask
4545
uint32_t bunchCrossing : 12; ///< bunch crossing number
4646
uint32_t numWordsPayload : 4; ///< number of 128bit words with 12bit ADC values
47-
uint32_t magicWord : 32; ///< not used
47+
uint32_t timeBin : 24; ///< time bin number issues by UL, mainly for debugging, since it might wrap
48+
uint32_t magicWord : 8; ///< not used
4849
};
4950
};
5051

0 commit comments

Comments
 (0)