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>
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() [1/2]
| HGTD_DetectorManager::HGTD_DetectorManager |
( |
StoreGateSvc * | detStore | ) |
|
Constructor.
Definition at line 14 of file HGTD_DetectorManager.cxx.
17{
18 setName("HGTD");
19
20
21
22
24 if (
sc.isFailure() ) {
26 }
27
28
31 }
32}
AthMessaging()
Default constructor:
const HGTD_ID * m_idHelper
InDetDD::HGTD_DetectorElementCollection m_elementCollection
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ ~HGTD_DetectorManager()
| HGTD_DetectorManager::~HGTD_DetectorManager |
( |
| ) |
|
|
default |
◆ HGTD_DetectorManager() [2/2]
◆ addDetectorElement()
Add elememts.
Definition at line 77 of file HGTD_DetectorManager.cxx.
78{
81 ATH_MSG_ERROR (
"HGTD_DetectorManager: Error adding detector element.");
83}
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
◆ addTreeTop()
| void HGTD_DetectorManager::addTreeTop |
( |
PVConstLink | treeTop | ) |
|
◆ getDetectorElement() [1/3]
access to individual elements : via Identifier
Definition at line 50 of file HGTD_DetectorManager.cxx.
51{
52
54 IdentifierHash idHash =
m_idHelper->wafer_hash(waferId);
57 } else {
58 return 0;
59 }
60}
bool is_valid() const
Check if id is in a valid state.
◆ getDetectorElement() [2/3]
◆ getDetectorElement() [3/3]
| 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 67 of file HGTD_DetectorManager.cxx.
68{
70}
const InDetDD::HGTD_DetectorElement * getDetectorElement(const Identifier &id) const
access to individual elements : via Identifier
◆ getDetectorElementCollection()
◆ getIdHelper()
| const HGTD_ID * HGTD_DetectorManager::getIdHelper |
( |
| ) |
const |
|
private |
◆ getNumTreeTops()
| unsigned int HGTD_DetectorManager::getNumTreeTops |
( |
| ) |
const |
|
overridevirtual |
◆ getTreeTop()
| PVConstLink HGTD_DetectorManager::getTreeTop |
( |
unsigned int | i | ) |
const |
|
overridevirtual |
◆ 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.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ invalidateAll()
| void HGTD_DetectorManager::invalidateAll |
( |
| ) |
|
Invalidate cache for all detector elements.
Definition at line 90 of file HGTD_DetectorManager.cxx.
91{
93 if (element) {
94 element->invalidate();
95 }
96 }
97}
◆ 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 163 of file AthMessaging.h.
164{
166 if (!ms) {
170 }
171
174}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
void initMessaging() const
Initialize our message level and MessageSvc.
◆ 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 178 of file AthMessaging.h.
179{
return msg() << lvl; }
MsgStream & msg() const
The standard message stream.
◆ 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.
152{
155 return true;
156 } else {
157 return false;
158 }
159}
◆ operator=()
Prevent copy and assignment.
◆ setCommonItems()
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ updateAll()
| void HGTD_DetectorManager::updateAll |
( |
| ) |
const |
Update all caches.
Definition at line 99 of file HGTD_DetectorManager.cxx.
100{
102 if (element) {
103 element->updateCache();
104 }
105 }
106}
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_commonItems
◆ m_elementCollection
◆ m_idHelper
| const HGTD_ID* HGTD_DetectorManager::m_idHelper |
|
private |
◆ 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_volume
| std::vector<PVConstLink> HGTD_DetectorManager::m_volume |
|
private |
The documentation for this class was generated from the following files: