|
ATLAS Offline Software
|
Go to the documentation of this file.
32 const int container_index =
it->second;
33 if (container_index < 0) {
36 return (*
this)[container_index];
42 const int container_index =
it->second;
43 if (container_index < 0) {
46 return (*
this)[container_index];
56 size_t ntowers =
size();
57 for (
size_t itower = 0; itower < ntowers; itower++) {
58 const eTower * theTower = (*this)[itower];
59 int towerID = theTower->
constid();
60 int container_index = itower;
The eTower class is an interface object for eFEX trigger algorithms The purposes are twofold:
void push_back(float eta, float phi, float keybase, int posneg)
reimplementation of const push_back
void clearContainerMap()
clear map
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
std::unordered_map< int, int > m_map_towerID_containerIndex
bool fillContainerMap()
utility function to help speed up accessing towers
void print() const
dump (obsolete)
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
Helpers for checking error return status codes and reporting errors.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
eTowerContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
const LVL1::eTower * findTower(int towerID) const
fast find method given identifier.
size_type size() const noexcept
Returns the number of elements in the collection.