Class to hold different TRT detector elements structures.
More...
#include <TRT_DetElementContainer.h>
|
| TRT_DetElementContainer () |
|
| ~TRT_DetElementContainer () |
|
| TRT_DetElementContainer (const TRT_DetElementContainer &other)=delete |
|
void | operator= (const TRT_DetElementContainer &other)=delete |
|
void | setNumerology (const TRT_Numerology *mynum) |
|
void | addBarrelElement (TRT_BarrelElement *element) |
|
void | addEndcapElement (TRT_EndcapElement *element) |
|
void | manageBarrelElement (TRT_BarrelElement *barrel, const TRT_ID *idHelper) |
|
void | manageEndcapElement (TRT_EndcapElement *endcap, const TRT_ID *idHelper) |
|
const TRT_DetElementCollection * | getElements () const |
|
const TRT_Numerology * | getTRTNumerology () const |
|
const TRT_BarrelElement * | getBarrelDetElement (unsigned int positive, unsigned int moduleIndex, unsigned int phiIndex, unsigned int strawLayerIndex) const |
|
TRT_BarrelElement * | getBarrelDetElement (unsigned int positive, unsigned int moduleIndex, unsigned int phiIndex, unsigned int strawLayerIndex) |
|
const TRT_EndcapElement * | getEndcapDetElement (unsigned int positive, unsigned int wheelIndex, unsigned int strawLayerIndex, unsigned int phiIndex) const |
|
TRT_EndcapElement * | getEndcapDetElement (unsigned int positive, unsigned int wheelIndex, unsigned int strawLayerIndex, unsigned int phiIndex) |
|
void | clear () |
|
bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More...
|
|
MsgStream & | msg () const |
| The standard message stream. More...
|
|
MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More...
|
|
void | setLevel (MSG::Level lvl) |
| Change the current logging level. More...
|
|
Class to hold different TRT detector elements structures.
Definition at line 24 of file TRT_DetElementContainer.h.
◆ anonymous enum
◆ anonymous enum
◆ anonymous enum
◆ anonymous enum
◆ anonymous enum
◆ TRT_DetElementContainer() [1/2]
InDetDD::TRT_DetElementContainer::TRT_DetElementContainer |
( |
| ) |
|
◆ ~TRT_DetElementContainer()
InDetDD::TRT_DetElementContainer::~TRT_DetElementContainer |
( |
| ) |
|
◆ TRT_DetElementContainer() [2/2]
◆ addBarrelElement()
void InDetDD::TRT_DetElementContainer::addBarrelElement |
( |
TRT_BarrelElement * |
element | ) |
|
Definition at line 84 of file TRT_DetElementContainer.cxx.
89 TRT_BarrelElement* arrayElement =
m_baArray
90 [
barrel->getCode().isPosZ()]
91 [
barrel->getCode().getModuleIndex()]
92 [
barrel->getCode().getPhiIndex()]
93 [
barrel->getCode().getStrawLayerIndex()];
94 if (arrayElement !=
nullptr) {
99 [
barrel->getCode().getModuleIndex()]
100 [
barrel->getCode().getPhiIndex()]
◆ addEndcapElement()
void InDetDD::TRT_DetElementContainer::addEndcapElement |
( |
TRT_EndcapElement * |
element | ) |
|
Definition at line 105 of file TRT_DetElementContainer.cxx.
110 TRT_EndcapElement* arrayElement =
m_ecArray
111 [endcap->getCode().isPosZ()]
112 [endcap->getCode().getWheelIndex()]
113 [endcap->getCode().getStrawLayerIndex()]
114 [endcap->getCode().getPhiIndex()];
115 if (arrayElement !=
nullptr) {
120 [endcap->getCode().getWheelIndex()]
121 [endcap->getCode().getStrawLayerIndex()]
122 [endcap->getCode().getPhiIndex()] = endcap;
◆ clear()
void InDetDD::TRT_DetElementContainer::clear |
( |
| ) |
|
Definition at line 208 of file TRT_DetElementContainer.cxx.
215 for (
auto &
mod : ec) {
216 for (
auto & phi :
mod) {
217 for (
auto & sLay : phi) {
224 for (
auto & whe : ec) {
225 for (
auto & sLay : whe) {
226 for(
auto & phi : sLay) {
◆ getBarrelDetElement() [1/2]
TRT_BarrelElement * InDetDD::TRT_DetElementContainer::getBarrelDetElement |
( |
unsigned int |
positive, |
|
|
unsigned int |
moduleIndex, |
|
|
unsigned int |
phiIndex, |
|
|
unsigned int |
strawLayerIndex |
|
) |
| |
◆ getBarrelDetElement() [2/2]
const TRT_BarrelElement * InDetDD::TRT_DetElementContainer::getBarrelDetElement |
( |
unsigned int |
positive, |
|
|
unsigned int |
moduleIndex, |
|
|
unsigned int |
phiIndex, |
|
|
unsigned int |
strawLayerIndex |
|
) |
| const |
◆ getElements()
◆ getEndcapDetElement() [1/2]
TRT_EndcapElement * InDetDD::TRT_DetElementContainer::getEndcapDetElement |
( |
unsigned int |
positive, |
|
|
unsigned int |
wheelIndex, |
|
|
unsigned int |
strawLayerIndex, |
|
|
unsigned int |
phiIndex |
|
) |
| |
◆ getEndcapDetElement() [2/2]
const TRT_EndcapElement * InDetDD::TRT_DetElementContainer::getEndcapDetElement |
( |
unsigned int |
positive, |
|
|
unsigned int |
wheelIndex, |
|
|
unsigned int |
strawLayerIndex, |
|
|
unsigned int |
phiIndex |
|
) |
| const |
◆ getTRTNumerology()
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ manageBarrelElement()
Definition at line 126 of file TRT_DetElementContainer.cxx.
129 [
barrel->getCode().isPosZ()]
130 [
barrel->getCode().getModuleIndex()]
131 [
barrel->getCode().getPhiIndex()]
132 [
barrel->getCode().getStrawLayerIndex()] ) {
135 ATH_MSG_DEBUG(
"manageBarrelElement: Overriding existing element");
139 [
barrel->getCode().isPosZ()]
140 [
barrel->getCode().getModuleIndex()]
141 [
barrel->getCode().getPhiIndex()]
142 [
barrel->getCode().getStrawLayerIndex()]
148 barrel->getCode().getPhiIndex(),
149 barrel->getCode().getModuleIndex(),
150 barrel->getCode().getStrawLayerIndex());
154 m_trtcoll.resize(
static_cast<unsigned int>(hashId) + 1);
158 ATH_MSG_DEBUG(
"manageBarrelElement: Overriding existing element for hashID");
◆ manageEndcapElement()
Definition at line 168 of file TRT_DetElementContainer.cxx.
171 [endcap->getCode().isPosZ()]
172 [endcap->getCode().getWheelIndex()]
173 [endcap->getCode().getStrawLayerIndex()]
174 [endcap->getCode().getPhiIndex()] ) {
180 [endcap->getCode().isPosZ()]
181 [endcap->getCode().getWheelIndex()]
182 [endcap->getCode().getStrawLayerIndex()]
183 [endcap->getCode().getPhiIndex()]
188 endcap->getCode().getPhiIndex(),
189 endcap->getCode().getWheelIndex(),
190 endcap->getCode().getStrawLayerIndex());
195 m_trtcoll.resize(
static_cast<unsigned int>(hashId) + 1);
199 ATH_MSG_DEBUG(
"manageEndcapElement: Overriding existing element for hashID");
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ operator=()
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ setNumerology()
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_baArray
◆ m_ecArray
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_trtcoll
◆ m_trtnum
The documentation for this class was generated from the following files:
Identifier layer_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer) const
For an individual straw layer.