 |
ATLAS Offline Software
|
Go to the documentation of this file.
45 ,
unsigned int moduleIndex
47 ,
unsigned int strawLayerIndex)
const
49 if ( positive >= 2 || moduleIndex >=
NMODMAX
56 ,
unsigned int moduleIndex
58 ,
unsigned int strawLayerIndex)
60 if ( positive >= 2 || moduleIndex >=
NMODMAX
68 ,
unsigned int wheelIndex
69 ,
unsigned int strawLayerIndex
72 if ( positive >= 2 || wheelIndex >=
NWHEELMAX
79 ,
unsigned int wheelIndex
80 ,
unsigned int strawLayerIndex
83 if ( positive >= 2 || wheelIndex >=
NWHEELMAX
95 [barrel->getCode().isPosZ()]
96 [barrel->getCode().getModuleIndex()]
97 [barrel->getCode().getPhiIndex()]
98 [barrel->getCode().getStrawLayerIndex()];
99 if (arrayElement !=
nullptr) {
104 [barrel->getCode().getModuleIndex()]
105 [barrel->getCode().getPhiIndex()]
106 [barrel->getCode().getStrawLayerIndex()] = barrel;
120 if (arrayElement !=
nullptr) {
134 [barrel->getCode().isPosZ()]
135 [barrel->getCode().getModuleIndex()]
136 [barrel->getCode().getPhiIndex()]
137 [barrel->getCode().getStrawLayerIndex()] ) {
140 ATH_MSG_DEBUG(
"manageBarrelElement: Overriding existing element");
144 [barrel->getCode().isPosZ()]
145 [barrel->getCode().getModuleIndex()]
146 [barrel->getCode().getPhiIndex()]
147 [barrel->getCode().getStrawLayerIndex()]
153 barrel->getCode().getPhiIndex(),
154 barrel->getCode().getModuleIndex(),
155 barrel->getCode().getStrawLayerIndex());
163 ATH_MSG_DEBUG(
"manageBarrelElement: Overriding existing element for hashID");
204 ATH_MSG_DEBUG(
"manageEndcapElement: Overriding existing element for hashID");
217 for (
auto &
mod : ec) {
219 for (
auto & sLay :
phi) {
226 for (
auto & whe : ec) {
227 for (
auto & sLay : whe) {
228 for(
auto &
phi : sLay) {
unsigned int getStrawLayerIndex() const
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
TRT_EndcapElement * m_ecArray[2][NWHEELMAX][NSTRAWLAYMAXEC][NPHIMAX]
Scalar phi() const
phi method
void manageEndcapElement(TRT_EndcapElement *endcap, const TRT_ID *idHelper)
std::string find(const std::string &s)
return a remapped string
void addEndcapElement(TRT_EndcapElement *element)
void manageBarrelElement(TRT_BarrelElement *barrel, const TRT_ID *idHelper)
void setNumerology(const TRT_Numerology *mynum)
unsigned int getWheelIndex() const
~TRT_DetElementContainer()
TRT_DetElementContainer()
const TRT_EndcapCode & getCode() const
Doomed (??)
Class to provide easy MsgStream access and capabilities.
unsigned int isPosZ() const
void clear()
Erase all the elements in the collection.
bool is_valid() const
Check if id is in a valid state.
const TRT_BarrelElement * getBarrelDetElement(unsigned int positive, unsigned int moduleIndex, unsigned int phiIndex, unsigned int strawLayerIndex) const
void resize(size_type sz)
Resizes the collection to the specified number of elements.
TRT_DetElementCollection m_trtcoll
value_type push_back(value_type pElem)
Add an element to the end of the collection.
unsigned int getPhiIndex() const
TRT_BarrelElement * m_baArray[2][NMODMAX][NPHIMAX][NSTRAWLAYMAXBR]
unsigned int phiIndex(float phi, float binsize)
calculate phi index for a given phi
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
#define ATH_MSG_WARNING(x)
const TRT_Numerology * getTRTNumerology() const
const TRT_Numerology * m_trtnum
const TRT_DetElementCollection * getElements() const
Class to hold collection of TRT detector elements.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
iterator erase(iterator position)
Remove element at a given position.
const TRT_EndcapElement * getEndcapDetElement(unsigned int positive, unsigned int wheelIndex, unsigned int strawLayerIndex, unsigned int phiIndex) const
size_type size() const noexcept
Returns the number of elements in the collection.
IdentifierHash straw_layer_hash(Identifier straw_layer_id) const
straw_layer hash from id - optimized
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
void addBarrelElement(TRT_BarrelElement *element)