45 ,
unsigned int moduleIndex
46 ,
unsigned int phiIndex
47 ,
unsigned int strawLayerIndex)
const
49 if ( positive >= 2 || moduleIndex >=
NMODMAX
52 return m_baArray[positive][moduleIndex][phiIndex][strawLayerIndex];
56 ,
unsigned int moduleIndex
57 ,
unsigned int phiIndex
58 ,
unsigned int strawLayerIndex)
60 if ( positive >= 2 || moduleIndex >=
NMODMAX
63 return m_baArray[positive][moduleIndex][phiIndex][strawLayerIndex];
68 ,
unsigned int wheelIndex
69 ,
unsigned int strawLayerIndex
70 ,
unsigned int phiIndex)
const
72 if ( positive >= 2 || wheelIndex >=
NWHEELMAX
75 return m_ecArray[positive][wheelIndex][strawLayerIndex][phiIndex];
79 ,
unsigned int wheelIndex
80 ,
unsigned int strawLayerIndex
81 ,
unsigned int phiIndex)
83 if ( positive >= 2 || wheelIndex >=
NWHEELMAX
86 return m_ecArray[positive][wheelIndex][strawLayerIndex][phiIndex];
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()]
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());
159 m_trtcoll.resize(
static_cast<unsigned int>(hashId) + 1);
163 ATH_MSG_DEBUG(
"manageBarrelElement: Overriding existing element for hashID");
200 m_trtcoll.resize(
static_cast<unsigned int>(hashId) + 1);
204 ATH_MSG_DEBUG(
"manageEndcapElement: Overriding existing element for hashID");
217 for (
auto & mod : ec) {
218 for (
auto &
phi : mod) {
219 for (
auto & sLay :
phi) {
226 for (
auto & whe : ec) {
227 for (
auto & sLay : whe) {
228 for(
auto &
phi : sLay) {
Scalar phi() const
phi method
#define ATH_MSG_WARNING(x)
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
This is a "hash" representation of an Identifier.
bool is_valid() const
Check if id is in a valid state.
Extended TRT_BaseElement to describe a TRT readout element, this is a planar layer with n ( order of ...
Class to hold collection of TRT detector elements.
TRT_EndcapElement * m_ecArray[2][NWHEELMAX][NSTRAWLAYMAXEC][NPHIMAX]
void manageEndcapElement(TRT_EndcapElement *endcap, const TRT_ID *idHelper)
void manageBarrelElement(TRT_BarrelElement *barrel, const TRT_ID *idHelper)
const TRT_DetElementCollection * getElements() const
TRT_DetElementContainer()
const TRT_Numerology * m_trtnum
void addEndcapElement(TRT_EndcapElement *element)
void setNumerology(const TRT_Numerology *mynum)
const TRT_EndcapElement * getEndcapDetElement(unsigned int positive, unsigned int wheelIndex, unsigned int strawLayerIndex, unsigned int phiIndex) const
TRT_BarrelElement * m_baArray[2][NMODMAX][NPHIMAX][NSTRAWLAYMAXBR]
const TRT_BarrelElement * getBarrelDetElement(unsigned int positive, unsigned int moduleIndex, unsigned int phiIndex, unsigned int strawLayerIndex) const
const TRT_Numerology * getTRTNumerology() const
void addBarrelElement(TRT_BarrelElement *element)
~TRT_DetElementContainer()
TRT_DetElementCollection m_trtcoll
unsigned int isPosZ() const
unsigned int getPhiIndex() const
unsigned int getStrawLayerIndex() const
unsigned int getWheelIndex() const
Extended class of a TRT_BaseElement to describe a readout elment in the endcap.
const TRT_EndcapCode & getCode() const
Doomed (?
Helper class to organize the straw elements on TRT readout elements.
This is an Identifier helper class for the TRT subdetector.
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.
IdentifierHash straw_layer_hash(Identifier straw_layer_id) const
straw_layer hash from id - optimized
DataModel_detail::iterator< DVL > remove(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end, const T &value)
Specialization of remove for DataVector/List.