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;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
SG::OwnershipPolicy ownPolicy() const
size_type size() const noexcept
void print() const
dump (obsolete)
eTowerContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
void clearContainerMap()
clear map
std::unordered_map< int, int > m_map_towerID_containerIndex
bool fillContainerMap()
utility function to help speed up accessing towers
const LVL1::eTower * findTower(int towerID) const
fast find method given identifier.
void push_back(float eta, float phi, float keybase, int posneg)
reimplementation of const push_back
The eTower class is an interface object for eFEX trigger algorithms The purposes are twofold:
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...