Project
Loading...
Searching...
No Matches
o2::tpc::FECInfo Class Reference

#include <FECInfo.h>

Public Member Functions

 FECInfo ()=default
 
 FECInfo (unsigned char index, unsigned char sampaChip, unsigned char sampaChannel)
 
unsigned char getIndex () const
 
unsigned char getFECChannel () const
 
unsigned char getSampaChip () const
 
unsigned char getSampaChannel () const
 
bool operator== (const FECInfo &other) const
 equal operator
 
bool operator< (const FECInfo &other) const
 smaller operator
 

Static Public Member Functions

static constexpr int globalSAMPAId (const int fecInSector, const int sampaOnFEC, const int channelOnSAMPA)
 
static constexpr int fecInSector (const int globalSAMPAId)
 
static constexpr int sampaOnFEC (const int globalSAMPAId)
 
static constexpr int channelOnSAMPA (const int globalSAMPAId)
 
static constexpr int sampaFromFECChannel (const int fecChannel)
 calculate the sampa number from the channel number on the FEC (0-159)
 
static constexpr int channelFromFECChannel (const int fecChannel)
 calculate the sampa channel number from the channel number on the FEC (0-159)
 
static void sampaInfo (const int globalSAMPAId, int &fecInSector, int &sampaOnFEC, int &channelOnSAMPA)
 

Static Public Attributes

static constexpr int ChannelsPerSAMPA = 32
 
static constexpr int SAMPAsPerFEC = 5
 
static constexpr int ChannelsPerFEC = ChannelsPerSAMPA * SAMPAsPerFEC
 
static constexpr int FECsPerSector = 91
 
static constexpr int FECsTotal = FECsPerSector * 36
 

Friends

std::ostream & operator<< (std::ostream &out, const FECInfo &fec)
 

Detailed Description

Definition at line 22 of file FECInfo.h.

Constructor & Destructor Documentation

◆ FECInfo() [1/2]

o2::tpc::FECInfo::FECInfo ( )
default

◆ FECInfo() [2/2]

o2::tpc::FECInfo::FECInfo ( unsigned char  index,
unsigned char  sampaChip,
unsigned char  sampaChannel 
)
inline

Definition at line 32 of file FECInfo.h.

Member Function Documentation

◆ channelFromFECChannel()

static constexpr int o2::tpc::FECInfo::channelFromFECChannel ( const int  fecChannel)
inlinestaticconstexpr

calculate the sampa channel number from the channel number on the FEC (0-159)

Definition at line 72 of file FECInfo.h.

◆ channelOnSAMPA()

static constexpr int o2::tpc::FECInfo::channelOnSAMPA ( const int  globalSAMPAId)
inlinestaticconstexpr

Definition at line 66 of file FECInfo.h.

◆ fecInSector()

static constexpr int o2::tpc::FECInfo::fecInSector ( const int  globalSAMPAId)
inlinestaticconstexpr

Definition at line 64 of file FECInfo.h.

◆ getFECChannel()

unsigned char o2::tpc::FECInfo::getFECChannel ( ) const
inline

Definition at line 43 of file FECInfo.h.

◆ getIndex()

unsigned char o2::tpc::FECInfo::getIndex ( ) const
inline

Definition at line 41 of file FECInfo.h.

◆ getSampaChannel()

unsigned char o2::tpc::FECInfo::getSampaChannel ( ) const
inline

Definition at line 45 of file FECInfo.h.

◆ getSampaChip()

unsigned char o2::tpc::FECInfo::getSampaChip ( ) const
inline

Definition at line 44 of file FECInfo.h.

◆ globalSAMPAId()

static constexpr int o2::tpc::FECInfo::globalSAMPAId ( const int  fecInSector,
const int  sampaOnFEC,
const int  channelOnSAMPA 
)
inlinestaticconstexpr

Definition at line 56 of file FECInfo.h.

◆ operator<()

bool o2::tpc::FECInfo::operator< ( const FECInfo other) const
inline

smaller operator

Definition at line 82 of file FECInfo.h.

◆ operator==()

bool o2::tpc::FECInfo::operator== ( const FECInfo other) const
inline

equal operator

Definition at line 48 of file FECInfo.h.

◆ sampaFromFECChannel()

static constexpr int o2::tpc::FECInfo::sampaFromFECChannel ( const int  fecChannel)
inlinestaticconstexpr

calculate the sampa number from the channel number on the FEC (0-159)

Definition at line 69 of file FECInfo.h.

◆ sampaInfo()

static void o2::tpc::FECInfo::sampaInfo ( const int  globalSAMPAId,
int fecInSector,
int sampaOnFEC,
int channelOnSAMPA 
)
inlinestatic

Definition at line 74 of file FECInfo.h.

◆ sampaOnFEC()

static constexpr int o2::tpc::FECInfo::sampaOnFEC ( const int  globalSAMPAId)
inlinestaticconstexpr

Definition at line 65 of file FECInfo.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
const FECInfo fec 
)
friend

Definition at line 27 of file FECInfo.cxx.

Member Data Documentation

◆ ChannelsPerFEC

constexpr int o2::tpc::FECInfo::ChannelsPerFEC = ChannelsPerSAMPA * SAMPAsPerFEC
staticconstexpr

Definition at line 27 of file FECInfo.h.

◆ ChannelsPerSAMPA

constexpr int o2::tpc::FECInfo::ChannelsPerSAMPA = 32
staticconstexpr

Definition at line 25 of file FECInfo.h.

◆ FECsPerSector

constexpr int o2::tpc::FECInfo::FECsPerSector = 91
staticconstexpr

Definition at line 28 of file FECInfo.h.

◆ FECsTotal

constexpr int o2::tpc::FECInfo::FECsTotal = FECsPerSector * 36
staticconstexpr

Definition at line 29 of file FECInfo.h.

◆ SAMPAsPerFEC

constexpr int o2::tpc::FECInfo::SAMPAsPerFEC = 5
staticconstexpr

Definition at line 26 of file FECInfo.h.


The documentation for this class was generated from the following files: