12#ifndef AliceO2_TPC_FECInfo_H
13#define AliceO2_TPC_FECInfo_H
35 unsigned char sampaChip,
36 unsigned char sampaChannel)
37 : mIndex(
index), mSampaChip(sampaChip), mSampaChannel(sampaChannel)
41 unsigned char getIndex()
const {
return mIndex; }
50 return mIndex ==
other.mIndex &&
51 (mSampaChip ==
other.mSampaChip && mSampaChannel ==
other.mSampaChannel);
84 if (mIndex <
other.mIndex) {
87 if (mSampaChip <
other.mSampaChip) {
90 if (mSampaChip ==
other.mSampaChip && mSampaChannel <
other.mSampaChannel) {
97 std::ostream&
print(std::ostream& out)
const;
99 unsigned char mIndex{0};
100 unsigned char mSampaChip{0};
101 unsigned char mSampaChannel{0};
static constexpr int FECsTotal
static constexpr int ChannelsPerSAMPA
static constexpr int channelFromFECChannel(const int fecChannel)
calculate the sampa channel number from the channel number on the FEC (0-159)
static constexpr int FECsPerSector
static constexpr int channelOnSAMPA(const int globalSAMPAId)
static constexpr int SAMPAsPerFEC
FECInfo(unsigned char index, unsigned char sampaChip, unsigned char sampaChannel)
static constexpr int ChannelsPerFEC
static void sampaInfo(const int globalSAMPAId, int &fecInSector, int &sampaOnFEC, int &channelOnSAMPA)
static constexpr int sampaFromFECChannel(const int fecChannel)
calculate the sampa number from the channel number on the FEC (0-159)
unsigned char getSampaChannel() const
bool operator<(const FECInfo &other) const
smaller operator
static constexpr int sampaOnFEC(const int globalSAMPAId)
unsigned char getIndex() const
unsigned char getFECChannel() const
bool operator==(const FECInfo &other) const
equal operator
static constexpr int fecInSector(const int globalSAMPAId)
unsigned char getSampaChip() const
friend std::ostream & operator<<(std::ostream &out, const FECInfo &fec)
static constexpr int globalSAMPAId(const int fecInSector, const int sampaOnFEC, const int channelOnSAMPA)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other