ATLAS Offline Software
|
#include <HGTD_DetectorManager.h>
Public Member Functions | |
HGTD_DetectorManager (StoreGateSvc *detStore) | |
Constructor. More... | |
~HGTD_DetectorManager () | |
Destructor. More... | |
virtual unsigned int | getNumTreeTops () const override |
Access to raw geometry: More... | |
virtual PVConstLink | getTreeTop (unsigned int i) const override |
void | addTreeTop (PVConstLink treeTop) |
Add a Tree top: More... | |
InDetDD::HGTD_DetectorElement * | getDetectorElement (const Identifier &id) const |
access to individual elements : via Identifier More... | |
InDetDD::HGTD_DetectorElement * | getDetectorElement (const IdentifierHash &idHash) const |
access to individual elements : via IdentifierHash More... | |
InDetDD::HGTD_DetectorElement * | getDetectorElement (int endcap, int layer, int phi_module, int eta_module) const |
access to individual elements : via element identification More... | |
const InDetDD::HGTD_DetectorElementCollection * | getDetectorElementCollection () const |
access to whole collection via Iterators More... | |
InDetDD::HGTD_DetectorElementCollection::const_iterator | getDetectorElementBegin () const |
InDetDD::HGTD_DetectorElementCollection::const_iterator | getDetectorElementEnd () const |
void | addDetectorElement (InDetDD::HGTD_DetectorElement *element) |
Add elememts. More... | |
void | invalidateAll () const |
Invalidate cache for all detector elements. More... | |
void | updateAll () const |
Update all caches. More... | |
void | setCommonItems (std::unique_ptr< const InDetDD::SiCommonItems > &&commonItems) |
Set SiCommonItems. More... | |
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... | |
Private Member Functions | |
const HGTD_DetectorManager & | operator= (const HGTD_DetectorManager &right) |
Prevent copy and assignment. More... | |
HGTD_DetectorManager (const HGTD_DetectorManager &right) | |
const HGTD_ID * | getIdHelper () const |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::vector< PVConstLink > | m_volume |
InDetDD::HGTD_DetectorElementCollection | m_elementCollection |
const HGTD_ID * | m_idHelper |
std::unique_ptr< const InDetDD::SiCommonItems > | m_commonItems |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
The Detector manager has methods to retrieve the Identifier helper and methods to retrieve the detector elements, as well as the relevant physical volumes.
Definition at line 33 of file HGTD_DetectorManager.h.
HGTD_DetectorManager::HGTD_DetectorManager | ( | StoreGateSvc * | detStore | ) |
HGTD_DetectorManager::~HGTD_DetectorManager | ( | ) |
|
private |
void HGTD_DetectorManager::addDetectorElement | ( | InDetDD::HGTD_DetectorElement * | element | ) |
void HGTD_DetectorManager::addTreeTop | ( | PVConstLink | treeTop | ) |
Add a Tree top:
Definition at line 53 of file HGTD_DetectorManager.cxx.
HGTD_DetectorElement * HGTD_DetectorManager::getDetectorElement | ( | const Identifier & | id | ) | const |
access to individual elements : via Identifier
Definition at line 57 of file HGTD_DetectorManager.cxx.
HGTD_DetectorElement * HGTD_DetectorManager::getDetectorElement | ( | const IdentifierHash & | idHash | ) | const |
access to individual elements : via IdentifierHash
Definition at line 69 of file HGTD_DetectorManager.cxx.
HGTD_DetectorElement * HGTD_DetectorManager::getDetectorElement | ( | int | endcap, |
int | layer, | ||
int | phi_module, | ||
int | eta_module | ||
) | const |
access to individual elements : via element identification
Definition at line 74 of file HGTD_DetectorManager.cxx.
HGTD_DetectorElementCollection::const_iterator HGTD_DetectorManager::getDetectorElementBegin | ( | ) | const |
Definition at line 84 of file HGTD_DetectorManager.cxx.
const HGTD_DetectorElementCollection * HGTD_DetectorManager::getDetectorElementCollection | ( | ) | const |
access to whole collection via Iterators
Definition at line 79 of file HGTD_DetectorManager.cxx.
HGTD_DetectorElementCollection::const_iterator HGTD_DetectorManager::getDetectorElementEnd | ( | ) | const |
Definition at line 89 of file HGTD_DetectorManager.cxx.
Definition at line 102 of file HGTD_DetectorManager.cxx.
|
overridevirtual |
Access to raw geometry:
Definition at line 43 of file HGTD_DetectorManager.cxx.
|
overridevirtual |
Definition at line 48 of file HGTD_DetectorManager.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
void HGTD_DetectorManager::invalidateAll | ( | ) | const |
Invalidate cache for all detector elements.
Definition at line 107 of file HGTD_DetectorManager.cxx.
|
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.
|
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.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
private |
Prevent copy and assignment.
void HGTD_DetectorManager::setCommonItems | ( | std::unique_ptr< const InDetDD::SiCommonItems > && | commonItems | ) |
Set SiCommonItems.
Definition at line 129 of file HGTD_DetectorManager.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
void HGTD_DetectorManager::updateAll | ( | ) | const |
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 95 of file HGTD_DetectorManager.h.
|
private |
Definition at line 92 of file HGTD_DetectorManager.h.
Definition at line 93 of file HGTD_DetectorManager.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 91 of file HGTD_DetectorManager.h.