ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1CaloFEX
L1CaloFEXByteStream
src
channelMappings
src
EfexHardwareInfo.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include <iostream>
5
#include "
channelMappings/EfexHardwareInfo.h
"
6
7
8
9
EfexHardwareInfo::EfexHardwareInfo
(
const
std::string & efexlabel,
10
int
fibre,
11
int
inputconnector,
12
const
std::string & mpod)
13
:
m_valid
(true),
m_efexlabel
(efexlabel) ,
m_fibre
(fibre),
m_inputconnector
(inputconnector),
14
m_mpodlabel
(mpod),
m_overlap
(-99)
15
{
16
}
17
std::string
EfexHardwareInfo::getEFEXLabel
()
const
18
{
19
return
m_efexlabel
;
20
}
21
int
EfexHardwareInfo::getFibreNumber
()
const
22
{
23
return
m_fibre
;
24
}
25
int
EfexHardwareInfo::getRibbonFibreNumber
()
const
26
{
27
return
11-(
m_fibre
)%12;
// Ribbon fibre # flip (hopefully right!)
28
}
29
int
EfexHardwareInfo::getInputConnector
()
const
30
{
31
return
m_inputconnector
;
32
}
33
int
EfexHardwareInfo::getMpodNumber
()
const
34
{
35
int
mpodnum = int(
m_mpodlabel
.at(1)) -48;
36
if
(
m_mpodlabel
.at(0) ==
'H'
) mpodnum += 10;
37
return
mpodnum;
38
}
39
std::string
EfexHardwareInfo::getMpodLabel
()
const
40
{
41
return
m_mpodlabel
;
42
}
43
bool
EfexHardwareInfo::getValidity
()
const
44
{
45
return
m_valid
;
46
}
47
void
EfexHardwareInfo::setOverlap
(
int
overlap)
48
{
49
m_overlap
= overlap;
50
}
51
int
EfexHardwareInfo::getOverlap
()
const
52
{
53
return
m_overlap
;
54
}
55
void
EfexHardwareInfo::printInfo
()
const
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
}
EfexHardwareInfo.h
EfexHardwareInfo::EfexHardwareInfo
EfexHardwareInfo()=default
EfexHardwareInfo::printInfo
void printInfo() const
Definition
EfexHardwareInfo.cxx:55
EfexHardwareInfo::getEFEXLabel
std::string getEFEXLabel() const
Definition
EfexHardwareInfo.cxx:17
EfexHardwareInfo::m_overlap
int m_overlap
Definition
EfexHardwareInfo.h:37
EfexHardwareInfo::getValidity
bool getValidity() const
Definition
EfexHardwareInfo.cxx:43
EfexHardwareInfo::m_mpodlabel
std::string m_mpodlabel
Definition
EfexHardwareInfo.h:36
EfexHardwareInfo::getMpodNumber
int getMpodNumber() const
Definition
EfexHardwareInfo.cxx:33
EfexHardwareInfo::getFibreNumber
int getFibreNumber() const
Definition
EfexHardwareInfo.cxx:21
EfexHardwareInfo::m_valid
bool m_valid
Definition
EfexHardwareInfo.h:32
EfexHardwareInfo::m_fibre
int m_fibre
Definition
EfexHardwareInfo.h:34
EfexHardwareInfo::m_inputconnector
int m_inputconnector
Definition
EfexHardwareInfo.h:35
EfexHardwareInfo::getOverlap
int getOverlap() const
Definition
EfexHardwareInfo.cxx:51
EfexHardwareInfo::setOverlap
void setOverlap(int overlap)
Definition
EfexHardwareInfo.cxx:47
EfexHardwareInfo::m_efexlabel
std::string m_efexlabel
Definition
EfexHardwareInfo.h:33
EfexHardwareInfo::getRibbonFibreNumber
int getRibbonFibreNumber() const
Definition
EfexHardwareInfo.cxx:25
EfexHardwareInfo::getMpodLabel
std::string getMpodLabel() const
Definition
EfexHardwareInfo.cxx:39
EfexHardwareInfo::getInputConnector
int getInputConnector() const
Definition
EfexHardwareInfo.cxx:29
Generated on
for ATLAS Offline Software by
1.17.0