Skip to content

Commit 9b38548

Browse files
spulawskSzymon Pulawski
andauthored
FT0: fix return type mismatch in ChannelData getters (int16_t) (#15303)
* FT0: fix type mismatch in ChannelData getters (uint → int) * Additionally fixing mismatch in FV0 --------- Co-authored-by: Szymon Pulawski <spulawsk@h010.nuph.us.edu.pl>
1 parent 1678fd7 commit 9b38548

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

DataFormats/Detectors/FIT/FT0/include/DataFormatsFT0/ChannelData.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ struct ChannelData {
7676
void print() const;
7777
void printLog() const;
7878
[[nodiscard]] uint8_t getChannelID() const { return ChId; }
79-
[[nodiscard]] uint16_t getTime() const { return CFDTime; }
80-
[[nodiscard]] uint16_t getAmp() const { return QTCAmpl; }
79+
[[nodiscard]] int16_t getTime() const { return CFDTime; }
80+
[[nodiscard]] int16_t getAmp() const { return QTCAmpl; }
8181

8282
bool operator==(ChannelData const& other) const
8383
{

DataFormats/Detectors/FIT/FV0/include/DataFormatsFV0/ChannelData.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ struct ChannelData {
7676
void print() const;
7777
void printLog() const;
7878
[[nodiscard]] uint8_t getChannelID() const { return ChId; }
79-
[[nodiscard]] uint16_t getTime() const { return CFDTime; }
80-
[[nodiscard]] uint16_t getAmp() const { return QTCAmpl; }
79+
[[nodiscard]] int16_t getTime() const { return CFDTime; }
80+
[[nodiscard]] int16_t getAmp() const { return QTCAmpl; }
8181

8282
bool operator==(ChannelData const& other) const
8383
{

0 commit comments

Comments
 (0)