3 #include <FairLogger.h>
22 std::uint8_t channelId,
27 std::uint8_t nrSamples,
29 std::uint64_t fullTime,
30 std::vector<std::int16_t> samples)
31 : fChannelID {channelId}
36 , fNrSamples {nrSamples}
37 , fMultiHit {multiHit}
38 , fFullTime {fullTime}
41 if (fSamples.size() > 32) {
42 LOG(error) <<
"CbmTrdRawMessageSpadic: too many samples in message!";
43 throw std::range_error(
44 "CbmTrdRawMessageSpadic: too many samples in message!");
52 , fElinkID {old.fElinkID}
53 , fCrobId(old.fCrobId)
55 , fHitType {old.fHitType}
56 , fNrSamples {old.fNrSamples}
57 , fMultiHit {old.fMultiHit}
58 , fFullTime {old.fFullTime}
59 , fSamples(old.fSamples) {}
72 LOG(error) <<
"CbmTrdRawMessageSpadic::SetSample() Out of range!";