 |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef EFEXFPGATOWERIDPROVIDER_H
17 #define EFEXFPGATOWERIDPROVIDER_H
23 #include <unordered_map>
33 static const InterfaceID IID_IIeFEXFPGATowerIdProvider(
"LVL1::eFEXFPGATowerIdProvider", 1 , 0);
48 static const InterfaceID&
interfaceID() {
return IID_IIeFEXFPGATowerIdProvider; };
107 std::unordered_map<int, std::unique_ptr<std::vector<towerinfo>> >
m_alltowers;
StatusCode setAddress(const std::string &inputaddress)
set path to the csv file and load
StatusCode rankTowerinFPGA(int FPGAindex)
rank the tower ids in an FPGA This function determines the order of towers in an FPGA.
~eFEXFPGATowerIdProvider()
Destructor.
std::unordered_map< int, std::unique_ptr< std::vector< towerinfo > > > m_alltowers
Unordered tower Ids in each FPGAs. The index is the index of the FPGA.
Sturcture defines the id, eta and phi position of a tower.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Provide tower-FPGA mapping Load information stored in a .csv file and provide the IDs of all towers i...
StatusCode getRankedTowerIDineFEX(int eFEXID, int(&towerlist)[10][18]) const
obtain ordered tower IDs in an eFEX
std::vector< std::unique_ptr< std::vector< int > > > m_towerrankingcache
Ordered tower Ids in each FPGAs. The index is the index of the FPGA.
bool hasFPGA(int) const
check if an FPGA exists in the csv file
int eTowerPhi
tower Phi index
int eTowerEta
tower Eta index
::StatusCode StatusCode
StatusCode definition for legacy code.
bool ifhaveinputfile() const
StatusCode getRankedTowerIDinFPGA(int eFEXID, int FPGAID, int(&towerlist)[10][6]) const
obtain ordered tower IDs in an FPGA
int getFPGAIndex(int eFEXid, int FPGAid) const
determine the index of an FPGA
std::string m_csvaddress
path to the input csv file
bool m_hascsvfile
if the csv file is valid
eFEXFPGATowerIdProvider(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
StatusCode loadcsv()
load the mapping info in the csv file
StatusCode initialize()
initialize the tool
static const InterfaceID & interfaceID()