13#ifndef GTOWERCONTAINER_H
14#define GTOWERCONTAINER_H
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define SG_BASE(D, B)
Declare that class D derives from class B.
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
SG::OwnershipPolicy ownPolicy() const
std::vector< const LVL1::gTower > gTowerVector
type to be used for the internal lookup table, and to return list of towers
virtual ~gTowerContainer()
destructor
gTowerContainer(size_t n, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Sized constructor.
std::unordered_map< int, int > m_map_towerID_containerIndex
void print() const
dump (obsolete)
void push_back(int eta, int phi, int nphi, int keybase, int posneg)
reimplementation of const push_back
const LVL1::gTower * findTower(int towerID) const
fast find method given identifier.
bool fillContainerMap()
utility function to help speed up accessing towers
std::vector< LVL1::gTower > MutablegTowerVector
Return from non-const findTowerVector.
IMessageSvc * msgSvc() const
get message service
gTowerContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Main constructor.
std::unordered_map< int, int > m_map_fwID_towerID
int getIDfromFWID(int fwID) const
given a firmware ID, it returns the simulation ID, it can be used to then find towers
void clearContainerMap()
clear map
The gTower class is an interface object for gFEX trigger algorithms The purposes are twofold:
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
@ OWN_ELEMENTS
this data object owns its elements