ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
EfexHardwareInfo Class Reference

#include <EfexHardwareInfo.h>

Collaboration diagram for EfexHardwareInfo:

Public Member Functions

 EfexHardwareInfo ()
 
 EfexHardwareInfo (std::string efexlabel, int fibre, int inputconnector, 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
 
int m_fibre
 
int m_inputconnector
 
std::string m_mpodlabel
 
int m_overlap
 

Detailed Description

Definition at line 4 of file EfexHardwareInfo.h.

Constructor & Destructor Documentation

◆ EfexHardwareInfo() [1/2]

EfexHardwareInfo::EfexHardwareInfo ( )

Definition at line 4 of file EfexHardwareInfo.cxx.

5 :m_valid(false), m_efexlabel("invalid") , m_fibre(-1), m_inputconnector(-1),
6 m_mpodlabel("invalid")
7 {
8 }

◆ EfexHardwareInfo() [2/2]

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

Definition at line 9 of file EfexHardwareInfo.cxx.

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

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 }

◆ 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
private

Definition at line 28 of file EfexHardwareInfo.h.

◆ m_fibre

int EfexHardwareInfo::m_fibre
private

Definition at line 29 of file EfexHardwareInfo.h.

◆ m_inputconnector

int EfexHardwareInfo::m_inputconnector
private

Definition at line 30 of file EfexHardwareInfo.h.

◆ m_mpodlabel

std::string EfexHardwareInfo::m_mpodlabel
private

Definition at line 31 of file EfexHardwareInfo.h.

◆ m_overlap

int EfexHardwareInfo::m_overlap
private

Definition at line 32 of file EfexHardwareInfo.h.

◆ m_valid

bool EfexHardwareInfo::m_valid
private

Definition at line 27 of file EfexHardwareInfo.h.


The documentation for this class was generated from the following files:
EfexHardwareInfo::getMpodLabel
std::string getMpodLabel() const
Definition: EfexHardwareInfo.cxx:39
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
EfexHardwareInfo::m_efexlabel
std::string m_efexlabel
Definition: EfexHardwareInfo.h:28
EfexHardwareInfo::m_valid
bool m_valid
Definition: EfexHardwareInfo.h:27
EfexHardwareInfo::getEFEXLabel
std::string getEFEXLabel() const
Definition: EfexHardwareInfo.cxx:17
EfexHardwareInfo::m_fibre
int m_fibre
Definition: EfexHardwareInfo.h:29
EfexHardwareInfo::m_overlap
int m_overlap
Definition: EfexHardwareInfo.h:32
EfexHardwareInfo::getInputConnector
int getInputConnector() const
Definition: EfexHardwareInfo.cxx:29
EfexHardwareInfo::getFibreNumber
int getFibreNumber() const
Definition: EfexHardwareInfo.cxx:21
EfexHardwareInfo::m_inputconnector
int m_inputconnector
Definition: EfexHardwareInfo.h:30
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
EfexHardwareInfo::m_mpodlabel
std::string m_mpodlabel
Definition: EfexHardwareInfo.h:31