ATLAS Offline Software
Loading...
Searching...
No Matches
EfexHardwareInfo Class Reference

#include <EfexHardwareInfo.h>

Collaboration diagram for EfexHardwareInfo:

Public Member Functions

 EfexHardwareInfo ()=default
 EfexHardwareInfo (const std::string &efexlabel, int fibre, int inputconnector, const std::string &mpod)
std::string getEFEXLabel () const
int getFibreNumber () const
int getRibbonFibreNumber () const
int getInputConnector () const
int getMpodNumber () const
std::string getMpodLabel () const
bool getValidity () const
void setOverlap (int overlap)
int getOverlap () const
void printInfo () const

Private Attributes

bool m_valid {}
std::string m_efexlabel {"invalid"}
int m_fibre {-1}
int m_inputconnector {-1}
std::string m_mpodlabel {"invalid"}
int m_overlap {}

Detailed Description

Definition at line 9 of file EfexHardwareInfo.h.

Constructor & Destructor Documentation

◆ EfexHardwareInfo() [1/2]

EfexHardwareInfo::EfexHardwareInfo ( )
default

◆ EfexHardwareInfo() [2/2]

EfexHardwareInfo::EfexHardwareInfo ( const std::string & efexlabel,
int fibre,
int inputconnector,
const std::string & mpod )

Definition at line 9 of file EfexHardwareInfo.cxx.

13:m_valid(true), m_efexlabel(efexlabel) , m_fibre(fibre), m_inputconnector(inputconnector),
14m_mpodlabel(mpod),m_overlap(-99)
15{
16}
std::string m_mpodlabel
std::string m_efexlabel

Member Function Documentation

◆ getEFEXLabel()

std::string EfexHardwareInfo::getEFEXLabel ( ) const

Definition at line 17 of file EfexHardwareInfo.cxx.

18{
19 return m_efexlabel;
20}

◆ getFibreNumber()

int EfexHardwareInfo::getFibreNumber ( ) const

Definition at line 21 of file EfexHardwareInfo.cxx.

22{
23 return m_fibre;
24}

◆ getInputConnector()

int EfexHardwareInfo::getInputConnector ( ) const

Definition at line 29 of file EfexHardwareInfo.cxx.

30{
31 return m_inputconnector;
32}

◆ getMpodLabel()

std::string EfexHardwareInfo::getMpodLabel ( ) const

Definition at line 39 of file EfexHardwareInfo.cxx.

40{
41 return m_mpodlabel;
42}

◆ getMpodNumber()

int EfexHardwareInfo::getMpodNumber ( ) const

Definition at line 33 of file EfexHardwareInfo.cxx.

34{
35 int mpodnum = int(m_mpodlabel.at(1)) -48;
36 if (m_mpodlabel.at(0) == 'H') mpodnum += 10;
37 return mpodnum;
38}

◆ getOverlap()

int EfexHardwareInfo::getOverlap ( ) const

Definition at line 51 of file EfexHardwareInfo.cxx.

52{
53 return m_overlap;
54}

◆ getRibbonFibreNumber()

int EfexHardwareInfo::getRibbonFibreNumber ( ) const

Definition at line 25 of file EfexHardwareInfo.cxx.

26{
27 return 11-(m_fibre)%12; // Ribbon fibre # flip (hopefully right!)
28}

◆ getValidity()

bool EfexHardwareInfo::getValidity ( ) const

Definition at line 43 of file EfexHardwareInfo.cxx.

44{
45 return m_valid;
46}

◆ printInfo()

void EfexHardwareInfo::printInfo ( ) const

Definition at line 55 of file EfexHardwareInfo.cxx.

56{
57 std::cout << "EfexHardwareInfo Object:" << std::endl;
58 if(m_valid){
59 std::cout << "EFEX: " << this->getEFEXLabel() << std::endl;
60 std::cout << "Fibre: " << std::to_string(this->getFibreNumber()) << std::endl;
61 std::cout << "Input Connector: " << std::to_string(this->getInputConnector()) << std::endl;
62 std::cout << "MpodLabel: " << this->getMpodLabel() << std::endl;
63 }
64 else{
65 std::cout << "Invalid/Unused Connection" << std::endl;
66 }
67 std::cout << std::endl;
68}
std::string getEFEXLabel() const
int getFibreNumber() const
std::string getMpodLabel() const
int getInputConnector() const

◆ setOverlap()

void EfexHardwareInfo::setOverlap ( int overlap)

Definition at line 47 of file EfexHardwareInfo.cxx.

48{
49 m_overlap = overlap;
50}

Member Data Documentation

◆ m_efexlabel

std::string EfexHardwareInfo::m_efexlabel {"invalid"}
private

Definition at line 33 of file EfexHardwareInfo.h.

33{"invalid"};

◆ m_fibre

int EfexHardwareInfo::m_fibre {-1}
private

Definition at line 34 of file EfexHardwareInfo.h.

34{-1};

◆ m_inputconnector

int EfexHardwareInfo::m_inputconnector {-1}
private

Definition at line 35 of file EfexHardwareInfo.h.

35{-1};

◆ m_mpodlabel

std::string EfexHardwareInfo::m_mpodlabel {"invalid"}
private

Definition at line 36 of file EfexHardwareInfo.h.

36{"invalid"};

◆ m_overlap

int EfexHardwareInfo::m_overlap {}
private

Definition at line 37 of file EfexHardwareInfo.h.

37{};

◆ m_valid

bool EfexHardwareInfo::m_valid {}
private

Definition at line 32 of file EfexHardwareInfo.h.

32{};

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