35 const int container_index = it->second;
36 if (container_index < 0) {
39 return (*
this)[container_index];
47 const int container_index = it->second;
48 if (container_index < 0) {
51 return (*
this)[container_index];
61 size_t ntowers =
size();
62 for (
size_t itower = 0; itower < ntowers; itower++) {
63 const jTower * theTower = (*this)[itower];
64 int towerID = theTower->
constid();
65 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
jTowerContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
bool fillContainerMap()
utility function to help speed up accessing towers
void print() const
dump (obsolete)
void push_back(float eta, float phi, int towerid, int posneg, float centre_et=0.0, float centre_phi=0.0, int fcal_layer=-1)
reimplementation of const push_back
void clearContainerMap()
clear map
const LVL1::jTower * findTower(int towerID) const
fast find method given identifier.
std::unordered_map< int, int > m_map_towerID_containerIndex
The jTower class is an interface object for jFEX trigger algorithms The purposes are twofold:
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...