![]() |
ATLAS Offline Software
|
The Detector manager has methods to retrieve the Identifier helper and methods to retrieve the detector elements, as well as the relevant physical volumes. More...
#include <HGTD_DetectorManager.h>
Public Member Functions | |
| HGTD_DetectorManager (StoreGateSvc *detStore) | |
| Constructor. | |
| ~HGTD_DetectorManager () | |
| Destructor. | |
| virtual unsigned int | getNumTreeTops () const override |
| Access to raw geometry: | |
| virtual PVConstLink | getTreeTop (unsigned int i) const override |
| void | addTreeTop (PVConstLink treeTop) |
| Add a Tree top: | |
| const InDetDD::HGTD_DetectorElement * | getDetectorElement (const Identifier &id) const |
| access to individual elements : via Identifier | |
| const InDetDD::HGTD_DetectorElement * | getDetectorElement (const IdentifierHash &idHash) const |
| access to individual elements : via IdentifierHash | |
| const InDetDD::HGTD_DetectorElement * | getDetectorElement (int endcap, int layer, int phi_module, int eta_module) const |
| access to individual elements : via element identification | |
| const InDetDD::HGTD_DetectorElementCollection * | getDetectorElementCollection () const |
| Get the collection of element that is held. | |
| void | addDetectorElement (InDetDD::HGTD_DetectorElement *element) |
| Add elememts. | |
| void | addAlignableTransform (int level, const Identifier &id, GeoAlignableTransform *transform, const GeoVFullPhysVol *child) |
| Register alignable transform. | |
| bool | setAlignableTransformDelta (int level, const Identifier &id, const Amg::Transform3D &delta, GeoVAlignmentStore *alignStore) const |
| Apply alignment correction. | |
| StatusCode | align (const AlignableTransformContainer *container, GeoVAlignmentStore *alignStore) const |
| Apply alignment constants from an AlignableTransformContainer. | |
| void | invalidateAll () |
| Invalidate cache for all detector elements. | |
| void | updateAll () const |
| Update all caches. | |
| void | setCommonItems (std::unique_ptr< const InDetDD::SiCommonItems > &&commonItems) |
| Set SiCommonItems. | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Private Member Functions | |
| const HGTD_DetectorManager & | operator= (const HGTD_DetectorManager &right) |
| Prevent copy and assignment. | |
| HGTD_DetectorManager (const HGTD_DetectorManager &right) | |
| const HGTD_ID * | getIdHelper () const |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| std::vector< PVConstLink > | m_volume |
| InDetDD::HGTD_DetectorElementCollection | m_elementCollection |
| const HGTD_ID * | m_idHelper |
| std::vector< std::unique_ptr< InDetDD::ExtendedAlignableTransform > > | m_alignableTransforms |
| std::unique_ptr< const InDetDD::SiCommonItems > | m_commonItems |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels). | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging). | |
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 42 of file HGTD_DetectorManager.h.
| HGTD_DetectorManager::HGTD_DetectorManager | ( | StoreGateSvc * | detStore | ) |
Constructor.
Definition at line 19 of file HGTD_DetectorManager.cxx.
|
default |
Destructor.
|
private |
| void HGTD_DetectorManager::addAlignableTransform | ( | int | level, |
| const Identifier & | id, | ||
| GeoAlignableTransform * | transform, | ||
| const GeoVFullPhysVol * | child ) |
Register alignable transform.
Definition at line 96 of file HGTD_DetectorManager.cxx.
| void HGTD_DetectorManager::addDetectorElement | ( | InDetDD::HGTD_DetectorElement * | element | ) |
Add elememts.
Definition at line 84 of file HGTD_DetectorManager.cxx.
| void HGTD_DetectorManager::addTreeTop | ( | PVConstLink | treeTop | ) |
Add a Tree top:
Definition at line 53 of file HGTD_DetectorManager.cxx.
| StatusCode HGTD_DetectorManager::align | ( | const AlignableTransformContainer * | container, |
| GeoVAlignmentStore * | alignStore ) const |
Apply alignment constants from an AlignableTransformContainer.
Definition at line 172 of file HGTD_DetectorManager.cxx.
| const HGTD_DetectorElement * HGTD_DetectorManager::getDetectorElement | ( | const Identifier & | id | ) | const |
access to individual elements : via Identifier
Definition at line 57 of file HGTD_DetectorManager.cxx.
| const HGTD_DetectorElement * HGTD_DetectorManager::getDetectorElement | ( | const IdentifierHash & | idHash | ) | const |
access to individual elements : via IdentifierHash
Definition at line 69 of file HGTD_DetectorManager.cxx.
| const 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.
| const HGTD_DetectorElementCollection * HGTD_DetectorManager::getDetectorElementCollection | ( | ) | const |
Get the collection of element that is held.
Definition at line 79 of file HGTD_DetectorManager.cxx.
Definition at line 257 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 | ( | ) |
Invalidate cache for all detector elements.
Definition at line 262 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 167 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 182 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.
| bool HGTD_DetectorManager::setAlignableTransformDelta | ( | int | level, |
| const Identifier & | id, | ||
| const Amg::Transform3D & | delta, | ||
| GeoVAlignmentStore * | alignStore ) const |
Apply alignment correction.
Definition at line 133 of file HGTD_DetectorManager.cxx.
| void HGTD_DetectorManager::setCommonItems | ( | std::unique_ptr< const InDetDD::SiCommonItems > && | commonItems | ) |
Definition at line 280 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 |
Update all caches.
Definition at line 271 of file HGTD_DetectorManager.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging).
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 120 of file HGTD_DetectorManager.h.
|
private |
Definition at line 122 of file HGTD_DetectorManager.h.
|
private |
Definition at line 116 of file HGTD_DetectorManager.h.
Definition at line 117 of file HGTD_DetectorManager.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
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 114 of file HGTD_DetectorManager.h.