 |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef EFEXSUPERCELLTOWERIDPROVIDER
17 #define EFEXSUPERCELLTOWERIDPROVIDER
21 #include <unordered_map>
30 static const InterfaceID IID_IIeFEXSuperCellTowerIdProvider(
"LVL1::eFEXSuperCellTowerIdProvider", 1 , 0);
44 static const InterfaceID&
interfaceID() {
return IID_IIeFEXSuperCellTowerIdProvider; };
bool isSplit
if the SuperCell Et needs to be splited
~eFEXSuperCellTowerIdProvider()
Destructor.
eFEXSuperCellTowerIdProvider(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Sturcture stores mapping information of a SuperCell.
::StatusCode StatusCode
StatusCode definition for legacy code.
int slot
slot of the tower in which the SuperCell belongs to
bool hasSuperCell(uint64_t) const
Check if the SuperCell id exists in the csv file.
StatusCode setAddress(const std::string &)
set the address to the csv file and load
StatusCode geteTowerIDandslot(uint64_t scid, int &eTowerID, int &slot, bool &issplit) const
obtain ordered tower IDs in an eFEX
Provide Supercell-tower mapping Load information stored in a .csv file and provide information needed...
bool m_hascsvfile
if the csv file is valid
StatusCode loadcsv()
load the csv file
std::unordered_map< uint64_t, towerinfo > m_SuperCelltoTowerIdmap
map to store information about SuperCells with SuperCell ID as the key.
static const InterfaceID & interfaceID()
bool ifhaveinputfile() const
Check if the csv file is valid.
virtual StatusCode initialize() override
initialize the tool
std::string m_csvaddress
path to the csv file